Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssl.old/dist/crypto Add missing func...



details:   https://anonhg.NetBSD.org/src/rev/0daa2d590c63
branches:  trunk
changeset: 991941:0daa2d590c63
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 08 19:19:36 2018 +0000

description:
Add missing functions for racoon2 to compile under netbsd-8
>From Chuck Zmudzinski
XXX: pullup-8 (to openssl not openssl.old)

diffstat:

 crypto/external/bsd/openssl.old/dist/crypto/evp/evp.h       |  8 ++++++++
 crypto/external/bsd/openssl.old/dist/crypto/x509/x509_vfy.h |  9 +++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)

diffs (37 lines):

diff -r d33f11545678 -r 0daa2d590c63 crypto/external/bsd/openssl.old/dist/crypto/evp/evp.h
--- a/crypto/external/bsd/openssl.old/dist/crypto/evp/evp.h     Wed Aug 08 19:05:19 2018 +0000
+++ b/crypto/external/bsd/openssl.old/dist/crypto/evp/evp.h     Wed Aug 08 19:19:36 2018 +0000
@@ -1559,6 +1559,14 @@
        return pkey->pkey.rsa;
 }
 
+static inline DSA *EVP_PKEY_get0_DSA(EVP_PKEY *pkey)
+{
+       if (pkey->type != EVP_PKEY_DSA) {
+               return NULL;
+       }
+       return pkey->pkey.dsa;
+}
+
 #endif
 
 
diff -r d33f11545678 -r 0daa2d590c63 crypto/external/bsd/openssl.old/dist/crypto/x509/x509_vfy.h
--- a/crypto/external/bsd/openssl.old/dist/crypto/x509/x509_vfy.h       Wed Aug 08 19:05:19 2018 +0000
+++ b/crypto/external/bsd/openssl.old/dist/crypto/x509/x509_vfy.h       Wed Aug 08 19:19:36 2018 +0000
@@ -645,6 +645,15 @@
                                                            *node);
 const X509_POLICY_NODE *X509_policy_node_get0_parent(const X509_POLICY_NODE
                                                      *node);
+#if OPENSSL_API_COMPAT >= 0x10100000L
+
+static inline X509 *
+X509_STORE_CTX_get0_cert(X509_STORE_CTX *x)
+{ 
+       return X509_STORE_CTX_get_current_cert(x);
+}
+ 
+#endif
 
 #ifdef  __cplusplus
 }



Home | Main Index | Thread Index | Old Index