clean up certs & keys for purify

This commit is contained in:
ian.mcgreer%sun.com 2002-02-15 20:50:47 +00:00
Родитель 867be68441
Коммит 8cb24fcc5a
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -1104,6 +1104,20 @@ main(int argc, char **argv)
client_main(port, connections, privKey, cert, hostName, nickName); client_main(port, connections, privKey, cert, hostName, nickName);
/* clean up */
if (cert[kt_rsa]) {
CERT_DestroyCertificate(cert[kt_rsa]);
}
if (cert[kt_fortezza]) {
CERT_DestroyCertificate(cert[kt_fortezza]);
}
if (privKey[kt_rsa]) {
SECKEY_DestroyPrivateKey(privKey[kt_rsa]);
}
if (privKey[kt_fortezza]) {
SECKEY_DestroyPrivateKey(privKey[kt_fortezza]);
}
/* some final stats. */ /* some final stats. */
if (ssl3stats->hsh_sid_cache_hits + ssl3stats->hsh_sid_cache_misses + if (ssl3stats->hsh_sid_cache_hits + ssl3stats->hsh_sid_cache_misses +
ssl3stats->hsh_sid_cache_not_ok == 0) { ssl3stats->hsh_sid_cache_not_ok == 0) {