ssl policy增加调试输出。
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
struct ssl_stream;
|
||||
|
||||
enum ssl_stream_action
|
||||
@@ -26,11 +26,14 @@ enum SSL_STREAM_OPT
|
||||
SSL_STREAM_OPT_PROTOCOL_MIN_VERSION,
|
||||
SSL_STREAM_OPT_PROTOCOL_MAX_VERSION,
|
||||
SSL_STREAM_OPT_ENABLE_ALPN,
|
||||
SSL_STREAM_OPT_KEYRING_ID
|
||||
SSL_STREAM_OPT_KEYRING_ID,
|
||||
SSL_STREAM_OPT_SNI, //VALUE is string
|
||||
SSL_STREAM_OPT_ADDR //VALUE is string
|
||||
};
|
||||
int sslver_str2num(const char * version_str);
|
||||
|
||||
//s_stream must be upstream.
|
||||
int ssl_stream_set_integer_opt(struct ssl_stream *upstream, enum SSL_STREAM_OPT opt_type, int opt_val);
|
||||
int ssl_stream_get_integer_opt(struct ssl_stream *upstream, enum SSL_STREAM_OPT opt_type, int *opt_val);
|
||||
int ssl_stream_get_string_opt(struct ssl_stream *upstream, enum SSL_STREAM_OPT opt_type, char* in_buff, size_t sz);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user