Lines Matching defs:decode
139 /* see if we can find the SA, and if so, decode it */
249 * decode the form: SPINUM@IP <tab> ALGONAME:0xsecret
255 char *decode, struct sa_list *sa)
262 colon = strchr(decode, ':');
264 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode);
269 if (strlen(decode) > strlen("-hmac96") &&
270 !strcmp(decode + strlen(decode) - strlen("-hmac96"),
272 p = strstr(decode, "-hmac96");
276 if (strlen(decode) > strlen("-cbc") &&
277 !strcmp(decode + strlen(decode) - strlen("-cbc"), "-cbc")) {
278 p = strstr(decode, "-cbc");
281 evp = EVP_get_cipherbyname(decode);
284 (*ndo->ndo_warning)(ndo, "failed to find cipher algo %s\n", decode);
297 /* decode some hex! */
324 char *decode, struct sa_list *sa)
328 colon = strchr(decode, ':');
330 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode);
413 char *decode;
421 decode = spikey;
428 decode = line;
474 (*ndo->ndo_warning)(ndo, "print_esp: failed to decode spi# %s\n", foo);
488 (*ndo->ndo_warning)(ndo, "print_esp: can not decode IP# %s\n", spikey);
493 if (decode) {
495 while (isspace((unsigned char)*decode))
496 decode++;
498 if(!espprint_decode_encalgo(ndo, decode, &sa1)) {
629 /* see if we can find the SA, and if so, decode it */
646 /* see if we can find the SA, and if so, decode it */