Jean-Paul Calderone | e0fcf51 | 2012-02-13 09:10:15 -0500 | [diff] [blame^] | 1 | /* |
| 2 | * session.h |
| 3 | * Copyright (C) Jean-Paul Calderone |
| 4 | * See LICENSE for details. |
| 5 | * |
| 6 | * Defined here is the Python type which represents an SSL session by wrapping |
| 7 | * an OpenSSL SSL_SESSION*. |
| 8 | * |
| 9 | */ |
| 10 | |
| 11 | #ifndef PyOpenSSL_SSL_SESSION_H_ |
| 12 | #define PyOpenSSL_SSL_SESSION_H_ |
| 13 | |
| 14 | #include <Python.h> |
| 15 | #include <openssl/ssl.h> |
| 16 | |
| 17 | typedef struct { |
| 18 | PyObject_HEAD |
| 19 | } ssl_SessionObj; |
| 20 | |
| 21 | extern PyTypeObject ssl_Session_Type; |
| 22 | |
| 23 | extern int init_ssl_session(PyObject *); |
| 24 | |
| 25 | #endif |