summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-08-02 14:29:33 +0200
committerRichard Levitte <levitte@openssl.org>2020-08-24 10:02:26 +0200
commit4fd397821139723fd4e51a03e92df33e9a9fadcc (patch)
treef4f63e97361f8250afcdcca54d7d76bde1fbfeea /include
parentab00ddb55907317d6cece552d12ddf3263c01043 (diff)
DECODER: Add function to set an OSSL_PASSPHRASE_CALLBACK type callback
This makes it possible to use OSSL_DECODER in functions that are passed a OSSL_PASSPHRASE_CALLBACK already. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12512)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/decoder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/decoder.h b/include/openssl/decoder.h
index cb5a404b89..91dfca4a09 100644
--- a/include/openssl/decoder.h
+++ b/include/openssl/decoder.h
@@ -58,6 +58,9 @@ int OSSL_DECODER_CTX_set_passphrase(OSSL_DECODER_CTX *ctx,
int OSSL_DECODER_CTX_set_pem_password_cb(OSSL_DECODER_CTX *ctx,
pem_password_cb *cb,
void *cbarg);
+int OSSL_DECODER_CTX_set_passphrase_cb(OSSL_DECODER_CTX *ctx,
+ OSSL_PASSPHRASE_CALLBACK *cb,
+ void *cbarg);
int OSSL_DECODER_CTX_set_passphrase_ui(OSSL_DECODER_CTX *ctx,
const UI_METHOD *ui_method,
void *ui_data);