-
Adam Knapp authored
Change-Id: Iacba53d8499439eba82045c30a1e0f2e0edf16fe Signed-off-by:
Adam Knapp <adam.knapp@sigmatechnology.se>
Adam Knapp authoredChange-Id: Iacba53d8499439eba82045c30a1e0f2e0edf16fe Signed-off-by:
Adam Knapp <adam.knapp@sigmatechnology.se>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
BerAST.cc 1.03 KiB
/******************************************************************************
* Copyright (c) 2000-2021 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
*
* Contributors:
* Balasko, Jeno
* Zalanyi, Balazs Andor
*
******************************************************************************/
#include "BerAST.hh"
const char* BerAST::encode_string[2] = {
"BER_ENCODE_CER",
"BER_ENCODE_DER"
};
const char* BerAST::decode_string[5] = {
"BER_ACCEPT_SHORT",
"BER_ACCEPT_LONG",
"BER_ACCEPT_INDEFINITE",
"BER_ACCEPT_DEFINITE",
"BER_ACCEPT_ALL"
};
BerAST::BerAST() :
encode_param(DER),
decode_param(ACCEPT_ALL)
{
}
const char* BerAST::get_encode_str() {
return encode_string[encode_param];
}
const char* BerAST::get_decode_str() {
return decode_string[decode_param];
}