diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2022-04-22 19:26:08 +0200 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2022-04-29 14:13:02 +0200 |
commit | 2d96bfd957149e491feba55a3d04afb26b2668b5 (patch) | |
tree | d970ecf2e40a3e9fa77213ca83e17ed3e2f78415 /test/evp_pkey_ctx_new_from_name.c | |
parent | e560655f72dc27bcea973c6abfe99af75d313ad7 (diff) | |
download | openssl-new-2d96bfd957149e491feba55a3d04afb26b2668b5.tar.gz |
Testing the EVP_PKEY_CTX_new_from_name without preliminary init
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18199)
Diffstat (limited to 'test/evp_pkey_ctx_new_from_name.c')
-rw-r--r-- | test/evp_pkey_ctx_new_from_name.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/evp_pkey_ctx_new_from_name.c b/test/evp_pkey_ctx_new_from_name.c new file mode 100644 index 0000000000..24063ea05e --- /dev/null +++ b/test/evp_pkey_ctx_new_from_name.c @@ -0,0 +1,14 @@ +#include <stdio.h> +#include <openssl/ec.h> +#include <openssl/evp.h> +#include <openssl/err.h> + +int main(int argc, char *argv[]) +{ + EVP_PKEY_CTX *pctx = NULL; + + pctx = EVP_PKEY_CTX_new_from_name(NULL, "NO_SUCH_ALGORITHM", NULL); + EVP_PKEY_CTX_free(pctx); + + return 0; +} |