Github user jeking3 commented on a diff in the pull request:
https://github.com/apache/thrift/pull/1185#discussion_r100670306
--- Diff: test/c_glib/src/test_client.c ---
@@ -181,11 +194,22 @@ main (int argc, char **argv)
sigpipe_action.sa_flags = SA_RESETHAND;
sigaction (SIGPIPE, &sigpipe_action, NULL);
+ if (ssl) {
+ thrift_ssl_socket_initialize_openssl();
+ }
+
/* Establish all our connection objects */
- socket = g_object_new (THRIFT_TYPE_SOCKET,
+ socket = g_object_new (socket_type,
"hostname", host,
"port", port,
+ "ssl_accept_selfsigned", TRUE,
NULL);
+ if (ssl && !thrift_ssl_load_cert_from_file(THRIFT_SSL_SOCKET(socket),
"../keys/client.crt")) {
--- End diff --
My mistake - I added that line of code in my first pull request and it
caused the next issue to occur.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---