Revert "fix USIM test by replacing OP with OPc"

This reverts commit 16b2172e36.
This commit is contained in:
Pedro Alvarez 2018-06-19 18:11:26 +01:00
parent 01f6395d70
commit 4eb9d1abac
1 changed files with 3 additions and 11 deletions

View File

@ -27,6 +27,7 @@
#include <iostream>
#include "srsue/hdr/upper/usim.h"
#include "srslte/common/log_filter.h"
#include <assert.h>
using namespace srsue;
@ -67,8 +68,6 @@ uint16 mnc = 93;
int main(int argc, char **argv)
{
srslte::log_filter usim_log("USIM");
usim_log.set_level(srslte::LOG_LEVEL_DEBUG);
usim_log.set_hex_limit(100000);
bool net_valid;
uint8_t res[16];
int res_len;
@ -79,17 +78,10 @@ int main(int argc, char **argv)
args.imei = "356092040793011";
args.imsi = "208930000000001";
args.k = "8BAF473F2F8FD09487CCCBD7097C6862";
args.op = "8e27b6af0e692e750f32667a3b14605d"; // OPc
args.op = "11111111111111111111111111111111";
srsue::usim usim;
usim.init(&args, &usim_log);
if (usim.generate_authentication_response(rand_enb, autn_enb, mcc, mnc, res, &res_len, k_asme) != AUTH_OK) {
printf("USIM test failed.\n");
return -1;
};
printf("USIM test ok.\n");
return 0;
//assert(usim.generate_authentication_response(rand_enb, autn_enb, mcc, mnc, res, &res_len, k_asme) == AUTH_OK);
}