Module Name: src
Committed By: christos
Date: Mon Feb 5 16:09:09 UTC 2018
Modified Files:
src/crypto/external/bsd/openssl.old/dist/crypto/dh: dh.h
src/crypto/external/bsd/openssl.old/dist/crypto/rsa: rsa.h
Log Message:
add more functions that heimdal uses.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/crypto/external/bsd/openssl.old/dist/crypto/dh/dh.h
cvs rdiff -u -r1.4 -r1.5 \
src/crypto/external/bsd/openssl.old/dist/crypto/rsa/rsa.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/openssl.old/dist/crypto/dh/dh.h
diff -u src/crypto/external/bsd/openssl.old/dist/crypto/dh/dh.h:1.4 src/crypto/external/bsd/openssl.old/dist/crypto/dh/dh.h:1.5
--- src/crypto/external/bsd/openssl.old/dist/crypto/dh/dh.h:1.4 Mon Feb 5 06:55:46 2018
+++ src/crypto/external/bsd/openssl.old/dist/crypto/dh/dh.h Mon Feb 5 11:09:09 2018
@@ -426,6 +426,13 @@ DH_set_length(DH *dh, long length)
{
dh->length = length;
}
+
+const char *DH_meth_get0_name(const DH_METHOD *meth)
+{
+ return meth->name;
+}
+
+
#endif
#ifdef __cplusplus
Index: src/crypto/external/bsd/openssl.old/dist/crypto/rsa/rsa.h
diff -u src/crypto/external/bsd/openssl.old/dist/crypto/rsa/rsa.h:1.4 src/crypto/external/bsd/openssl.old/dist/crypto/rsa/rsa.h:1.5
--- src/crypto/external/bsd/openssl.old/dist/crypto/rsa/rsa.h:1.4 Mon Feb 5 06:55:47 2018
+++ src/crypto/external/bsd/openssl.old/dist/crypto/rsa/rsa.h Mon Feb 5 11:09:09 2018
@@ -686,6 +686,14 @@ static inline int RSA_meth_set1_name(RSA
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 @@ static inline int RSA_bits(const RSA *r)
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 @@ static inline void RSA_get0_crt_params(c
*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