"Fossies" - the Fresh Open Source Software Archive

Member "stud-0.3/shctx.h" (2 Nov 2011, 474 Bytes) of package /linux/privat/old/stud-0.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "shctx.h" see the Fossies "Dox" file reference documentation.

    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 */