|
|
|
@ -249,9 +249,11 @@ void parse_args(all_args_t* args, int argc, char* argv[])
|
|
|
|
|
args->mme_args.s1ap_args.encryption_algo = srslte::CIPHERING_ALGORITHM_ID_128_EEA1;
|
|
|
|
|
} else if (boost::iequals(encryption_algo, "eea2")) {
|
|
|
|
|
args->mme_args.s1ap_args.encryption_algo = srslte::CIPHERING_ALGORITHM_ID_128_EEA2;
|
|
|
|
|
} else if (boost::iequals(encryption_algo, "eea3")) {
|
|
|
|
|
args->mme_args.s1ap_args.encryption_algo = srslte::CIPHERING_ALGORITHM_ID_128_EEA3;
|
|
|
|
|
} else {
|
|
|
|
|
args->mme_args.s1ap_args.encryption_algo = srslte::CIPHERING_ALGORITHM_ID_EEA0;
|
|
|
|
|
cout << "Error parsing mme.encryption_algo:" << encryption_algo << " - must be EEA0, EEA1, or EEA2." << endl;
|
|
|
|
|
cout << "Error parsing mme.encryption_algo:" << encryption_algo << " - must be EEA0, EEA1, EEA2 or EEA3." << endl;
|
|
|
|
|
cout << "Using default mme.encryption_algo: EEA0" << endl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -263,9 +265,11 @@ void parse_args(all_args_t* args, int argc, char* argv[])
|
|
|
|
|
args->mme_args.s1ap_args.integrity_algo = srslte::INTEGRITY_ALGORITHM_ID_128_EIA1;
|
|
|
|
|
} else if (boost::iequals(integrity_algo, "eia2")) {
|
|
|
|
|
args->mme_args.s1ap_args.integrity_algo = srslte::INTEGRITY_ALGORITHM_ID_128_EIA2;
|
|
|
|
|
} else if (boost::iequals(integrity_algo, "eia3")) {
|
|
|
|
|
args->mme_args.s1ap_args.integrity_algo = srslte::INTEGRITY_ALGORITHM_ID_128_EIA3;
|
|
|
|
|
} else {
|
|
|
|
|
args->mme_args.s1ap_args.integrity_algo = srslte::INTEGRITY_ALGORITHM_ID_128_EIA1;
|
|
|
|
|
cout << "Error parsing mme.integrity_algo:" << encryption_algo << " - must be EIA0, EIA1, or EIA2." << endl;
|
|
|
|
|
cout << "Error parsing mme.integrity_algo:" << encryption_algo << " - must be EIA0, EIA1, EIA2 or EIA3." << endl;
|
|
|
|
|
cout << "Using default mme.integrity_algo: EIA1" << endl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|