"Fossies" - the Fresh Open Source Software Archive

Member "bahamut-2.1.5/include/libcrypto-compat.h" (28 May 2020, 575 Bytes) of package /linux/privat/bahamut-2.1.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "libcrypto-compat.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.1.4_vs_2.1.5.

    1 #ifndef LIBCRYPTO_COMPAT_H
    2 #define LIBCRYPTO_COMPAT_H
    3 
    4 #include <struct.h>
    5 #ifdef USE_SSL
    6 
    7 #if OPENSSL_VERSION_NUMBER < 0x10100000L
    8 
    9 #include <openssl/dh.h>
   10 
   11 void DH_get0_pqg(const DH *dh, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g);
   12 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
   13 void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key);
   14 int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
   15 int DH_set_length(DH *dh, long length);
   16 
   17 #endif /* OPENSSL_VERSION_NUMBER */
   18 
   19 #endif /* USE_SSL */
   20 
   21 #endif /* LIBCRYPTO_COMPAT_H */