gtpc1m5e | Transmission Control Protocol/Internet Protocol |
The SSL_CTX_check_private_key function verifies that the private key agrees with the corresponding public key in the certificate associated with a specific context (CTX) structure.
Format
#include <openssl/ssl.h> int SSL_CTX_check_private_key(SSL_CTX *ctx)
Normal Return
Return code 1 indicates that the function was successful.
Error Return
A return code equal to 0 indicates an error. The following are the most likely causes of errors:
Programming Considerations
You must assign a private key to the CTX structure using one of the following functions before calling the SSL_CTX_check_private_key function:
You must assign a certificate to the CTX structure using one of the following functions before calling the SSL_CTX_check_private_key function:
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