From fe02e8d334630b111d9eaad8f11877557784398d Mon Sep 17 00:00:00 2001 From: k clair Date: Tue, 9 Oct 2012 12:17:28 -0700 Subject: remove unused directory python-gnutls-1.1.9 --- python-gnutls-1.1.9/gnutls/library/_gnutls_init.c | 47 ----------------------- 1 file changed, 47 deletions(-) delete mode 100644 python-gnutls-1.1.9/gnutls/library/_gnutls_init.c (limited to 'python-gnutls-1.1.9/gnutls/library/_gnutls_init.c') diff --git a/python-gnutls-1.1.9/gnutls/library/_gnutls_init.c b/python-gnutls-1.1.9/gnutls/library/_gnutls_init.c deleted file mode 100644 index ff9156c..0000000 --- a/python-gnutls-1.1.9/gnutls/library/_gnutls_init.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2007 AG Projects. See LICENSE for details. - * Author: Dan Pascu - * - * GNUTLS library initializations. - * - */ - -#include - -#include -#include -#include -#include -#include - -// Use POSIX threads for libgcrypt locking -GCRY_THREAD_OPTION_PTHREAD_IMPL; - -// List of functions defined in the module -static PyMethodDef gnutls_methods[] = { - {NULL, NULL} // sentinel -}; - -PyDoc_STRVAR(module_doc, -"This module does behind the scenes GNUTLS initializations, like for example\n" -"enabling thread safety in the gcrypt library and calling the GNUTLS global\n" -"initialization functions."); - -// Initialization function for the module (must be called init_gnutls_init) -PyMODINIT_FUNC -init_gnutls_init(void) -{ - PyObject *m; - - m = Py_InitModule3("_gnutls_init", gnutls_methods, module_doc); - if (m == NULL) - return; - - // Enable thread safety for the posix threads library. - // This must be done before calling gnutls_global_init(). - gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); - - gnutls_global_init(); - gnutls_global_init_extra(); -} - -- cgit v1.2.3