File: wvsslhacks.h

package info (click to toggle)
wvstreams 4.0.2-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,420 kB
  • ctags: 6,518
  • sloc: cpp: 52,544; sh: 5,770; ansic: 810; makefile: 461; tcl: 114; perl: 18
file content (32 lines) | stat: -rw-r--r-- 942 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* -*- Mode: C++ -*-
 * Worldvisions Tunnel Vision Software:
 *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
 *
 * Functions to make us compile with both newer and older versions of openssl.
 * 
 * The trick here is to write C wrappers for functions where different
 * versions of openssl have changed the pointer types of arguments: C
 * files only give warnings about mismatched pointers, where C++ files
 * fail completely.
 */
#ifndef __WVSSLHACKS_H
#define __WVSSLHACKS_H

#include <openssl/rsa.h>
#include <openssl/x509.h>

#ifdef __cplusplus
extern "C" {
#endif
    
RSA *wv_d2i_RSAPublicKey(RSA **a, const unsigned char **pp, long length);
RSA *wv_d2i_RSAPrivateKey(RSA **a, const unsigned char **pp, long length);
X509_REQ *wv_d2i_X509_REQ(X509_REQ **a, const unsigned char **pp, long length);    
X509 *wv_d2i_X509(X509 **a, unsigned char **pp, long length);


#ifdef __cplusplus
};
#endif

#endif // __WVSSLHACKS_H