logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ne_ssl_set_protovers - set session SSL/TLS minimum or maximum protocol version

Description

       The ne_ssl_set_protovers function sets the minimum and/or maximum SSL/TLS version. Either minimum and/or
       maximum may be specified as NE_SSL_PROTO_UNSPEC, in which case no limit is imposed.

History

ne_ssl_set_protovers is available in neon 0.34.0 and later.

Name

       ne_ssl_set_protovers - set session SSL/TLS minimum or maximum protocol version

Return Value

       The ne_ssl_set_protovers function returns zero on success or non-zero on error. Errors include an invalid
       range (minimum above maximum), or if the protocol version is not supported by the SSL/TLS toolkit in use,
       or if SSL/TLS is not in use for the session.

See Also

       ne_ssl_proto_name, ne_session_create.

Synopsis

#include<ne_session.h>intne_ssl_set_protovers(ne_session*sess,enumne_ssl_protocolmin,enumne_ssl_protocolmax);

See Also