/* * Clean up and exit. */ void cleanup_exit(int code) { /* * Clean up. */ sk_cleanup(); random_save_seed(); exit(code); }
//--------------------------------------------------------------------------- void __fastcall PuttyFinalize() { if (SaveRandomSeed) { random_save_seed(); } random_unref(); sk_cleanup(); win_misc_cleanup(); DeleteCriticalSection(&putty_section); }
/* * Clean up and exit. */ void cleanup_exit(int code) { /* * Clean up. */ sk_cleanup(); random_save_seed(); #ifdef MSCRYPTOAPI crypto_wrapup(); #endif exit(code); }
void PuttyFinalize() { if (SaveRandomSeed) { random_save_seed(); } random_unref(); sk_cleanup(); #ifndef __linux__ win_misc_cleanup(); win_secur_cleanup(); #endif ec_cleanup(); }
/* * Clean up and exit. */ void cleanup_exit(int code) { /* * Clean up. */ sk_cleanup(); WSACleanup(); if (cfg.protocol == PROT_SSH) { random_save_seed(); #ifdef MSCRYPTOAPI crypto_wrapup(); #endif } exit(code); }