Loading docs/examples/curlx.c +4 −13 Original line number Diff line number Diff line Loading @@ -228,8 +228,8 @@ static int ssl_app_verify_callback(X509_STORE_CTX *ctx, void *arg) - an application verification callback (the function above) */ static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) { static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) { sslctxparm * p = (sslctxparm *) parm; SSL_CTX * ctx = (SSL_CTX *) sslctx; Loading @@ -255,12 +255,9 @@ static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) { sk_X509_value(p->ca, sk_X509_num(p->ca)-1)); SSL_CTX_set_verify_depth(ctx, 2); SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, ZERO_NULL); SSL_CTX_set_cert_verify_callback(ctx, ssl_app_verify_callback, parm); return CURLE_OK; err: ERR_print_errors(p->errorbio); Loading @@ -268,8 +265,8 @@ static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) { } int main(int argc, char **argv) { int main(int argc, char **argv) { BIO* in=NULL; BIO* out=NULL; Loading Loading @@ -306,8 +303,6 @@ int main(int argc, char **argv) { OpenSSL_add_all_digests(); ERR_load_crypto_strings(); while(*args && *args[0] == '-') { if(!strcmp (*args, "-in")) { if(args[1]) { Loading Loading @@ -384,8 +379,6 @@ int main(int argc, char **argv) { goto err; } /* set input */ if((in=BIO_new(BIO_s_file())) == NULL) { Loading Loading @@ -422,8 +415,6 @@ int main(int argc, char **argv) { goto err; } if(!(p12bio = BIO_new_file(p.p12file , "rb"))) { BIO_printf(p.errorbio, "Error opening P12 file %s\n", p.p12file); goto err; Loading Loading
docs/examples/curlx.c +4 −13 Original line number Diff line number Diff line Loading @@ -228,8 +228,8 @@ static int ssl_app_verify_callback(X509_STORE_CTX *ctx, void *arg) - an application verification callback (the function above) */ static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) { static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) { sslctxparm * p = (sslctxparm *) parm; SSL_CTX * ctx = (SSL_CTX *) sslctx; Loading @@ -255,12 +255,9 @@ static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) { sk_X509_value(p->ca, sk_X509_num(p->ca)-1)); SSL_CTX_set_verify_depth(ctx, 2); SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, ZERO_NULL); SSL_CTX_set_cert_verify_callback(ctx, ssl_app_verify_callback, parm); return CURLE_OK; err: ERR_print_errors(p->errorbio); Loading @@ -268,8 +265,8 @@ static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) { } int main(int argc, char **argv) { int main(int argc, char **argv) { BIO* in=NULL; BIO* out=NULL; Loading Loading @@ -306,8 +303,6 @@ int main(int argc, char **argv) { OpenSSL_add_all_digests(); ERR_load_crypto_strings(); while(*args && *args[0] == '-') { if(!strcmp (*args, "-in")) { if(args[1]) { Loading Loading @@ -384,8 +379,6 @@ int main(int argc, char **argv) { goto err; } /* set input */ if((in=BIO_new(BIO_s_file())) == NULL) { Loading Loading @@ -422,8 +415,6 @@ int main(int argc, char **argv) { goto err; } if(!(p12bio = BIO_new_file(p.p12file , "rb"))) { BIO_printf(p.errorbio, "Error opening P12 file %s\n", p.p12file); goto err; Loading