Make WvStreams compile with gcc 4.4.
[wvstreams.git] / crypto / wvsslhacks.c
blob4c1b3fc968bcfb03a3d8105211339eb9b0960988
1 /*
2 * Worldvisions Tunnel Vision Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4 *
5 * Functions to make us compile with both newer and older versions of openssl.
6 *
7 * THIS FILE MUST BE COMPILED AS STANDARD C, NOT C++!!!
8 *
9 * See wvsslhacks.h.
11 #include "wvsslhacks.h"
13 RSA *wv_d2i_RSAPublicKey(RSA **a, const unsigned char **pp, long length)
15 return d2i_RSAPublicKey(a, (void *)pp, length);
19 RSA *wv_d2i_RSAPrivateKey(RSA **a, const unsigned char **pp, long length)
21 return d2i_RSAPrivateKey(a, (void *)pp, length);
24 DSA *wv_d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length)
26 return d2i_DSAPublicKey(a, (void *)pp, length);
30 DSA *wv_d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length)
32 return d2i_DSAPrivateKey(a, (void *)pp, length);
36 X509_REQ *wv_d2i_X509_REQ(X509_REQ **a, const unsigned char **pp, long length)
38 return d2i_X509_REQ(a, (void *)pp, length);
41 X509 *wv_d2i_X509(X509 **a, unsigned char **pp, long length)
43 return d2i_X509(a, (void *)pp, length);
46 int wv_i2d_OCSP_REQUEST_bio(BIO *bio, OCSP_REQUEST *req)
48 return i2d_OCSP_REQUEST_bio(bio, req);