EVP_KDF-SSHKDF man page error?
Kory Hamzeh
kory at avatarci.com
Fri Mar 25 18:11:40 UTC 2022
Hi All,
If you look at the example SSH KDF code here:
https://www.openssl.org/docs/manmaster/man7/EVP_KDF-SSHKDF.html
Specifically, these lines:
*p++ = OSSL_PARAM_construct_utf8_string(OSSL_KDF_PARAM_SSHKDF_TYPE,
&type, sizeof(type));
The variable ‘type’ is defined as a “const char”, so an 8 bit integer. The compiler spits out a warning on that line. Is the example code correct?
I wonder if it should be calling OSSL_PARAM_construct_int() and ‘type’ changed to ‘int’?
Thanks,
Kory
More information about the openssl-users
mailing list