This code in testing/cavp/cavp_ikev1.c looks fishy: if (prf == NULL) { print_line(prf->key); return; } My best guess is that the test is suposed to be: if (prf->prf == NULL) { But I am quite unsure. Can someone look at this?