22 lines
733 B
Text
22 lines
733 B
Text
$NetBSD: patch-aa,v 1.1 2006/01/20 00:21:27 joerg Exp $
|
|
|
|
--- src/pki.c.orig 2006-01-20 00:13:14.000000000 +0000
|
|
+++ src/pki.c
|
|
@@ -285,10 +285,17 @@ prikey_t * prikey_parse_pem(const buf_t
|
|
break;
|
|
|
|
/* if it's not a decryption problem - bail out */
|
|
+#if OPENSSL_VERSION_NUMBER >= 0x00908000L
|
|
+ if (ERR_get_error() != ERR_PACK(ERR_LIB_EVP,
|
|
+ EVP_F_EVP_DECRYPTFINAL_EX,
|
|
+ EVP_R_BAD_DECRYPT))
|
|
+ goto cleanup;
|
|
+#else
|
|
if (ERR_get_error() != ERR_PACK(ERR_LIB_EVP,
|
|
EVP_F_EVP_DECRYPTFINAL,
|
|
EVP_R_BAD_DECRYPT))
|
|
goto cleanup;
|
|
+#endif
|
|
|
|
/* rewind bio stuff */
|
|
mem = (BUF_MEM*)bio->ptr;
|