|
From: Bob T. <bt...@us...> - 2001-08-13 02:21:00
|
Update of /cvsroot/benson/benson3/include/benson
In directory usw-pr-cvs1:/tmp/cvs-serv25733/include/benson
Added Files:
benson.h shm_wrapper.h ssl.h
Log Message:
Performed a little housekeeping
--- NEW FILE: benson.h ---
#ifndef __benson_h
#define __benson_h
#include <signal.h>
#include "benson/shm_wrapper.h"
#include "benson/ssl.h"
#define CA_LIST "root.pem"
#define RANDOM "random.pem"
#define KEYFILE "key.pem"
#endif /* __benson_h */
--- NEW FILE: shm_wrapper.h ---
#ifndef __shm_wrapper_h
#define __shm_wrapper_h
#include <sys/shm.h>
#include <sys/stat.h>
#include <errno.h>
int bn_shmget(key_t key, size_t size, int flags);
void * bn_shmat(int id, const void *shmadd, int flags);
void bn_shmdt(const void *shmaddr);
void bn_shmctl(int id, int cmd, struct shmid_ds *buff);
#endif /* __shm_wrapper_h */
--- NEW FILE: ssl.h ---
#ifndef __benson_ssl_h
#define __benson_ssl_h
#include <openssl/ssl.h>
struct ssl_password {
char *password;
int length;
};
extern BIO *bio_err;
SSL_CTX *initialize_ctx(char *keyfile, char *password);
void destroy_ctx(SSL_CTX *ctx);
#endif /* __benson_ssl_h */
|