]> granicus.if.org Git - apache/commitdiff
s/destroy/free/g; likeness to SSL naming
authorDoug MacEachern <dougm@apache.org>
Wed, 18 Jul 2001 20:35:07 +0000 (20:35 +0000)
committerDoug MacEachern <dougm@apache.org>
Wed, 18 Jul 2001 20:35:07 +0000 (20:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89606 13f79535-47bb-0310-9956-ffa450edef68

modules/tls/mod_tls.c
modules/tls/openssl_state_machine.c
modules/tls/openssl_state_machine.h

index 5aee9a08e94656d31c3ad6bb026821ef761a23da..7bc49d6d066d1b38fc6416cf63237653475752c0 100644 (file)
@@ -119,7 +119,7 @@ static const char *tls_cert_file(cmd_parms *cmd, void *dummy, const char *arg)
 
 static apr_status_t tls_filter_cleanup(void *data)
 {
-    SSLStateMachine_destroy((SSLStateMachine *)data);
+    SSLStateMachine_free((SSLStateMachine *)data);
     return APR_SUCCESS;
 }
 
index 207b06c0fb063f3551858fade60dca0a0685b44b..0d7d5e0d869e9f0e4f2cbea26af527c0620582d0 100644 (file)
@@ -146,7 +146,7 @@ SSLStateMachine *SSLStateMachine_new(const char *szCertificateFile,
     if (n <= 0) {
         SSLStateMachine_print_error(pMachine,
                                     "Error opening certificate file:");
-        SSLStateMachine_destroy(pMachine);
+        SSLStateMachine_free(pMachine);
         return NULL;
     }
 
@@ -155,7 +155,7 @@ SSLStateMachine *SSLStateMachine_new(const char *szCertificateFile,
     if (n <= 0) {
         SSLStateMachine_print_error(pMachine,
                                     "Error opening private key file:");
-        SSLStateMachine_destroy(pMachine);
+        SSLStateMachine_free(pMachine);
         return NULL;
     }
 
@@ -173,7 +173,7 @@ SSLStateMachine *SSLStateMachine_new(const char *szCertificateFile,
     return pMachine;
     }
 
-void SSLStateMachine_destroy(SSLStateMachine *pMachine)
+void SSLStateMachine_free(SSLStateMachine *pMachine)
 {
     if (pMachine->pCtx) {
         SSL_CTX_free(pMachine->pCtx);
index 581baf9c9b524779e24b95880bd992109289fec7..a041449512c7a0c5d464815e13c74f7a82d3e913 100644 (file)
@@ -3,7 +3,7 @@ typedef struct SSLStateMachine SSLStateMachine;
 void SSLStateMachine_init(void);
 SSLStateMachine *SSLStateMachine_new(const char *szCertificateFile,
                                     const char *szKeyFile);
-void SSLStateMachine_destroy(SSLStateMachine *pMachine);
+void SSLStateMachine_free(SSLStateMachine *pMachine);
 void SSLStateMachine_read_inject(SSLStateMachine *pMachine,
                                 const unsigned char *aucBuf,int nBuf);
 int SSLStateMachine_read_extract(SSLStateMachine *pMachine,