Download wolfSSL Manual

Transcript
Parameters:
method - pointer to the desired WOLFSSL_METHOD to use for the SSL context. This
is created using one of the wolfSSLvXX_XXXX_method() functions to specify
SSL/TLS/DTLS protocol level.
Example:
WOLFSSL_CTX*
ctx
= 0;
WOLFSSL_METHOD* method = 0;
method = wolfSSLv3_client_method();
if (method == NULL) {
// unable to get method
}
ctx = wolfSSL_CTX_new(method);
if (ctx == NULL) {
// context creation failed
}
See Also:
wolfSSL_new
wolfSSL_CTX_free
Synopsis:
void wolfSSL_CTX_free(WOLFSSL_CTX* ctx);
Description:
This function frees an allocated WOLFSSL_CTX object. This function decrements the
CTX reference count and only frees the context when the reference count has reached
0.
Return Values:
No return values are used for this function.
Parameters:
ctx - pointer to the SSL context, created with wolfSSL_CTX_new().
Copyright 2015 wolfSSL Inc. All rights reserved.
171