diff options
| author | jsing <> | 2019-10-24 15:47:15 +0000 |
|---|---|---|
| committer | jsing <> | 2019-10-24 15:47:15 +0000 |
| commit | 952910b85d29ed474db8c76e4d46c1bd2dabc27b (patch) | |
| tree | e97555b995bdb0199ee9fe306f2b474d1305fa88 /src/lib/libcrypto/rsa/rsa.h | |
| parent | 113b00e5904b9423da9766f23fb2fd48f1d697e3 (diff) | |
| download | openbsd-952910b85d29ed474db8c76e4d46c1bd2dabc27b.tar.gz openbsd-952910b85d29ed474db8c76e4d46c1bd2dabc27b.tar.bz2 openbsd-952910b85d29ed474db8c76e4d46c1bd2dabc27b.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 '')
| -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; |
