27 lines
962 B
Diff
27 lines
962 B
Diff
|
diff -up bacula-3.0.2/bacula-3.0.2/src/lib/crypto.c.openssl bacula-3.0.2/bacula-3.0.2/src/lib/crypto.c
|
||
|
--- bacula-3.0.2/bacula-3.0.2/src/lib/crypto.c.openssl 2008-11-06 20:10:08.000000000 +0100
|
||
|
+++ bacula-3.0.2/bacula-3.0.2/src/lib/crypto.c 2009-08-22 12:48:20.000000000 +0200
|
||
|
@@ -309,7 +309,11 @@ typedef struct PEM_CB_Context {
|
||
|
*/
|
||
|
static ASN1_OCTET_STRING *openssl_cert_keyid(X509 *cert) {
|
||
|
X509_EXTENSION *ext;
|
||
|
+#if (OPENSSL_VERSION_NUMBER < 0x10000000L)
|
||
|
X509V3_EXT_METHOD *method;
|
||
|
+#else
|
||
|
+ const X509V3_EXT_METHOD *method;
|
||
|
+#endif
|
||
|
ASN1_OCTET_STRING *keyid;
|
||
|
int i;
|
||
|
#if (OPENSSL_VERSION_NUMBER >= 0x0090800FL)
|
||
|
@@ -973,6 +977,10 @@ void crypto_sign_free(SIGNATURE *sig)
|
||
|
free (sig);
|
||
|
}
|
||
|
|
||
|
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
||
|
+#define EVP_PKEY_decrypt EVP_PKEY_decrypt_old
|
||
|
+#define EVP_PKEY_encrypt EVP_PKEY_encrypt_old
|
||
|
+#endif
|
||
|
/*
|
||
|
* Create a new encryption session.
|
||
|
* Returns: A pointer to a CRYPTO_SESSION object on success.
|