SSL_CTX_set_default_passwd_cb_userdata

Use this function to identify the password that is used to access data in a private key file that is in base64 privacy enhanced mail (PEM) format.

Last updated

  • Changed in 2023 (information only; no code change).
  • Changed for PUT06.
  • Changed for PUT00.

Format

LIBS := CSSL 
#include <openssl/ssl.h>
void SSL_CTX_set_default_passwd_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

  • To use this function, you must include the library that is specified in the prototype in your makefile.
  • You must use this function if your application is going to load a private key file that contains encrypted data.
  • Do not issue this function if you are using a private key that resides in the z/TPF keystore.

Examples

For sample SSL applications, see SSL examples.