From: Taizo ITO Date: Tue, 16 Jun 2009 07:04:00 +0000 (+0900) Subject: change sample configuration X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=4533204ab072433288e11381e2359bc6f6bdd441;p=pam-smtpauth%2Fpam_smtpauth.git change sample configuration --- diff --git a/sample/pam_smtpauth.conf b/sample/pam_smtpauth.conf index 24481f8..2f2e9e2 100644 --- a/sample/pam_smtpauth.conf +++ b/sample/pam_smtpauth.conf @@ -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 diff --git a/smtpauth.c b/smtpauth.c index 828cd73..f74deb0 100644 --- a/smtpauth.c +++ b/smtpauth.c @@ -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; }