ne_ssl_set_protovers(3)

ne_ssl_set_protovers3

Set session ssl/tls minimum or maximum protocol version

Usage

#include <ne_session.h>

int ne_ssl_set_protovers(ne_session *sess, enum ne_ssl_protocol min, enum ne_ssl_protocol max);

Overview

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.

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.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

History

ne_ssl_set_protovers is available in neon 0.34.0 and later.

From neon 0.37.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.