CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/01/30 06:51:44

Modified files:
        lib/libcrypto/evp: p_legacy.c 

Log message:
EVP_SealInit(): minor cleanup.

Explicitly compare pointers against NULL, turn the function into single
exit, add hint at why npubk <= 0 or pubk == NULL are a success path:

The documentation briefly explains that EVP_OpenInit() and EVP_SealInit()
is able to initialize the EVP_CIPHER_CTX in two steps exactly like the
EVP_CipherInit_ex() API they wrap: the first call with non-NULL cipher
(aka type) only sets the cipher on the ctx, then it returns to allow
callers to customize the EVP_CIPHER_CTX, and a second call with
cipher == NULL skips the initialization and finishes the ctx setup
by setting key and iv.

Prompted by a report by Niels Dossche.

ok jsing kenjiro

Reply via email to