Skip to content

Commit 4f89984

Browse files
Зишан Мирзаt8m
Зишан Мирза
authored andcommitted
Fix examples in EVP_PKEY_encapsulate/decapsulate documentation
Fixes openssl#25448 Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Dmitry Belyavskiy <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from openssl#25450)
1 parent ffc5a29 commit 4f89984

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/man3/EVP_PKEY_decapsulate.pod

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Decapsulate data using RSA:
6464
unsigned char *secret = NULL;;
6565

6666
ctx = EVP_PKEY_CTX_new_from_pkey(libctx, rsa_priv_key, NULL);
67-
if (ctx = NULL)
67+
if (ctx == NULL)
6868
/* Error */
6969
if (EVP_PKEY_decapsulate_init(ctx, NULL) <= 0)
7070
/* Error */

doc/man3/EVP_PKEY_encapsulate.pod

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Encapsulate an RSASVE key (for RSA keys).
7070
unsigned char *out = NULL, *secret = NULL;
7171

7272
ctx = EVP_PKEY_CTX_new_from_pkey(libctx, rsa_pub_key, NULL);
73-
if (ctx = NULL)
73+
if (ctx == NULL)
7474
/* Error */
7575
if (EVP_PKEY_encapsulate_init(ctx, NULL) <= 0)
7676
/* Error */

0 commit comments

Comments
 (0)