diff options
author | jsing <> | 2019-10-24 15:47:15 +0000 |
---|---|---|
committer | jsing <> | 2019-10-24 15:47:15 +0000 |
commit | 50e5605acbcc6e6bf44f795b6e2747dbecef349d (patch) | |
tree | e97555b995bdb0199ee9fe306f2b474d1305fa88 /src/lib/libcrypto/rsa/rsa.h | |
parent | ef4abacfcb7c75a1b082fb154737c8d3af8f14ab (diff) | |
download | openbsd-50e5605acbcc6e6bf44f795b6e2747dbecef349d.tar.gz openbsd-50e5605acbcc6e6bf44f795b6e2747dbecef349d.tar.bz2 openbsd-50e5605acbcc6e6bf44f795b6e2747dbecef349d.zip |
Provide RSA_pkey_ctx_ctrl().
This is a wrapper around EVP_PKEY_CTX_ctrl() which requires the key to be
either RSA or RSA-PSS.
From OpenSSL 1.1.1d.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa.h')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h index 2aa472f501..1672297266 100644 --- a/src/lib/libcrypto/rsa/rsa.h +++ b/src/lib/libcrypto/rsa/rsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa.h,v 1.40 2019/06/05 15:41:33 gilles Exp $ */ | 1 | /* $OpenBSD: rsa.h,v 1.41 2019/10/24 15:47:15 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -294,6 +294,8 @@ const RSA_METHOD *RSA_PKCS1_SSLeay(void); | |||
294 | 294 | ||
295 | const RSA_METHOD *RSA_null_method(void); | 295 | const RSA_METHOD *RSA_null_method(void); |
296 | 296 | ||
297 | int RSA_pkey_ctx_ctrl(EVP_PKEY_CTX *ctx, int optype, int cmd, int p1, void *p2); | ||
298 | |||
297 | RSA *d2i_RSAPublicKey(RSA **a, const unsigned char **in, long len); | 299 | RSA *d2i_RSAPublicKey(RSA **a, const unsigned char **in, long len); |
298 | int i2d_RSAPublicKey(const RSA *a, unsigned char **out); | 300 | int i2d_RSAPublicKey(const RSA *a, unsigned char **out); |
299 | extern const ASN1_ITEM RSAPublicKey_it; | 301 | extern const ASN1_ITEM RSAPublicKey_it; |