| 1 |
/* |
| 2 |
* This file is part of the SSH Library |
| 3 |
* |
| 4 |
* Copyright (c) 2025 by Red Hat, Inc. |
| 5 |
* |
| 6 |
* Author: Jakub Jelen <[email protected]> |
| 7 |
* |
| 8 |
* The SSH Library is free software; you can redistribute it and/or modify |
| 9 |
* it under the terms of the GNU Lesser General Public License as published by |
| 10 |
* the Free Software Foundation; either version 2.1 of the License, or (at your |
| 11 |
* option) any later version. |
| 12 |
* |
| 13 |
* The SSH Library is distributed in the hope that it will be useful, but |
| 14 |
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 15 |
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
| 16 |
* License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU Lesser General Public License |
| 19 |
* along with the SSH Library; see the file COPYING. If not, write to |
| 20 |
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
| 21 |
* MA 02111-1307, USA. |
| 22 |
*/ |
| 23 |
|
| 24 |
#include "testserver_common.h" |
| 25 |
|
| 26 |
#if defined(HAVE_LIBCRYPTO) || defined(WITH_GSSAPI) |
| 27 |
/* for OPENSSL_cleanup() of GSSAPI's OpenSSL context */ |
| 28 |
#include <openssl/crypto.h> |
| 29 |
#endif |
| 30 |
|
| 31 |
void finalize_openssl(void) |
| 32 |
{ |
| 33 |
#if defined(HAVE_LIBCRYPTO) || defined(WITH_GSSAPI) |
| 34 |
OPENSSL_cleanup(); |
| 35 |
#endif |
| 36 |
} |