Skip to content

Commit

Permalink
fix openssl 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones committed Jan 2, 2018
1 parent 6a49edd commit cc96102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/os_auth/check_cert.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ char *asn1_to_cstr(ASN1_STRING *astr)
return NULL;
}

if (!(tmp = ASN1_STRING_get0_data(astr))) {
if (!(tmp = ASN1_STRING_data(astr))) {
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion src/os_auth/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ SSL_CTX *get_ssl_context(const char *ciphers)
OpenSSL_add_all_algorithms();

/* Create our context */
sslmeth = TLS_method();
sslmeth = TLSv1_2_method();
if (!(ctx = SSL_CTX_new(sslmeth))) {
goto CONTEXT_ERR;
}
Expand Down

0 comments on commit cc96102

Please sign in to comment.