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 more functio...



details:   https://anonhg.NetBSD.org/src/rev/9b0da5cad0be
branches:  trunk
changeset: 829549:9b0da5cad0be
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 05 16:09:09 2018 +0000

description:
add more functions that heimdal uses.

diffstat:

 crypto/external/bsd/openssl.old/dist/crypto/dh/dh.h   |   7 ++++++
 crypto/external/bsd/openssl.old/dist/crypto/rsa/rsa.h |  20 ++++++++++++++++++-
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (61 lines):

diff -r 0c8201d3842e -r 9b0da5cad0be crypto/external/bsd/openssl.old/dist/crypto/dh/dh.h
--- a/crypto/external/bsd/openssl.old/dist/crypto/dh/dh.h       Mon Feb 05 16:00:52 2018 +0000
+++ b/crypto/external/bsd/openssl.old/dist/crypto/dh/dh.h       Mon Feb 05 16:09:09 2018 +0000
@@ -426,6 +426,13 @@
 {
        dh->length = length;
 }
+
+const char *DH_meth_get0_name(const DH_METHOD *meth)
+{
+       return meth->name;
+}   
+
+
 #endif
 
 #ifdef  __cplusplus
diff -r 0c8201d3842e -r 9b0da5cad0be crypto/external/bsd/openssl.old/dist/crypto/rsa/rsa.h
--- a/crypto/external/bsd/openssl.old/dist/crypto/rsa/rsa.h     Mon Feb 05 16:00:52 2018 +0000
+++ b/crypto/external/bsd/openssl.old/dist/crypto/rsa/rsa.h     Mon Feb 05 16:09:09 2018 +0000
@@ -686,6 +686,14 @@
        return 1;
 }
 
+static inline int RSA_meth_set_pub_enc(RSA_METHOD *meth,
+    int (*pub_enc) (int flen, const unsigned char *from,
+    unsigned char *to, RSA *rsa, int padding))
+{
+       meth->rsa_pub_enc = pub_enc;
+       return 1;
+}
+
 static inline int RSA_meth_set_priv_enc(RSA_METHOD *meth,
     int (*priv_enc) (int flen, const unsigned char *from,
     unsigned char *to, RSA *rsa, int padding))
@@ -822,7 +830,6 @@
        return BN_num_bits(r->n);
 }
 
-
 static inline void RSA_get0_crt_params(const RSA *r, const BIGNUM **dmp1,
      const BIGNUM **dmq1, const BIGNUM **iqmp)
 {
@@ -834,6 +841,17 @@
                *iqmp = r->iqmp;
 }
 
+static inline int RSA_meth_set_init(RSA_METHOD *meth, int (*init)(RSA *rsa))
+{
+       meth->init = init;
+       return 1;
+}   
+
+static inline const char *RSA_meth_get0_name(const RSA_METHOD *meth)
+{
+       return meth->name;
+}   
+
 #endif
 
 



Home | Main Index | Thread Index | Old Index