diff options
author | Richard Levitte <levitte@openssl.org> | 2020-07-09 07:47:12 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-09-06 20:53:57 +0200 |
commit | 6353507e9d4afe666ade7b8fdf0f0e673f57b36c (patch) | |
tree | b5b928128f4cc5a96962cbcada9606e479e7fbc2 /doc | |
parent | DOC: Modify one example in EVP_PKEY_fromdata(3) (diff) | |
download | openssl-6353507e9d4afe666ade7b8fdf0f0e673f57b36c.tar.xz openssl-6353507e9d4afe666ade7b8fdf0f0e673f57b36c.zip |
DOC: Fix check of EVP_PKEY_fromdata{,_init} in examples
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12389)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/EVP_PKEY_fromdata.pod | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/man3/EVP_PKEY_fromdata.pod b/doc/man3/EVP_PKEY_fromdata.pod index f488441b93..aaf545d648 100644 --- a/doc/man3/EVP_PKEY_fromdata.pod +++ b/doc/man3/EVP_PKEY_fromdata.pod @@ -110,8 +110,8 @@ TODO Write a set of cookbook documents and link to them. EVP_PKEY *pkey = NULL; if (ctx == NULL - || !EVP_PKEY_key_fromdata_init(ctx) - || !EVP_PKEY_fromdata(ctx, &pkey, params)) + || EVP_PKEY_key_fromdata_init(ctx) <= 0 + || EVP_PKEY_fromdata(ctx, &pkey, params) <= 0) exit(1); /* Do what you want with |pkey| */ @@ -173,8 +173,8 @@ TODO Write a set of cookbook documents and link to them. ctx = EVP_PKEY_CTX_new_from_name(NULL, "EC", NULL); if (ctx == NULL || params != NULL - || !EVP_PKEY_key_fromdata_init(ctx) - || !EVP_PKEY_fromdata(ctx, &pkey, params)) { + || EVP_PKEY_key_fromdata_init(ctx) <= 0 + || EVP_PKEY_fromdata(ctx, &pkey, params) <= 0) { exitcode = 1; } else { /* Do what you want with |pkey| */ |