More compatibility stuff.
cryptography.io wants things exposed out of EVP_get_cipherby* including,
sadly, ECB mode.
Change-Id: I9bac46f8ffad1a79d190cee3b0c0686bf540298e
Reviewed-on: https://boringssl-review.googlesource.com/28464
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
diff --git a/include/openssl/ec.h b/include/openssl/ec.h
index 69b30c5..989cf56 100644
--- a/include/openssl/ec.h
+++ b/include/openssl/ec.h
@@ -320,7 +320,7 @@
typedef struct ec_method_st EC_METHOD;
-// EC_GROUP_method_of returns NULL.
+// EC_GROUP_method_of returns a dummy non-NULL pointer.
OPENSSL_EXPORT const EC_METHOD *EC_GROUP_method_of(const EC_GROUP *group);
// EC_METHOD_get_field_type returns NID_X9_62_prime_field.
diff --git a/include/openssl/evp.h b/include/openssl/evp.h
index 1dffb64..bb017f1 100644
--- a/include/openssl/evp.h
+++ b/include/openssl/evp.h
@@ -796,6 +796,9 @@
// EVP_PKEY_get0_DH returns NULL.
OPENSSL_EXPORT DH *EVP_PKEY_get0_DH(EVP_PKEY *pkey);
+// EVP_PKEY_get1_DH returns NULL.
+OPENSSL_EXPORT DH *EVP_PKEY_get1_DH(EVP_PKEY *pkey);
+
// Preprocessor compatibility section (hidden).
//
diff --git a/include/openssl/rsa.h b/include/openssl/rsa.h
index 92982b4..7ed5dce 100644
--- a/include/openssl/rsa.h
+++ b/include/openssl/rsa.h
@@ -589,6 +589,10 @@
const uint8_t *param,
size_t param_len);
+// RSA_print prints a textual representation of |rsa| to |bio|. It returns one
+// on success or zero otherwise.
+OPENSSL_EXPORT int RSA_print(BIO *bio, const RSA *rsa, int indent);
+
struct rsa_meth_st {
struct openssl_method_common_st common;