OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
inetdsrv.cpp File Reference
#include <stdio.h>
#include <errno.h>
#include "rsa.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 HOME   "/usr/users/sampo/demo/"
 
#define CERTF   HOME "plain-cert.pem"
 
#define KEYF   HOME "plain-key.pem"
 
#define CHK_NULL(x)   if ((x)==NULL) exit (1)
 
#define CHK_ERR(err, s)
 
#define CHK_SSL(err)   if ((err)==-1) { ERR_print_errors_fp(log); exit(2); }
 

Functions

void main ()
 

Macro Definition Documentation

#define CERTF   HOME "plain-cert.pem"

Definition at line 18 of file inetdsrv.cpp.

#define CHK_ERR (   err,
 
)
Value:
if ((err)==-1) \
{ fprintf(log, "%s %d\n", (s), errno); exit(1); }

Definition at line 22 of file inetdsrv.cpp.

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

Definition at line 21 of file inetdsrv.cpp.

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

Definition at line 24 of file inetdsrv.cpp.

#define HOME   "/usr/users/sampo/demo/"

Definition at line 17 of file inetdsrv.cpp.

#define KEYF   HOME "plain-key.pem"

Definition at line 19 of file inetdsrv.cpp.

Function Documentation

void main ( void  )

Definition at line 26 of file inetdsrv.cpp.