Skip to content

Commit

Permalink
small correction of initialisation
Browse files Browse the repository at this point in the history
Signed-off-by: Gautham Kuppuswamy <[email protected]>
  • Loading branch information
Gautham-coder committed Jul 30, 2024
1 parent 776b568 commit d3a3759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ int tlsSocketInit(TlsEnvironment *env, TlsSocket **outSocket, int fd, bool isSer
if (label) {
rc = rc || gsk_attribute_set_buffer(socket->socketHandle, GSK_KEYRING_LABEL, label, 0);
}
char *curves = env->settings->curves;
if (ciphers) {
zowelog(NULL, LOG_COMP_HTTPSERVER, ZOWE_LOG_DEBUG, "Ciphers set to %s\n", ciphers);
rc = rc || gsk_attribute_set_buffer(socket->socketHandle, GSK_V3_CIPHER_SPECS_EXPANDED, ciphers, 0);
rc = rc || gsk_attribute_set_enum(socket->socketHandle, GSK_V3_CIPHERS, GSK_V3_CIPHERS_CHAR4);
}
char *curves = env->settings->curves;
if (curves) {
zowelog(NULL, LOG_COMP_HTTPSERVER, ZOWE_LOG_DEBUG, "Curves set to %s\n", curves);
rc = rc || gsk_attribute_set_buffer(socket->socketHandle, GSK_CLIENT_ECURVE_LIST, curves, 0);
Expand Down

0 comments on commit d3a3759

Please sign in to comment.