summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rsa/rsa.h
diff options
context:
space:
mode:
authorjsing <>2019-10-24 15:47:15 +0000
committerjsing <>2019-10-24 15:47:15 +0000
commit50e5605acbcc6e6bf44f795b6e2747dbecef349d (patch)
treee97555b995bdb0199ee9fe306f2b474d1305fa88 /src/lib/libcrypto/rsa/rsa.h
parentef4abacfcb7c75a1b082fb154737c8d3af8f14ab (diff)
downloadopenbsd-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.h4
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
295const RSA_METHOD *RSA_null_method(void); 295const RSA_METHOD *RSA_null_method(void);
296 296
297int RSA_pkey_ctx_ctrl(EVP_PKEY_CTX *ctx, int optype, int cmd, int p1, void *p2);
298
297RSA *d2i_RSAPublicKey(RSA **a, const unsigned char **in, long len); 299RSA *d2i_RSAPublicKey(RSA **a, const unsigned char **in, long len);
298int i2d_RSAPublicKey(const RSA *a, unsigned char **out); 300int i2d_RSAPublicKey(const RSA *a, unsigned char **out);
299extern const ASN1_ITEM RSAPublicKey_it; 301extern const ASN1_ITEM RSAPublicKey_it;