You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2019/03/14 20:05:30 UTC

[qpid-proton] 01/06: NO-JIRA: Remove unused code from example

This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit 5af234e5aa76c670de465155fcc2bc094636f4f7
Author: Andrew Stitcher <as...@apache.org>
AuthorDate: Thu Mar 7 02:08:22 2019 -0500

    NO-JIRA: Remove unused code from example
---
 c/examples/send-ssl.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/c/examples/send-ssl.c b/c/examples/send-ssl.c
index c8b9e0c..d08622c 100644
--- a/c/examples/send-ssl.c
+++ b/c/examples/send-ssl.c
@@ -46,22 +46,6 @@ typedef struct app_data_t {
 } app_data_t;
 
 static int exit_code = 0;
-
-/* Note must be run in the current directory to find certificate files */
-#define SSL_FILE(NAME) CMAKE_CURRENT_SOURCE_DIR "/ssl-certs/" NAME
-#define SSL_PW "tclientpw"
-/* Windows vs. OpenSSL certificates */
-#if defined(_WIN32)
-#  define CERTIFICATE(NAME) SSL_FILE(NAME "-certificate.p12")
-#  define SET_CREDENTIALS(DOMAIN, NAME)                                 \
-  pn_ssl_domain_set_credentials(DOMAIN, SSL_FILE(NAME "-full.p12"), "", SSL_PW)
-#else
-#  define CERTIFICATE(NAME) SSL_FILE(NAME "-certificate.pem")
-#  define SET_CREDENTIALS(DOMAIN, NAME)                                 \
-  pn_ssl_domain_set_credentials(DOMAIN, CERTIFICATE(NAME), SSL_FILE(NAME "-private-key.pem"), SSL_PW)
-#endif
-
-
 static void check_condition(pn_event_t *e, pn_condition_t *cond) {
   if (pn_condition_is_set(cond)) {
     fprintf(stderr, "%s: %s: %s\n", pn_event_type_name(pn_event_type(e)),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org