OSDN Git Service

change sample configuration
authorTaizo ITO <taizo.ito@hde.co.jp>
Tue, 16 Jun 2009 07:04:00 +0000 (16:04 +0900)
committerTaizo ITO <taizo.ito@hde.co.jp>
Tue, 16 Jun 2009 07:04:00 +0000 (16:04 +0900)
sample/pam_smtpauth.conf
smtpauth.c

index 24481f8..2f2e9e2 100644 (file)
@@ -1,3 +1,5 @@
 PasswordPrompt = Password: 
 SMTPServer_0 = mail.example.com:25
+SMTPServer_1 = smtps:mail.example.com:465
 Timeout = 60
+SSLCertificateFile = /usr/share/ssl/certs/ca-bundle.crt
index 828cd73..f74deb0 100644 (file)
@@ -982,6 +982,7 @@ init_ssl(config_t *conf) {
 #ifdef DEBUG
         syslog(LOG_DEBUG, "pam_smtpauth(smtpauth): Error: SSL_CTX_load_verify_locations: %s.",ERR_error_string(ERR_get_error(), 0));
 #endif
+        SSL_CTX_free(SSLContext);
         return -1;
     }