summaryrefslogtreecommitdiffstats
path: root/doc/man3
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-02-10 16:55:19 +0100
committerRichard Levitte <levitte@openssl.org>2021-02-23 13:41:47 +0100
commit6179dfc7c4bd850004c3b4b8220f3559573130d5 (patch)
tree145212e694a514211482e23912ae4cc976df5fe8 /doc/man3
parentutil/perl/OpenSSL/config.pm: Add VMS specific C compiler settings (diff)
downloadopenssl-6179dfc7c4bd850004c3b4b8220f3559573130d5.tar.xz
openssl-6179dfc7c4bd850004c3b4b8220f3559573130d5.zip
EVP: Implement EVP_PKEY_CTX_is_a()
This does what was previously done by looking at pctx->pmeth->pkey_id, but handles both legacy and provider side contexts, and is supposed to become a replacement for the old way. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13913)
Diffstat (limited to 'doc/man3')
-rw-r--r--doc/man3/EVP_PKEY_CTX_new.pod8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/man3/EVP_PKEY_CTX_new.pod b/doc/man3/EVP_PKEY_CTX_new.pod
index 3342386d94..cb203dbd71 100644
--- a/doc/man3/EVP_PKEY_CTX_new.pod
+++ b/doc/man3/EVP_PKEY_CTX_new.pod
@@ -3,7 +3,8 @@
=head1 NAME
EVP_PKEY_CTX_new, EVP_PKEY_CTX_new_id, EVP_PKEY_CTX_new_from_name,
-EVP_PKEY_CTX_new_from_pkey, EVP_PKEY_CTX_dup, EVP_PKEY_CTX_free
+EVP_PKEY_CTX_new_from_pkey, EVP_PKEY_CTX_dup, EVP_PKEY_CTX_free,
+EVP_PKEY_CTX_is_a
- public key algorithm context functions
=head1 SYNOPSIS
@@ -20,6 +21,7 @@ EVP_PKEY_CTX_new_from_pkey, EVP_PKEY_CTX_dup, EVP_PKEY_CTX_free
const char *propquery);
EVP_PKEY_CTX *EVP_PKEY_CTX_dup(const EVP_PKEY_CTX *ctx);
void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);
+ int EVP_PKEY_CTX_is_a(EVP_PKEY_CTX *ctx, const char *keytype);
=head1 DESCRIPTION
@@ -53,6 +55,8 @@ keygen operation.
EVP_PKEY_CTX_free() frees up the context I<ctx>.
If I<ctx> is NULL, nothing is done.
+EVP_PKEY_is_a() checks if the key type associated with I<ctx> is I<keytype>.
+
=head1 NOTES
=head2 On B<EVP_PKEY_CTX>
@@ -102,6 +106,8 @@ the newly allocated B<EVP_PKEY_CTX> structure or B<NULL> if an error occurred.
EVP_PKEY_CTX_free() does not return a value.
+EVP_PKEY_CTX_is_a() returns 1 for true and 0 for false.
+
=head1 SEE ALSO
L<EVP_PKEY_new(3)>