Created
July 1, 2018 20:57
-
-
Save alanhuang122/85b9282d52e94a689e05a0c04a36676f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <openssl/ssl.h> | |
#include <openssl/ossl_typ.h> | |
#include <stdio.h> | |
int main(){ | |
SSL_CTX *ctx = NULL; | |
ctx = SSL_CTX_new(TLS_method()); | |
SSL_CTX_set_min_proto_version(ctx, 0); | |
SSL_CTX_set_max_proto_version(ctx, 0); | |
printf("min ver: %d\n", SSL_CTX_get_min_proto_version(ctx)); | |
printf("max ver: %d\n", SSL_CTX_get_max_proto_version(ctx)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment