Changeset 640
- Timestamp:
- 28/07/08 10:59:58 (4 months ago)
- Files:
-
- 1 modified
-
trunk/sx/ssl.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sx/ssl.c
r564 r640 739 739 return 1; 740 740 741 /* !!! output openssl error messages to the debug log */742 743 741 /* create the context */ 744 742 ctx = SSL_CTX_new(SSLv23_method()); … … 752 750 ret = SSL_CTX_load_verify_locations (ctx, cachain, NULL); 753 751 if(ret != 1) { 754 _sx_debug(ZONE, "WARNING: couldn't load CA chain: %s ", cachain);752 _sx_debug(ZONE, "WARNING: couldn't load CA chain: %s; %s", cachain, ERR_error_string(ret, NULL)); 755 753 } 756 754 } … … 759 757 ret = SSL_CTX_use_certificate_chain_file(ctx, pemfile); 760 758 if(ret != 1) { 761 _sx_debug(ZONE, "couldn't load certificate from %s ", pemfile);759 _sx_debug(ZONE, "couldn't load certificate from %s; %s", pemfile, ERR_error_string(ret, NULL)); 762 760 SSL_CTX_free(ctx); 763 761 return 1; … … 767 765 ret = SSL_CTX_use_PrivateKey_file(ctx, pemfile, SSL_FILETYPE_PEM); 768 766 if(ret != 1) { 769 _sx_debug(ZONE, "couldn't load private key from %s ", pemfile);767 _sx_debug(ZONE, "couldn't load private key from %s; %s", pemfile, ERR_error_string(ret, NULL)); 770 768 SSL_CTX_free(ctx); 771 769 return 1; … … 775 773 ret = SSL_CTX_check_private_key(ctx); 776 774 if(ret != 1) { 777 _sx_debug(ZONE, "private key does not match certificate public key ");775 _sx_debug(ZONE, "private key does not match certificate public key; %s", ERR_error_string(ret, NULL)); 778 776 SSL_CTX_free(ctx); 779 777 return 1;
