Lines Matching refs:decode
110 /* see if we can find the SA, and if so, decode it */
220 * decode the form: SPINUM@IP <tab> ALGONAME:0xsecret
226 char *decode, struct sa_list *sa)
233 colon = strchr(decode, ':');
235 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode);
240 if (strlen(decode) > strlen("-hmac96") &&
241 !strcmp(decode + strlen(decode) - strlen("-hmac96"),
243 p = strstr(decode, "-hmac96");
247 if (strlen(decode) > strlen("-cbc") &&
248 !strcmp(decode + strlen(decode) - strlen("-cbc"), "-cbc")) {
249 p = strstr(decode, "-cbc");
252 evp = EVP_get_cipherbyname(decode);
255 (*ndo->ndo_warning)(ndo, "failed to find cipher algo %s\n", decode);
268 /* decode some hex! */
295 char *decode, struct sa_list *sa)
299 colon = strchr(decode, ':');
301 (*ndo->ndo_warning)(ndo, "failed to decode espsecret: %s\n", decode);
384 char *decode;
392 decode = spikey;
398 decode = line;
448 (*ndo->ndo_warning)(ndo, "print_esp: failed to decode spi# %s\n", foo);
470 (*ndo->ndo_warning)(ndo, "print_esp: can not decode IP# %s\n", spikey);
475 if (decode) {
477 while (isspace((unsigned char)*decode))
478 decode++;
480 if(!espprint_decode_encalgo(ndo, decode, &sa1)) {
611 /* see if we can find the SA, and if so, decode it */
629 /* see if we can find the SA, and if so, decode it */