[openssl-dev] [openssl.org #3705] Constness in SSL_CTX_set_srp_username and SSL_CTX_set_srp_password functions
Krzysztof Kwiatkowski via RT
rt at openssl.org
Tue Feb 17 21:48:54 UTC 2015
Currently SSL_CTX_set_srp_username/password functions take char* argument
for username/password value. In an application level code those values are
very often const (user provided data). In such cases, when passing those
values to OpenSSL library either dirty cast needs to be performed to remove
constness, or const value needs to be copied to temporary location (which
for SSL_CTX_set_srp_username is useless as this function copies again
username value in ssl3_ctx_ctrl function).
In this patch I try to cleanup API, so that const values also can be passed
to functions. Please integrate if interested.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR227.diff
Type: text/x-patch
Size: 5287 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20150217/889a665f/attachment.bin>
More information about the openssl-dev
mailing list