diff options
| author | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-06 12:57:29 +0200 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-06 12:57:29 +0200 |
| commit | 5029714a9dcd308e5bc813a29bd1a38bfc7ecee7 (patch) | |
| tree | 323e5572fd157d5f41fede5cc71f89005cbb9db2 /plugins/netutils.h | |
| parent | dbd38bf7ec95c886b252d5ee0a66735f2f4a47c5 (diff) | |
| parent | f43083c6a9d5d9e66d42e7cd0b698b7eb1ecf822 (diff) | |
| download | monitoring-plugins-5029714a9dcd308e5bc813a29bd1a38bfc7ecee7.tar.gz | |
Merge branch 'pr/1373'
* pr/1373:
check_http: Allow for requesting TLSv1.1/TLSv1.2
Diffstat (limited to 'plugins/netutils.h')
| -rw-r--r-- | plugins/netutils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h index c6fce901..2766029e 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h | |||
| @@ -91,6 +91,16 @@ RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn)); | |||
| 91 | 91 | ||
| 92 | /* SSL-Related functionality */ | 92 | /* SSL-Related functionality */ |
| 93 | #ifdef HAVE_SSL | 93 | #ifdef HAVE_SSL |
| 94 | # define MP_SSLv2 1 | ||
| 95 | # define MP_SSLv3 2 | ||
| 96 | # define MP_TLSv1 3 | ||
| 97 | # define MP_TLSv1_1 4 | ||
| 98 | # define MP_TLSv1_2 5 | ||
| 99 | # define MP_SSLv2_OR_NEWER 6 | ||
| 100 | # define MP_SSLv3_OR_NEWER 7 | ||
| 101 | # define MP_TLSv1_OR_NEWER 8 | ||
| 102 | # define MP_TLSv1_1_OR_NEWER 9 | ||
| 103 | # define MP_TLSv1_2_OR_NEWER 10 | ||
| 94 | /* maybe this could be merged with the above np_net_connect, via some flags */ | 104 | /* maybe this could be merged with the above np_net_connect, via some flags */ |
| 95 | int np_net_ssl_init(int sd); | 105 | int np_net_ssl_init(int sd); |
| 96 | int np_net_ssl_init_with_hostname(int sd, char *host_name); | 106 | int np_net_ssl_init_with_hostname(int sd, char *host_name); |
