File: myssl.h

package info (click to toggle)
scrollz 2.2.3-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 8,392 kB
  • sloc: ansic: 79,473; tcl: 2,866; makefile: 703; sh: 508
file content (30 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (6)
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
#ifndef _myssl_h_
#define _myssl_h_

#if defined(HAVE_SSL) || defined(HAVE_OPENSSL)

#if defined(HAVE_SSL)
#include <gnutls/gnutls.h>
#elif defined(HAVE_OPENSSL)
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#endif

#ifndef TRUE
#define TRUE 0 
#endif

#ifndef FALSE
#define FALSE 1
#endif

#define CHK_NULL(x) if ((x)==NULL) { say("SSL error - NULL data form server"); return; }
#define CHK_ERR(err, s) if ((err)==-1) { say("SSL prime error - %s", s); return; }
#define CHK_SSL(err) if ((err)==-1) { say("SSL error - %d", err); return; }

#endif /* SSL || HAVE_SSL */

#endif /* _myssl_h_ */