LCOV - code coverage report
Current view: top level - DCPS/security - OpenSSL_init.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 4 4 100.0 %
Date: 2023-04-30 01:32:43 Functions: 2 2 100.0 %

          Line data    Source code
       1             : /*
       2             :  * Distributed under the OpenDDS License.
       3             :  * See: http://www.opendds.org/license.html
       4             :  */
       5             : 
       6             : /**
       7             :  * This is separate from OpenSSL_legacy.h to use in the SSL Unit Test Main.cpp
       8             :  */
       9             : 
      10             : #ifndef OPENDDS_DCPS_SECURITY_OPENSSL_INIT_H
      11             : #define OPENDDS_DCPS_SECURITY_OPENSSL_INIT_H
      12             : 
      13             : #include <openssl/evp.h>
      14             : 
      15             : #if OPENSSL_VERSION_NUMBER < 0x10100000L
      16             : 
      17             : inline void openssl_init()
      18             : {
      19             :   OpenSSL_add_all_algorithms();
      20             : }
      21             : 
      22             : inline void openssl_cleanup()
      23             : {
      24             :   EVP_cleanup();
      25             : }
      26             : 
      27             : #else
      28             : 
      29          40 : inline void openssl_init()
      30             : {
      31          40 : }
      32             : 
      33          37 : inline void openssl_cleanup()
      34             : {
      35          37 : }
      36             : 
      37             : #endif // OPENSSL_VERSION_NUMBER < 0x10100000L
      38             : 
      39             : #endif

Generated by: LCOV version 1.16