gtpc1m5mTransmission Control Protocol/Internet Protocol

SSL_CTX_set_default_passwd_cb_userdata

The SSL_CTX_set_default_passwd_cb_userdata function identifies the password that is used to access data in a private key file that is in PEM (base64 encoded) format.

Format

#include <openssl/ssl.h>
void SSL_CTX_set_default_password_cb_userdata(SSL_CTX *ctx, void *password)

ctx
A pointer to a token returned on the SSL_CTX_new call or the SSL_CTX_new_shared call.

password
A pointer to the password. The maximum length is 255 characters.

Normal Return

None.

Error Return

None.

Programming Considerations

You must use the SSL_CTX_set_default_passwd_cb_userdata function if your application is going to load a private key file that contains encrypted data.

Examples

For sample SSL applications, go to http://www.ibm.com/tpf/pubs/tpfpubs.htm, click SSL for the TPF 4.1 System: An Online User's Guide, and click Examples from the left navigation bar.

Related Information