OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
cli.cpp File Reference
#include <stdio.h>
#include <memory.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/err.h>

Go to the source code of this file.

Macros

#define CHK_NULL(x)   if ((x)==NULL) exit (1)
 
#define CHK_ERR(err, s)   if ((err)==-1) { perror(s); exit(1); }
 
#define CHK_SSL(err)   if ((err)==-1) { ERR_print_errors_fp(stderr); exit(2); }
 

Functions

void main ()
 

Macro Definition Documentation

#define CHK_ERR (   err,
 
)    if ((err)==-1) { perror(s); exit(1); }

Definition at line 25 of file cli.cpp.

#define CHK_NULL (   x)    if ((x)==NULL) exit (1)

Definition at line 24 of file cli.cpp.

#define CHK_SSL (   err)    if ((err)==-1) { ERR_print_errors_fp(stderr); exit(2); }

Definition at line 26 of file cli.cpp.

Function Documentation

void main ( void  )

Definition at line 28 of file cli.cpp.