fix hard tabs, new line

This commit is contained in:
Takashi Kojo
2017-11-29 07:03:00 +09:00
parent 64caf325f8
commit b664a1187b
2 changed files with 13 additions and 10 deletions

View File

@ -11471,7 +11471,8 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
{ {
WOLFSSL_ENTER("wolfSSL_CTX_get_options"); WOLFSSL_ENTER("wolfSSL_CTX_get_options");
WOLFSSL_MSG("wolfSSL options are set through API calls and macros"); WOLFSSL_MSG("wolfSSL options are set through API calls and macros");
if(ctx == NULL)return SSL_FAILURE; if(ctx == NULL)
return SSL_FAILURE;
return ctx->mask; return ctx->mask;
} }
@ -11480,9 +11481,11 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
{ {
WOLFSSL *ssl; WOLFSSL *ssl;
WOLFSSL_ENTER("SSL_CTX_set_options"); WOLFSSL_ENTER("SSL_CTX_set_options");
if(ctx == NULL)return SSL_FAILURE; if(ctx == NULL)
return SSL_FAILURE;
ssl = wolfSSL_new(ctx); ssl = wolfSSL_new(ctx);
if(ssl == NULL)return SSL_FAILURE; if(ssl == NULL)
return SSL_FAILURE;
ctx->mask = wolfSSL_set_options(ssl, opt); ctx->mask = wolfSSL_set_options(ssl, opt);
wolfSSL_free(ssl); wolfSSL_free(ssl);
return ctx->mask; return ctx->mask;

View File

@ -10362,7 +10362,7 @@ static void msg_cb(int write_p, int version, int content_type,
const void *buf, size_t len, SSL *ssl, void *arg) const void *buf, size_t len, SSL *ssl, void *arg)
{ {
(void)write_p; (void)write_p;
(void)version; (void)version;
(void)content_type; (void)content_type;
(void)buf; (void)buf;
(void)len; (void)len;
@ -10452,9 +10452,9 @@ static void test_wolfSSL_set_options(void)
SSL* ssl; SSL* ssl;
SSL_CTX* ctx; SSL_CTX* ctx;
unsigned char protos[] = { unsigned char protos[] = {
7, 't', 'l', 's', '/', '1', '.', '2', 7, 't', 'l', 's', '/', '1', '.', '2',
8, 'h', 't', 't', 'p', '/', '1', '.', '1' 8, 'h', 't', 't', 'p', '/', '1', '.', '1'
}; };
unsigned int len = sizeof(protos); unsigned int len = sizeof(protos);
@ -10502,10 +10502,10 @@ static void test_wolfSSL_set_options(void)
AssertNull((SSL_clear_options(ssl, SSL_OP_NO_COMPRESSION) & AssertNull((SSL_clear_options(ssl, SSL_OP_NO_COMPRESSION) &
SSL_OP_NO_COMPRESSION)); SSL_OP_NO_COMPRESSION));
AssertTrue(SSL_set_msg_callback(ssl, msg_cb) == SSL_SUCCESS); AssertTrue(SSL_set_msg_callback(ssl, msg_cb) == SSL_SUCCESS);
SSL_set_msg_callback_arg(ssl, arg); SSL_set_msg_callback_arg(ssl, arg);
AssertTrue(SSL_CTX_set_alpn_protos(ctx, protos, len) == SSL_SUCCESS); AssertTrue(SSL_CTX_set_alpn_protos(ctx, protos, len) == SSL_SUCCESS);
SSL_free(ssl); SSL_free(ssl);
SSL_CTX_free(ctx); SSL_CTX_free(ctx);