]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix examples in EVP_PKEY_encapsulate/decapsulate documentation
authorЗишан Мирза <zmirza@tutanota.de>
Thu, 12 Sep 2024 14:01:21 +0000 (16:01 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 26 Sep 2024 08:29:57 +0000 (10:29 +0200)
Fixes #25448

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25450)

doc/man3/EVP_PKEY_decapsulate.pod
doc/man3/EVP_PKEY_encapsulate.pod

index b59aab8bbf9fe268d6965bbd2e6221d85082d5fb..c18427e411574b59e3b31ab32acbf6b9a5f8c136 100644 (file)
@@ -64,7 +64,7 @@ Decapsulate data using RSA:
  unsigned char *secret = NULL;;
 
  ctx = EVP_PKEY_CTX_new_from_pkey(libctx, rsa_priv_key, NULL);
- if (ctx = NULL)
+ if (ctx == NULL)
      /* Error */
  if (EVP_PKEY_decapsulate_init(ctx, NULL) <= 0)
      /* Error */
index 6874f31cf5b2ccb10191ccb93dc42036009ec71e..042b169a175f79561c5b32a5d65a24c1d85fffcc 100644 (file)
@@ -70,7 +70,7 @@ Encapsulate an RSASVE key (for RSA keys).
  unsigned char *out = NULL, *secret = NULL;
 
  ctx = EVP_PKEY_CTX_new_from_pkey(libctx, rsa_pub_key, NULL);
- if (ctx = NULL)
+ if (ctx == NULL)
      /* Error */
  if (EVP_PKEY_encapsulate_init(ctx, NULL) <= 0)
      /* Error */