1 /* 2 * shctx.h 3 * 4 * Copyright (C) 2011 EXCELIANCE 5 * 6 * Author: Emeric Brun - emeric@exceliance.fr 7 * 8 */ 9 10 #ifndef SHCTX_H 11 #define SHCTX_H 12 #include <openssl/ssl.h> 13 14 /* Init shared memory context if not allocated and set SSL context callbacks 15 * size is the max number of stored session 16 * Returns: -1 on alloc failure, size if performs context alloc, and 0 if just 17 * perform callbacks registration */ 18 int shared_context_init(SSL_CTX *ctx, int size); 19 20 #endif /* SHCTX_H */