NAME
SSLCTXsetsslversion, SSLsetsslmethod, SSLgetsslmethod -
choose a new TLS/SSL methodSYNOPSIS
#include
int SSLCTXsetsslversion(SSLCTX *ctx, SSLMETHOD *method); int SSLsetsslmethod(SSL *s, SSLMETHOD *method); SSLMETHOD *SSLgetsslmethod(SSL *ssl);DESCRIPTION
SSLCTXsetsslversion() sets a new default TLS/SSL mmeetthhoodd for SSL objects newly created from this ccttxx. SSL objects already created with SSLnew(3) are not affected, except when SSLclear(3) is being called. SSLsetsslmethod() sets a new TLS/SSL mmeetthhoodd for a particular ssssll object. It may be reset, when SSLclear() is called. SSLgetsslmethod() returns a function pointer to the TLS/SSL method set in ssssll. NNOOTTEESS The available mmeetthhoodd choices are described in SSLCTXnew(3). When SSLclear(3) is called and no session is connected to an SSL object, the method of the SSL object is reset to the method currently set in the corresponding SSLCTX object.RETURN VALUES
The following return values can occur for SSLCTXsetsslversion() and SSLsetsslmethod(): 0 The new choice failed, check the error stack to find out the reason. 1 The operation succeeded.SEE ALSO
SSLCTXnew(3), SSLnew(3), SSLclear(3), ssl(3), SSLsetconnectstate(3)0.9.7l 2001-03-08 SSLCTXsetsslversion(3)