thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nsuke <...@git.apache.org>
Subject [GitHub] thrift pull request #1185: Thrift 3369 - Third try to merge SSL c_glib
Date Sat, 11 Feb 2017 15:55:02 GMT
Github user nsuke commented on a diff in the pull request:

    https://github.com/apache/thrift/pull/1185#discussion_r100669633
  
    --- 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 --
    
    client.crt is a client certificate file. What you want here is CA.pem.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message