summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Haen <christophe.haen@cern.ch>2019-12-20 14:00:44 +0100
committerMatěj Cepl <mcepl@cepl.eu>2020-01-15 15:04:27 +0100
commit6c2f44f5c362667bf129a8433eb6decec9de8195 (patch)
tree17fd9e2c82869c403fd2e4569a15ae903f1e7a63
parent0a13974c250c0cfb4a146206356b18af72b23ab5 (diff)
downloadm2crypto-6c2f44f5c362667bf129a8433eb6decec9de8195.tar.gz
Expose X509_V_FLAG_ALLOW_PROXY_CERTS verification flag and X509_STORE_SET_FLAGS function
-rw-r--r--M2Crypto/SSL/__init__.py2
-rw-r--r--M2Crypto/X509.py9
-rw-r--r--M2Crypto/m2crypto.py108
-rw-r--r--SWIG/_m2crypto_wrap.c5204
-rw-r--r--SWIG/_x509.i9
5 files changed, 3530 insertions, 1802 deletions
diff --git a/M2Crypto/SSL/__init__.py b/M2Crypto/SSL/__init__.py
index baa5114..5e90f68 100644
--- a/M2Crypto/SSL/__init__.py
+++ b/M2Crypto/SSL/__init__.py
@@ -41,3 +41,5 @@ SSL_RECEIVED_SHUTDOWN = m2.SSL_RECEIVED_SHUTDOWN # type: int
op_all = m2.SSL_OP_ALL # type: int
op_no_sslv2 = m2.SSL_OP_NO_SSLv2 # type: int
+
+verify_allow_proxy_certs = m2.VERIFY_ALLOW_PROXY_CERTS
diff --git a/M2Crypto/X509.py b/M2Crypto/X509.py
index fc00ada..3f2f96d 100644
--- a/M2Crypto/X509.py
+++ b/M2Crypto/X509.py
@@ -1003,6 +1003,15 @@ class X509_Store(object):
add_cert = add_x509
+ def set_flags(self, flags):
+ """
+ Set the verification flags for the X509Store
+ Wrapper over OpenSSL X509_STORE_set_flags()
+
+ :param flags: verification parameters
+ """
+ return m2.x509_store_set_flags(self.store, flags)
+
class X509_Stack(object):
"""
diff --git a/M2Crypto/m2crypto.py b/M2Crypto/m2crypto.py
index 9cad6f4..6277ba5 100644
--- a/M2Crypto/m2crypto.py
+++ b/M2Crypto/m2crypto.py
@@ -1,13 +1,22 @@
# This file was automatically generated by SWIG (http://www.swig.org).
-# Version 2.0.10
+# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
-
-
-from sys import version_info
-if version_info >= (2,6,0):
+from sys import version_info as _swig_python_version_info
+if _swig_python_version_info >= (2, 7, 0):
+ def swig_import_helper():
+ import importlib
+ pkg = __name__.rpartition('.')[0]
+ mname = '.'.join((pkg, '_m2crypto')).lstrip('.')
+ try:
+ return importlib.import_module(mname)
+ except ImportError:
+ return importlib.import_module('_m2crypto')
+ _m2crypto = swig_import_helper()
+ del swig_import_helper
+elif _swig_python_version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
@@ -17,62 +26,82 @@ if version_info >= (2,6,0):
except ImportError:
import _m2crypto
return _m2crypto
- if fp is not None:
- try:
- _mod = imp.load_module('_m2crypto', fp, pathname, description)
- finally:
+ try:
+ _mod = imp.load_module('_m2crypto', fp, pathname, description)
+ finally:
+ if fp is not None:
fp.close()
- return _mod
+ return _mod
_m2crypto = swig_import_helper()
del swig_import_helper
else:
import _m2crypto
-del version_info
-from _m2crypto import *
+# pull in all the attributes from _m2crypto
+if __name__.rpartition('.')[0] != '':
+ if _swig_python_version_info >= (2, 7, 0):
+ try:
+ from ._m2crypto import *
+ except ImportError:
+ from _m2crypto import *
+ else:
+ from _m2crypto import *
+else:
+ from _m2crypto import *
+del _swig_python_version_info
+
try:
_swig_property = property
except NameError:
- pass # Python < 2.2 doesn't have 'property'.
-def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
- if (name == "thisown"): return self.this.own(value)
+ pass # Python < 2.2 doesn't have 'property'.
+
+try:
+ import builtins as __builtin__
+except ImportError:
+ import __builtin__
+
+def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
+ if (name == "thisown"):
+ return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
- method = class_type.__swig_setmethods__.get(name,None)
- if method: return method(self,value)
+ method = class_type.__swig_setmethods__.get(name, None)
+ if method:
+ return method(self, value)
if (not static):
- self.__dict__[name] = value
+ object.__setattr__(self, name, value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
-def _swig_setattr(self,class_type,name,value):
- return _swig_setattr_nondynamic(self,class_type,name,value,0)
-def _swig_getattr(self,class_type,name):
- if (name == "thisown"): return self.this.own()
- method = class_type.__swig_getmethods__.get(name,None)
- if method: return method(self)
- raise AttributeError(name)
+def _swig_setattr(self, class_type, name, value):
+ return _swig_setattr_nondynamic(self, class_type, name, value, 0)
+
+
+def _swig_getattr(self, class_type, name):
+ if (name == "thisown"):
+ return self.this.own()
+ method = class_type.__swig_getmethods__.get(name, None)
+ if method:
+ return method(self)
+ raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
+
def _swig_repr(self):
- try: strthis = "proxy of " + self.this.__repr__()
- except: strthis = ""
+ try:
+ strthis = "proxy of " + self.this.__repr__()
+ except __builtin__.Exception:
+ strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
-try:
- _object = object
- _newclass = 1
-except AttributeError:
- class _object : pass
- _newclass = 0
-
def _swig_setattr_nondynamic_method(set):
- def set_attr(self,name,value):
- if (name == "thisown"): return self.this.own(value)
- if hasattr(self,name) or (name == "this"):
- set(self,name,value)
+ def set_attr(self, name, value):
+ if (name == "thisown"):
+ return self.this.own(value)
+ if hasattr(self, name) or (name == "this"):
+ set(self, name, value)
else:
raise AttributeError("You cannot add attributes to %s" % self)
return set_attr
@@ -82,6 +111,3 @@ def _swig_setattr_nondynamic_method(set):
-
-
-
diff --git a/SWIG/_m2crypto_wrap.c b/SWIG/_m2crypto_wrap.c
index f0d647d..553e5ee 100644
--- a/SWIG/_m2crypto_wrap.c
+++ b/SWIG/_m2crypto_wrap.c
@@ -1,14 +1,18 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.10
- *
- * This file is not intended to be easily readable and contains a number of
+ * Version 3.0.12
+ *
+ * This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
- * changes to this file unless you know what you are doing--modify the SWIG
- * interface file instead.
+ * changes to this file unless you know what you are doing--modify the SWIG
+ * interface file instead.
* ----------------------------------------------------------------------------- */
+
+#ifndef SWIGPYTHON
#define SWIGPYTHON
+#endif
+
#define SWIG_PYTHON_THREADS
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
#define SWIGPYTHON_BUILTIN
@@ -44,28 +48,28 @@
#ifndef SWIGUNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
# define SWIGUNUSED
# endif
# elif defined(__ICC)
-# define SWIGUNUSED __attribute__ ((__unused__))
+# define SWIGUNUSED __attribute__ ((__unused__))
# else
-# define SWIGUNUSED
+# define SWIGUNUSED
# endif
#endif
#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
-# endif
+# endif
#endif
#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
# define SWIGUNUSEDPARM(p)
# else
-# define SWIGUNUSEDPARM(p) p SWIGUNUSED
+# define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif
@@ -80,9 +84,11 @@
#endif
/* exporting methods */
-#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
-# ifndef GCC_HASCLASSVISIBILITY
-# define GCC_HASCLASSVISIBILITY
+#if defined(__GNUC__)
+# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+# ifndef GCC_HASCLASSVISIBILITY
+# define GCC_HASCLASSVISIBILITY
+# endif
# endif
#endif
@@ -108,7 +114,7 @@
# define SWIGSTDCALL __stdcall
# else
# define SWIGSTDCALL
-# endif
+# endif
#endif
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
@@ -121,10 +127,29 @@
# define _SCL_SECURE_NO_DEPRECATE
#endif
+/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
+#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
+# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
+#endif
+/* Intel's compiler complains if a variable which was never initialised is
+ * cast to void, which is a common idiom which we use to indicate that we
+ * are aware a variable isn't used. So we just silence that warning.
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
+ */
+#ifdef __INTEL_COMPILER
+# pragma warning disable 592
+#endif
-/* Python.h has to appear first */
-#include <Python.h>
+
+#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
+/* Use debug wrappers with the Python release dll */
+# undef _DEBUG
+# include <Python.h>
+# define _DEBUG
+#else
+# include <Python.h>
+#endif
/* -----------------------------------------------------------------------------
* swigrun.swg
@@ -150,7 +175,7 @@
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
creating a static or dynamic library from the SWIG runtime code.
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
-
+
But only do this if strictly necessary, ie, if you have problems
with your compiler or suchlike.
*/
@@ -176,16 +201,16 @@
#define SWIG_POINTER_OWN 0x1
-/*
+/*
Flags/methods for returning states.
-
- The SWIG conversion methods, as ConvertPtr, return an integer
+
+ The SWIG conversion methods, as ConvertPtr, return an integer
that tells if the conversion was successful or not. And if not,
an error code can be returned (see swigerrors.swg for the codes).
-
+
Use the following macros/flags to set or process the returning
states.
-
+
In old versions of SWIG, code such as the following was usually written:
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
@@ -218,23 +243,23 @@
} else {
// fail code
}
-
+
I.e., now SWIG_ConvertPtr can return new objects and you can
identify the case and take care of the deallocation. Of course that
also requires SWIG_ConvertPtr to return new result values, such as
- int SWIG_ConvertPtr(obj, ptr,...) {
- if (<obj is ok>) {
- if (<need new object>) {
- *ptr = <ptr to new allocated object>;
- return SWIG_NEWOBJ;
- } else {
- *ptr = <ptr to old object>;
- return SWIG_OLDOBJ;
- }
- } else {
- return SWIG_BADOBJ;
- }
+ int SWIG_ConvertPtr(obj, ptr,...) {
+ if (<obj is ok>) {
+ if (<need new object>) {
+ *ptr = <ptr to new allocated object>;
+ return SWIG_NEWOBJ;
+ } else {
+ *ptr = <ptr to old object>;
+ return SWIG_OLDOBJ;
+ }
+ } else {
+ return SWIG_BADOBJ;
+ }
}
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
@@ -248,17 +273,17 @@
int fooi(int);
and you call
-
+
food(1) // cast rank '1' (1 -> 1.0)
fooi(1) // cast rank '0'
just use the SWIG_AddCast()/SWIG_CheckState()
*/
-#define SWIG_OK (0)
+#define SWIG_OK (0)
#define SWIG_ERROR (-1)
#define SWIG_IsOK(r) (r >= 0)
-#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
+#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT (1 << 8)
@@ -289,11 +314,11 @@
# endif
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
-SWIGINTERNINLINE int SWIG_AddCast(int r) {
+SWIGINTERNINLINE int SWIG_AddCast(int r) {
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
-SWIGINTERNINLINE int SWIG_CheckState(int r) {
- return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
+SWIGINTERNINLINE int SWIG_CheckState(int r) {
+ return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
# define SWIG_AddCast(r) (r)
@@ -340,7 +365,7 @@ typedef struct swig_module_info {
void *clientdata; /* Language specific module data */
} swig_module_info;
-/*
+/*
Compare two type names skipping the space characters, therefore
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
@@ -413,7 +438,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
return 0;
}
-/*
+/*
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
*/
SWIGRUNTIME swig_cast_info *
@@ -448,7 +473,7 @@ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}
-/*
+/*
Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
@@ -492,7 +517,7 @@ SWIG_TypePrettyName(const swig_type_info *type) {
return type->name;
}
-/*
+/*
Set the clientdata field for a type
*/
SWIGRUNTIME void
@@ -500,14 +525,14 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
swig_cast_info *cast = ti->cast;
/* if (ti->clientdata == clientdata) return; */
ti->clientdata = clientdata;
-
+
while (cast) {
if (!cast->converter) {
swig_type_info *tc = cast->type;
if (!tc->clientdata) {
SWIG_TypeClientData(tc, clientdata);
}
- }
+ }
cast = cast->next;
}
}
@@ -516,31 +541,31 @@ SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
SWIG_TypeClientData(ti, clientdata);
ti->owndata = 1;
}
-
+
/*
Search for a swig_type_info structure only by mangled name
Search is a O(log #types)
-
- We start searching at module start, and finish searching when start == end.
+
+ We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
-SWIG_MangledTypeQueryModule(swig_module_info *start,
- swig_module_info *end,
+SWIG_MangledTypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
const char *name) {
swig_module_info *iter = start;
do {
if (iter->size) {
- register size_t l = 0;
- register size_t r = iter->size - 1;
+ size_t l = 0;
+ size_t r = iter->size - 1;
do {
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
- register size_t i = (l + r) >> 1;
+ size_t i = (l + r) >> 1;
const char *iname = iter->types[i]->name;
if (iname) {
- register int compare = strcmp(name, iname);
- if (compare == 0) {
+ int compare = strcmp(name, iname);
+ if (compare == 0) {
return iter->types[i];
} else if (compare < 0) {
if (i) {
@@ -565,14 +590,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
Search for a swig_type_info structure for either a mangled name or a human readable name.
It first searches the mangled names of the types, which is a O(log #types)
If a type is not found it then searches the human readable names, which is O(#types).
-
- We start searching at module start, and finish searching when start == end.
+
+ We start searching at module start, and finish searching when start == end.
Note: if start == end at the beginning of the function, we go all the way around
the circular list.
*/
SWIGRUNTIME swig_type_info *
-SWIG_TypeQueryModule(swig_module_info *start,
- swig_module_info *end,
+SWIG_TypeQueryModule(swig_module_info *start,
+ swig_module_info *end,
const char *name) {
/* STEP 1: Search the name field using binary search */
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
@@ -583,7 +608,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
of the str field (the human readable name) */
swig_module_info *iter = start;
do {
- register size_t i = 0;
+ size_t i = 0;
for (; i < iter->size; ++i) {
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
return iter->types[i];
@@ -591,56 +616,56 @@ SWIG_TypeQueryModule(swig_module_info *start,
iter = iter->next;
} while (iter != end);
}
-
+
/* neither found a match */
return 0;
}
-/*
+/*
Pack binary data into a string
*/
SWIGRUNTIME char *
SWIG_PackData(char *c, void *ptr, size_t sz) {
static const char hex[17] = "0123456789abcdef";
- register const unsigned char *u = (unsigned char *) ptr;
- register const unsigned char *eu = u + sz;
+ const unsigned char *u = (unsigned char *) ptr;
+ const unsigned char *eu = u + sz;
for (; u != eu; ++u) {
- register unsigned char uu = *u;
+ unsigned char uu = *u;
*(c++) = hex[(uu & 0xf0) >> 4];
*(c++) = hex[uu & 0xf];
}
return c;
}
-/*
+/*
Unpack binary data from a string
*/
SWIGRUNTIME const char *
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
- register unsigned char *u = (unsigned char *) ptr;
- register const unsigned char *eu = u + sz;
+ unsigned char *u = (unsigned char *) ptr;
+ const unsigned char *eu = u + sz;
for (; u != eu; ++u) {
- register char d = *(c++);
- register unsigned char uu;
+ char d = *(c++);
+ unsigned char uu;
if ((d >= '0') && (d <= '9'))
- uu = ((d - '0') << 4);
+ uu = (unsigned char)((d - '0') << 4);
else if ((d >= 'a') && (d <= 'f'))
- uu = ((d - ('a'-10)) << 4);
- else
+ uu = (unsigned char)((d - ('a'-10)) << 4);
+ else
return (char *) 0;
d = *(c++);
if ((d >= '0') && (d <= '9'))
- uu |= (d - '0');
+ uu |= (unsigned char)(d - '0');
else if ((d >= 'a') && (d <= 'f'))
- uu |= (d - ('a'-10));
- else
+ uu |= (unsigned char)(d - ('a'-10));
+ else
return (char *) 0;
*u = uu;
}
return c;
}
-/*
+/*
Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
@@ -700,18 +725,18 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
#endif
/* Errors in SWIG */
-#define SWIG_UnknownError -1
-#define SWIG_IOError -2
-#define SWIG_RuntimeError -3
-#define SWIG_IndexError -4
-#define SWIG_TypeError -5
-#define SWIG_DivisionByZero -6
-#define SWIG_OverflowError -7
-#define SWIG_SyntaxError -8
-#define SWIG_ValueError -9
+#define SWIG_UnknownError -1
+#define SWIG_IOError -2
+#define SWIG_RuntimeError -3
+#define SWIG_IndexError -4
+#define SWIG_TypeError -5
+#define SWIG_DivisionByZero -6
+#define SWIG_OverflowError -7
+#define SWIG_SyntaxError -8
+#define SWIG_ValueError -9
#define SWIG_SystemError -10
#define SWIG_AttributeError -11
-#define SWIG_MemoryError -12
+#define SWIG_MemoryError -12
#define SWIG_NullReferenceError -13
@@ -815,10 +840,6 @@ PyString_FromFormat(const char *fmt, ...) {
}
#endif
-/* Add PyObject_Del for old Pythons */
-#if PY_VERSION_HEX < 0x01060000
-# define PyObject_Del(op) PyMem_DEL((op))
-#endif
#ifndef PyObject_DEL
# define PyObject_DEL PyObject_Del
#endif
@@ -933,6 +954,7 @@ typedef destructor freefunc;
#if PY_VERSION_HEX < 0x03020000
#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
+#define Py_hash_t long
#endif
/* -----------------------------------------------------------------------------
@@ -1284,7 +1306,7 @@ SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
/* Unpack the argument tuple */
-SWIGINTERN int
+SWIGINTERN Py_ssize_t
SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
{
if (!args) {
@@ -1298,7 +1320,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
}
if (!PyTuple_Check(args)) {
if (min <= 1 && max >= 1) {
- register int i;
+ Py_ssize_t i;
objs[0] = args;
for (i = 1; i < max; ++i) {
objs[i] = 0;
@@ -1308,7 +1330,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
return 0;
} else {
- register Py_ssize_t l = PyTuple_GET_SIZE(args);
+ Py_ssize_t l = PyTuple_GET_SIZE(args);
if (l < min) {
PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
name, (min == max ? "" : "at least "), (int)min, (int)l);
@@ -1318,7 +1340,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
name, (min == max ? "" : "at most "), (int)max, (int)l);
return 0;
} else {
- register int i;
+ Py_ssize_t i;
for (i = 0; i < l; ++i) {
objs[i] = PyTuple_GET_ITEM(args, i);
}
@@ -1504,6 +1526,23 @@ typedef struct {
#endif
} SwigPyObject;
+
+#ifdef SWIGPYTHON_BUILTIN
+
+SWIGRUNTIME PyObject *
+SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
+{
+ SwigPyObject *sobj = (SwigPyObject *)v;
+
+ if (!sobj->dict)
+ sobj->dict = PyDict_New();
+
+ Py_INCREF(sobj->dict);
+ return sobj->dict;
+}
+
+#endif
+
SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject *v)
{
@@ -1572,34 +1611,6 @@ SwigPyObject_repr(SwigPyObject *v, PyObject *args)
}
SWIGRUNTIME int
-SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
-{
- char *str;
-#ifdef METH_NOARGS
- PyObject *repr = SwigPyObject_repr(v);
-#else
- PyObject *repr = SwigPyObject_repr(v, NULL);
-#endif
- if (repr) {
- str = SWIG_Python_str_AsChar(repr);
- fputs(str, fp);
- SWIG_Python_str_DelForPy3(str);
- Py_DECREF(repr);
- return 0;
- } else {
- return 1;
- }
-}
-
-SWIGRUNTIME PyObject *
-SwigPyObject_str(SwigPyObject *v)
-{
- char result[SWIG_BUFFER_SIZE];
- return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
- SWIG_Python_str_FromChar(result) : 0;
-}
-
-SWIGRUNTIME int
SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
{
void *i = v->ptr;
@@ -1670,16 +1681,32 @@ SwigPyObject_dealloc(PyObject *v)
if (destroy) {
/* destroy is always a VARARGS method */
PyObject *res;
+
+ /* PyObject_CallFunction() has the potential to silently drop
+ the active active exception. In cases of unnamed temporary
+ variable or where we just finished iterating over a generator
+ StopIteration will be active right now, and this needs to
+ remain true upon return from SwigPyObject_dealloc. So save
+ and restore. */
+
+ PyObject *val = NULL, *type = NULL, *tb = NULL;
+ PyErr_Fetch(&val, &type, &tb);
+
if (data->delargs) {
- /* we need to create a temporary object to carry the destroy operation */
- PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
- res = SWIG_Python_CallFunctor(destroy, tmp);
- Py_DECREF(tmp);
+ /* we need to create a temporary object to carry the destroy operation */
+ PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
+ res = SWIG_Python_CallFunctor(destroy, tmp);
+ Py_DECREF(tmp);
} else {
- PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
- PyObject *mself = PyCFunction_GET_SELF(destroy);
- res = ((*meth)(mself, v));
+ PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
+ PyObject *mself = PyCFunction_GET_SELF(destroy);
+ res = ((*meth)(mself, v));
}
+ if (!res)
+ PyErr_WriteUnraisable(destroy);
+
+ PyErr_Restore(val, type, tb);
+
Py_XDECREF(res);
}
#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
@@ -1703,6 +1730,7 @@ SwigPyObject_append(PyObject* v, PyObject* next)
next = tmp;
#endif
if (!SwigPyObject_Check(next)) {
+ PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
return NULL;
}
sobj->next = next;
@@ -1802,7 +1830,7 @@ swigobject_methods[] = {
static PyMethodDef
swigobject_methods[] = {
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
- {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
+ {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"acquires ownership of the pointer"},
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
@@ -1858,7 +1886,9 @@ SwigPyObject_TypeOnce(void) {
(unaryfunc)SwigPyObject_oct, /*nb_oct*/
(unaryfunc)SwigPyObject_hex, /*nb_hex*/
#endif
-#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */
+#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
+#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
@@ -1873,7 +1903,6 @@ SwigPyObject_TypeOnce(void) {
static int type_init = 0;
if (!type_init) {
const PyTypeObject tmp = {
- /* PyObject header changed in Python 3 */
#if PY_VERSION_HEX >= 0x03000000
PyVarObject_HEAD_INIT(NULL, 0)
#else
@@ -1884,7 +1913,7 @@ SwigPyObject_TypeOnce(void) {
sizeof(SwigPyObject), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)SwigPyObject_dealloc, /* tp_dealloc */
- (printfunc)SwigPyObject_print, /* tp_print */
+ 0, /* tp_print */
#if PY_VERSION_HEX < 0x02020000
(getattrfunc)SwigPyObject_getattr, /* tp_getattr */
#else
@@ -1892,7 +1921,7 @@ SwigPyObject_TypeOnce(void) {
#endif
(setattrfunc)0, /* tp_setattr */
#if PY_VERSION_HEX >= 0x03000000
- 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
+ 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
#else
(cmpfunc)SwigPyObject_compare, /* tp_compare */
#endif
@@ -1902,7 +1931,7 @@ SwigPyObject_TypeOnce(void) {
0, /* tp_as_mapping */
(hashfunc)0, /* tp_hash */
(ternaryfunc)0, /* tp_call */
- (reprfunc)SwigPyObject_str, /* tp_str */
+ 0, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
@@ -1938,10 +1967,19 @@ SwigPyObject_TypeOnce(void) {
0, /* tp_del */
#endif
#if PY_VERSION_HEX >= 0x02060000
- 0, /* tp_version */
+ 0, /* tp_version_tag */
+#endif
+#if PY_VERSION_HEX >= 0x03040000
+ 0, /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
- 0,0,0,0 /* tp_alloc -> tp_next */
+ 0, /* tp_allocs */
+ 0, /* tp_frees */
+ 0, /* tp_maxalloc */
+#if PY_VERSION_HEX >= 0x02050000
+ 0, /* tp_prev */
+#endif
+ 0 /* tp_next */
#endif
};
swigpyobject_type = tmp;
@@ -2056,7 +2094,6 @@ SwigPyPacked_TypeOnce(void) {
static int type_init = 0;
if (!type_init) {
const PyTypeObject tmp = {
- /* PyObject header changed in Python 3 */
#if PY_VERSION_HEX>=0x03000000
PyVarObject_HEAD_INIT(NULL, 0)
#else
@@ -2117,10 +2154,19 @@ SwigPyPacked_TypeOnce(void) {
0, /* tp_del */
#endif
#if PY_VERSION_HEX >= 0x02060000
- 0, /* tp_version */
+ 0, /* tp_version_tag */
+#endif
+#if PY_VERSION_HEX >= 0x03040000
+ 0, /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
- 0,0,0,0 /* tp_alloc -> tp_next */
+ 0, /* tp_allocs */
+ 0, /* tp_frees */
+ 0, /* tp_maxalloc */
+#if PY_VERSION_HEX >= 0x02050000
+ 0, /* tp_prev */
+#endif
+ 0 /* tp_next */
#endif
};
swigpypacked_type = tmp;
@@ -2279,10 +2325,11 @@ SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
int res;
SwigPyObject *sobj;
+ int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;
if (!obj)
return SWIG_ERROR;
- if (obj == Py_None) {
+ if (obj == Py_None && !implicit_conv) {
if (ptr)
*ptr = 0;
return SWIG_OK;
@@ -2331,7 +2378,7 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int
}
res = SWIG_OK;
} else {
- if (flags & SWIG_POINTER_IMPLICIT_CONV) {
+ if (implicit_conv) {
SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
if (data && !data->implicitconv) {
PyObject *klass = data->klass;
@@ -2366,6 +2413,13 @@ SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int
}
}
}
+ if (!SWIG_IsOK(res) && obj == Py_None) {
+ if (ptr)
+ *ptr = 0;
+ if (PyErr_Occurred())
+ PyErr_Clear();
+ res = SWIG_OK;
+ }
}
return res;
}
@@ -2378,25 +2432,22 @@ SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
return SWIG_ConvertPtr(obj, ptr, ty, 0);
} else {
void *vptr = 0;
-
+ swig_cast_info *tc;
+
/* here we get the method pointer for callbacks */
const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
if (desc)
desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
- if (!desc)
+ if (!desc)
return SWIG_ERROR;
- if (ty) {
- swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
- if (tc) {
- int newmemory = 0;
- *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
- assert(!newmemory); /* newmemory handling not yet implemented */
- } else {
- return SWIG_ERROR;
- }
+ tc = SWIG_TypeCheck(desc,ty);
+ if (tc) {
+ int newmemory = 0;
+ *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
+ assert(!newmemory); /* newmemory handling not yet implemented */
} else {
- *ptr = vptr;
+ return SWIG_ERROR;
}
return SWIG_OK;
}
@@ -2453,7 +2504,7 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
}
} else {
#if PY_VERSION_HEX >= 0x03000000
- inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
+ inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
if (inst) {
PyObject_SetAttr(inst, SWIG_This(), swig_this);
Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
@@ -2563,18 +2614,21 @@ SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int f
newobj = (SwigPyObject *) newobj->next;
newobj->next = next_self;
newobj = (SwigPyObject *)next_self;
+#ifdef SWIGPYTHON_BUILTIN
+ newobj->dict = 0;
+#endif
}
} else {
newobj = PyObject_New(SwigPyObject, clientdata->pytype);
+#ifdef SWIGPYTHON_BUILTIN
+ newobj->dict = 0;
+#endif
}
if (newobj) {
newobj->ptr = ptr;
newobj->ty = type;
newobj->own = own;
newobj->next = 0;
-#ifdef SWIGPYTHON_BUILTIN
- newobj->dict = 0;
-#endif
return (PyObject*) newobj;
}
return SWIG_Py_Void();
@@ -2637,13 +2691,11 @@ PyModule_AddObject(PyObject *m, char *name, PyObject *o)
{
PyObject *dict;
if (!PyModule_Check(m)) {
- PyErr_SetString(PyExc_TypeError,
- "PyModule_AddObject() needs module as first arg");
+ PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg");
return SWIG_ERROR;
}
if (!o) {
- PyErr_SetString(PyExc_TypeError,
- "PyModule_AddObject() needs non-NULL value");
+ PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value");
return SWIG_ERROR;
}
@@ -2865,7 +2917,7 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
PyObject *descr;
PyObject *encoded_name;
descrsetfunc f;
- int res;
+ int res = -1;
# ifdef Py_USING_UNICODE
if (PyString_Check(name)) {
@@ -2888,7 +2940,6 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
goto done;
}
- res = -1;
descr = _PyType_Lookup(tp, name);
f = NULL;
if (descr != NULL)
@@ -2917,208 +2968,36 @@ SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
}
#endif
-#define SWIGPY_UNARYFUNC_CLOSURE(wrapper) \
-SWIGINTERN PyObject * \
-wrapper##_closure(PyObject *a) { \
- return wrapper(a, NULL); \
-}
-
-#define SWIGPY_DESTRUCTOR_CLOSURE(wrapper) \
-SWIGINTERN void \
-wrapper##_closure(PyObject *a) { \
- SwigPyObject *sobj; \
- sobj = (SwigPyObject *)a; \
- if (sobj->own) { \
- PyObject *o = wrapper(a, NULL); \
- Py_XDECREF(o); \
- } \
- PyObject_Del(a); \
-}
-
-#define SWIGPY_INQUIRY_CLOSURE(wrapper) \
-SWIGINTERN int \
-wrapper##_closure(PyObject *a) { \
- PyObject *pyresult; \
- int result; \
- pyresult = wrapper(a, NULL); \
- result = pyresult && PyObject_IsTrue(pyresult) ? 1 : 0; \
- Py_XDECREF(pyresult); \
- return result; \
-}
-
-#define SWIGPY_BINARYFUNC_CLOSURE(wrapper) \
-SWIGINTERN PyObject * \
-wrapper##_closure(PyObject *a, PyObject *b) { \
- PyObject *tuple, *result; \
- tuple = PyTuple_New(1); \
- assert(tuple); \
- PyTuple_SET_ITEM(tuple, 0, b); \
- Py_XINCREF(b); \
- result = wrapper(a, tuple); \
- Py_DECREF(tuple); \
- return result; \
-}
-
-typedef ternaryfunc ternarycallfunc;
-
-#define SWIGPY_TERNARYFUNC_CLOSURE(wrapper) \
-SWIGINTERN PyObject * \
-wrapper##_closure(PyObject *a, PyObject *b, PyObject *c) { \
- PyObject *tuple, *result; \
- tuple = PyTuple_New(2); \
- assert(tuple); \
- PyTuple_SET_ITEM(tuple, 0, b); \
- PyTuple_SET_ITEM(tuple, 1, c); \
- Py_XINCREF(b); \
- Py_XINCREF(c); \
- result = wrapper(a, tuple); \
- Py_DECREF(tuple); \
- return result; \
-}
-
-#define SWIGPY_TERNARYCALLFUNC_CLOSURE(wrapper) \
-SWIGINTERN PyObject * \
-wrapper##_closure(PyObject *callable_object, PyObject *args, PyObject *) { \
- return wrapper(callable_object, args); \
-}
-
-#define SWIGPY_LENFUNC_CLOSURE(wrapper) \
-SWIGINTERN Py_ssize_t \
-wrapper##_closure(PyObject *a) { \
- PyObject *resultobj; \
- Py_ssize_t result; \
- resultobj = wrapper(a, NULL); \
- result = PyNumber_AsSsize_t(resultobj, NULL); \
- Py_DECREF(resultobj); \
- return result; \
-}
-
-#define SWIGPY_SSIZESSIZEARGFUNC_CLOSURE(wrapper) \
-SWIGINTERN PyObject * \
-wrapper##_closure(PyObject *a, Py_ssize_t b, Py_ssize_t c) { \
- PyObject *tuple, *result; \
- tuple = PyTuple_New(2); \
- assert(tuple); \
- PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b)); \
- PyTuple_SET_ITEM(tuple, 1, _PyLong_FromSsize_t(c)); \
- result = wrapper(a, tuple); \
- Py_DECREF(tuple); \
- return result; \
-}
-
-#define SWIGPY_SSIZESSIZEOBJARGPROC_CLOSURE(wrapper) \
-SWIGINTERN int \
-wrapper##_closure(PyObject *a, Py_ssize_t b, Py_ssize_t c, PyObject *d) { \
- PyObject *tuple, *resultobj; \
- int result; \
- tuple = PyTuple_New(d ? 3 : 2); \
- assert(tuple); \
- PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b)); \
- PyTuple_SET_ITEM(tuple, 1, _PyLong_FromSsize_t(c)); \
- if (d) { \
- PyTuple_SET_ITEM(tuple, 2, d); \
- Py_INCREF(d); \
- } \
- resultobj = wrapper(a, tuple); \
- result = resultobj ? 0 : -1; \
- Py_DECREF(tuple); \
- Py_XDECREF(resultobj); \
- return result; \
-}
-
-#define SWIGPY_SSIZEARGFUNC_CLOSURE(wrapper) \
-SWIGINTERN PyObject * \
-wrapper##_closure(PyObject *a, Py_ssize_t b) { \
- PyObject *tuple, *result; \
- tuple = PyTuple_New(1); \
- assert(tuple); \
- PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b)); \
- result = wrapper(a, tuple); \
- Py_DECREF(tuple); \
- return result; \
-}
+#ifdef __cplusplus
+extern "C" {
+#endif
-#define SWIGPY_FUNPACK_SSIZEARGFUNC_CLOSURE(wrapper) \
-SWIGINTERN PyObject * \
-wrapper##_closure(PyObject *a, Py_ssize_t b) { \
- PyObject *arg, *result; \
- arg = _PyLong_FromSsize_t(b); \
- result = wrapper(a, arg); \
- Py_DECREF(arg); \
- return result; \
-}
-
-#define SWIGPY_SSIZEOBJARGPROC_CLOSURE(wrapper) \
-SWIGINTERN int \
-wrapper##_closure(PyObject *a, Py_ssize_t b, PyObject *c) { \
- PyObject *tuple, *resultobj; \
- int result; \
- tuple = PyTuple_New(2); \
- assert(tuple); \
- PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b)); \
- PyTuple_SET_ITEM(tuple, 1, c); \
- Py_XINCREF(c); \
- resultobj = wrapper(a, tuple); \
- result = resultobj ? 0 : -1; \
- Py_XDECREF(resultobj); \
- Py_DECREF(tuple); \
- return result; \
-}
-
-#define SWIGPY_OBJOBJARGPROC_CLOSURE(wrapper) \
-SWIGINTERN int \
-wrapper##_closure(PyObject *a, PyObject *b, PyObject *c) { \
- PyObject *tuple, *resultobj; \
- int result; \
- tuple = PyTuple_New(c ? 2 : 1); \
- assert(tuple); \
- PyTuple_SET_ITEM(tuple, 0, b); \
- Py_XINCREF(b); \
- if (c) { \
- PyTuple_SET_ITEM(tuple, 1, c); \
- Py_XINCREF(c); \
- } \
- resultobj = wrapper(a, tuple); \
- result = resultobj ? 0 : -1; \
- Py_XDECREF(resultobj); \
- Py_DECREF(tuple); \
- return result; \
-}
-
-#define SWIGPY_REPRFUNC_CLOSURE(wrapper) \
-SWIGINTERN PyObject * \
-wrapper##_closure(PyObject *a) { \
- return wrapper(a, NULL); \
-}
-
-#define SWIGPY_HASHFUNC_CLOSURE(wrapper) \
-SWIGINTERN long \
-wrapper##_closure(PyObject *a) { \
- PyObject *pyresult; \
- long result; \
- pyresult = wrapper(a, NULL); \
- if (!pyresult || !PyLong_Check(pyresult)) \
- return -1; \
- result = PyLong_AsLong(pyresult); \
- Py_DECREF(pyresult); \
- return result; \
-}
-
-#define SWIGPY_ITERNEXT_CLOSURE(wrapper) \
-SWIGINTERN PyObject * \
-wrapper##_closure(PyObject *a) { \
- PyObject *result; \
- result = wrapper(a, NULL); \
- if (result && result == Py_None) { \
- Py_DECREF(result); \
- result = NULL; \
- } \
- return result; \
+SWIGINTERN Py_hash_t
+SwigPyObject_hash(PyObject *obj) {
+ SwigPyObject *sobj = (SwigPyObject *)obj;
+ void *ptr = sobj->ptr;
+ return (Py_hash_t)ptr;
}
-#ifdef __cplusplus
-extern "C" {
+SWIGINTERN Py_hash_t
+SWIG_PyNumber_AsPyHash(PyObject *obj) {
+ Py_hash_t result = -1;
+#if PY_VERSION_HEX < 0x03020000
+#if PY_VERSION_HEX < 0x03000000
+ if (PyInt_Check(obj))
+ result = PyInt_AsLong(obj);
+ else
#endif
+ if (PyLong_Check(obj))
+ result = PyLong_AsLong(obj);
+#else
+ if (PyNumber_Check(obj))
+ result = PyNumber_AsSsize_t(obj, NULL);
+#endif
+ else
+ PyErr_Format(PyExc_TypeError, "Wrong type for hash function");
+ return PyErr_Occurred() ? -1 : result;
+}
SWIGINTERN int
SwigPyBuiltin_BadInit(PyObject *self, PyObject *SWIGUNUSEDPARM(args), PyObject *SWIGUNUSEDPARM(kwds)) {
@@ -3127,11 +3006,10 @@ SwigPyBuiltin_BadInit(PyObject *self, PyObject *SWIGUNUSEDPARM(args), PyObject *
}
SWIGINTERN void
-SwigPyBuiltin_BadDealloc(PyObject *pyobj) {
- SwigPyObject *sobj;
- sobj = (SwigPyObject *)pyobj;
+SwigPyBuiltin_BadDealloc(PyObject *obj) {
+ SwigPyObject *sobj = (SwigPyObject *)obj;
if (sobj->own) {
- PyErr_Format(PyExc_TypeError, "Swig detected a memory leak in type '%.300s': no callable destructor found.", pyobj->ob_type->tp_name);
+ PyErr_Format(PyExc_TypeError, "Swig detected a memory leak in type '%.300s': no callable destructor found.", obj->ob_type->tp_name);
}
}
@@ -3261,9 +3139,13 @@ SwigPyStaticVar_set(PyGetSetDescrObject *descr, PyObject *obj, PyObject *value)
}
SWIGINTERN int
-SwigPyObjectType_setattro(PyTypeObject *type, PyObject *name, PyObject *value) {
+SwigPyObjectType_setattro(PyObject *typeobject, PyObject *name, PyObject *value) {
PyObject *attribute;
+ PyTypeObject *type;
descrsetfunc local_set;
+
+ assert(PyType_Check(typeobject));
+ type = (PyTypeObject *)typeobject;
attribute = _PyType_Lookup(type, name);
if (attribute != NULL) {
/* Implement descriptor functionality, if any */
@@ -3292,16 +3174,15 @@ SwigPyStaticVar_Type(void) {
static int type_init = 0;
if (!type_init) {
const PyTypeObject tmp = {
- /* PyObject header changed in Python 3 */
#if PY_VERSION_HEX >= 0x03000000
PyVarObject_HEAD_INIT(&PyType_Type, 0)
#else
PyObject_HEAD_INIT(&PyType_Type)
- 0,
+ 0, /* ob_size */
#endif
- "swig_static_var_getset_descriptor",
- sizeof(PyGetSetDescrObject),
- 0,
+ "swig_static_var_getset_descriptor", /* tp_name */
+ sizeof(PyGetSetDescrObject), /* tp_basicsize */
+ 0, /* tp_itemsize */
(destructor)SwigPyStaticVar_dealloc, /* tp_dealloc */
0, /* tp_print */
0, /* tp_getattr */
@@ -3347,10 +3228,19 @@ SwigPyStaticVar_Type(void) {
0, /* tp_del */
#endif
#if PY_VERSION_HEX >= 0x02060000
- 0, /* tp_version */
+ 0, /* tp_version_tag */
+#endif
+#if PY_VERSION_HEX >= 0x03040000
+ 0, /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
- 0,0,0,0 /* tp_alloc -> tp_next */
+ 0, /* tp_allocs */
+ 0, /* tp_frees */
+ 0, /* tp_maxalloc */
+#if PY_VERSION_HEX >= 0x02050000
+ 0, /* tp_prev */
+#endif
+ 0 /* tp_next */
#endif
};
staticvar_type = tmp;
@@ -3365,6 +3255,95 @@ SwigPyStaticVar_Type(void) {
return &staticvar_type;
}
+SWIGINTERN PyTypeObject*
+SwigPyObjectType(void) {
+ static char swigpyobjecttype_doc[] = "Metaclass for SWIG wrapped types";
+ static PyTypeObject swigpyobjecttype_type;
+ static int type_init = 0;
+ if (!type_init) {
+ const PyTypeObject tmp = {
+#if PY_VERSION_HEX >= 0x03000000
+ PyVarObject_HEAD_INIT(&PyType_Type, 0)
+#else
+ PyObject_HEAD_INIT(&PyType_Type)
+ 0, /* ob_size */
+#endif
+ "SwigPyObjectType", /* tp_name */
+ PyType_Type.tp_basicsize, /* tp_basicsize */
+ 0, /* tp_itemsize */
+ 0, /* tp_dealloc */
+ 0, /* tp_print */
+ 0, /* tp_getattr */
+ 0, /* tp_setattr */
+ 0, /* tp_compare */
+ 0, /* tp_repr */
+ 0, /* tp_as_number */
+ 0, /* tp_as_sequence */
+ 0, /* tp_as_mapping */
+ 0, /* tp_hash */
+ 0, /* tp_call */
+ 0, /* tp_str */
+ 0, /* tp_getattro */
+ SwigPyObjectType_setattro, /* tp_setattro */
+ 0, /* tp_as_buffer */
+ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_CLASS, /* tp_flags */
+ swigpyobjecttype_doc, /* tp_doc */
+ 0, /* tp_traverse */
+ 0, /* tp_clear */
+ 0, /* tp_richcompare */
+ 0, /* tp_weaklistoffset */
+ 0, /* tp_iter */
+ 0, /* tp_iternext */
+ 0, /* tp_methods */
+ 0, /* tp_members */
+ 0, /* tp_getset */
+ 0, /* tp_base */
+ 0, /* tp_dict */
+ 0, /* tp_descr_get */
+ 0, /* tp_descr_set */
+ 0, /* tp_dictoffset */
+ 0, /* tp_init */
+ 0, /* tp_alloc */
+ 0, /* tp_new */
+ 0, /* tp_free */
+ 0, /* tp_is_gc */
+ 0, /* tp_bases */
+ 0, /* tp_mro */
+ 0, /* tp_cache */
+ 0, /* tp_subclasses */
+ 0, /* tp_weaklist */
+#if PY_VERSION_HEX >= 0x02030000
+ 0, /* tp_del */
+#endif
+#if PY_VERSION_HEX >= 0x02060000
+ 0, /* tp_version_tag */
+#endif
+#if PY_VERSION_HEX >= 0x03040000
+ 0, /* tp_finalize */
+#endif
+#ifdef COUNT_ALLOCS
+ 0, /* tp_allocs */
+ 0, /* tp_frees */
+ 0, /* tp_maxalloc */
+#if PY_VERSION_HEX >= 0x02050000
+ 0, /* tp_prev */
+#endif
+ 0 /* tp_next */
+#endif
+ };
+ swigpyobjecttype_type = tmp;
+ type_init = 1;
+ swigpyobjecttype_type.tp_base = &PyType_Type;
+#if PY_VERSION_HEX < 0x02020000
+ swigpyobjecttype_type.ob_type = &PyType_Type;
+#else
+ if (PyType_Ready(&swigpyobjecttype_type) < 0)
+ return NULL;
+#endif
+ }
+ return &swigpyobjecttype_type;
+}
+
SWIGINTERN PyGetSetDescrObject *
SwigPyStaticVar_new_getset(PyTypeObject *type, PyGetSetDef *getset) {
@@ -3423,6 +3402,295 @@ SwigPyBuiltin_SetMetaType (PyTypeObject *type, PyTypeObject *metatype)
#endif
}
+
+/* Start of callback function macros for use in PyTypeObject */
+
+typedef PyObject *(*SwigPyWrapperFunction)(PyObject *, PyObject *);
+
+#define SWIGPY_UNARYFUNC_CLOSURE(wrapper) \
+SWIGINTERN PyObject * \
+wrapper##_unaryfunc_closure(PyObject *a) { \
+ return SwigPyBuiltin_unaryfunc_closure(wrapper, a); \
+}
+SWIGINTERN PyObject *
+SwigPyBuiltin_unaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
+ return wrapper(a, NULL);
+}
+
+#define SWIGPY_DESTRUCTOR_CLOSURE(wrapper) \
+SWIGINTERN void \
+wrapper##_destructor_closure(PyObject *a) { \
+ SwigPyBuiltin_destructor_closure(wrapper, #wrapper, a); \
+}
+SWIGINTERN void
+SwigPyBuiltin_destructor_closure(SwigPyWrapperFunction wrapper, const char *wrappername, PyObject *a) {
+ SwigPyObject *sobj;
+ sobj = (SwigPyObject *)a;
+ Py_XDECREF(sobj->dict);
+ if (sobj->own) {
+ PyObject *o;
+ PyObject *val = 0, *type = 0, *tb = 0;
+ PyErr_Fetch(&val, &type, &tb);
+ o = wrapper(a, NULL);
+ if (!o) {
+ PyObject *deallocname = PyString_FromString(wrappername);
+ PyErr_WriteUnraisable(deallocname);
+ Py_DECREF(deallocname);
+ }
+ PyErr_Restore(val, type, tb);
+ Py_XDECREF(o);
+ }
+ if (PyType_IS_GC(a->ob_type)) {
+ PyObject_GC_Del(a);
+ } else {
+ PyObject_Del(a);
+ }
+}
+
+#define SWIGPY_INQUIRY_CLOSURE(wrapper) \
+SWIGINTERN int \
+wrapper##_inquiry_closure(PyObject *a) { \
+ return SwigPyBuiltin_inquiry_closure(wrapper, a); \
+}
+SWIGINTERN int
+SwigPyBuiltin_inquiry_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
+ PyObject *pyresult;
+ int result;
+ pyresult = wrapper(a, NULL);
+ result = pyresult && PyObject_IsTrue(pyresult) ? 1 : 0;
+ Py_XDECREF(pyresult);
+ return result;
+}
+
+#define SWIGPY_GETITERFUNC_CLOSURE(wrapper) \
+SWIGINTERN PyObject * \
+wrapper##_getiterfunc_closure(PyObject *a) { \
+ return SwigPyBuiltin_getiterfunc_closure(wrapper, a); \
+}
+SWIGINTERN PyObject *
+SwigPyBuiltin_getiterfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
+ return wrapper(a, NULL);
+}
+
+#define SWIGPY_BINARYFUNC_CLOSURE(wrapper) \
+SWIGINTERN PyObject * \
+wrapper##_binaryfunc_closure(PyObject *a, PyObject *b) { \
+ return SwigPyBuiltin_binaryfunc_closure(wrapper, a, b); \
+}
+SWIGINTERN PyObject *
+SwigPyBuiltin_binaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, PyObject *b) {
+ PyObject *tuple, *result;
+ tuple = PyTuple_New(1);
+ assert(tuple);
+ PyTuple_SET_ITEM(tuple, 0, b);
+ Py_XINCREF(b);
+ result = wrapper(a, tuple);
+ Py_DECREF(tuple);
+ return result;
+}
+
+typedef ternaryfunc ternarycallfunc;
+
+#define SWIGPY_TERNARYFUNC_CLOSURE(wrapper) \
+SWIGINTERN PyObject * \
+wrapper##_ternaryfunc_closure(PyObject *a, PyObject *b, PyObject *c) { \
+ return SwigPyBuiltin_ternaryfunc_closure(wrapper, a, b, c); \
+}
+SWIGINTERN PyObject *
+SwigPyBuiltin_ternaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, PyObject *b, PyObject *c) {
+ PyObject *tuple, *result;
+ tuple = PyTuple_New(2);
+ assert(tuple);
+ PyTuple_SET_ITEM(tuple, 0, b);
+ PyTuple_SET_ITEM(tuple, 1, c);
+ Py_XINCREF(b);
+ Py_XINCREF(c);
+ result = wrapper(a, tuple);
+ Py_DECREF(tuple);
+ return result;
+}
+
+#define SWIGPY_TERNARYCALLFUNC_CLOSURE(wrapper) \
+SWIGINTERN PyObject * \
+wrapper##_ternarycallfunc_closure(PyObject *a, PyObject *b, PyObject *c) { \
+ return SwigPyBuiltin_ternarycallfunc_closure(wrapper, a, b, c); \
+}
+SWIGINTERN PyObject *
+SwigPyBuiltin_ternarycallfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, PyObject *b, PyObject *c) {
+ (void) c;
+ return wrapper(a, b);
+}
+
+#define SWIGPY_LENFUNC_CLOSURE(wrapper) \
+SWIGINTERN Py_ssize_t \
+wrapper##_lenfunc_closure(PyObject *a) { \
+ return SwigPyBuiltin_lenfunc_closure(wrapper, a); \
+}
+SWIGINTERN Py_ssize_t
+SwigPyBuiltin_lenfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
+ PyObject *resultobj;
+ Py_ssize_t result;
+ resultobj = wrapper(a, NULL);
+ result = PyNumber_AsSsize_t(resultobj, NULL);
+ Py_DECREF(resultobj);
+ return result;
+}
+
+#define SWIGPY_SSIZESSIZEARGFUNC_CLOSURE(wrapper) \
+SWIGINTERN PyObject * \
+wrapper##_ssizessizeargfunc_closure(PyObject *a, Py_ssize_t b, Py_ssize_t c) { \
+ return SwigPyBuiltin_ssizessizeargfunc_closure(wrapper, a, b, c); \
+}
+SWIGINTERN PyObject *
+SwigPyBuiltin_ssizessizeargfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py_ssize_t b, Py_ssize_t c) {
+ PyObject *tuple, *result;
+ tuple = PyTuple_New(2);
+ assert(tuple);
+ PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
+ PyTuple_SET_ITEM(tuple, 1, _PyLong_FromSsize_t(c));
+ result = wrapper(a, tuple);
+ Py_DECREF(tuple);
+ return result;
+}
+
+#define SWIGPY_SSIZESSIZEOBJARGPROC_CLOSURE(wrapper) \
+SWIGINTERN int \
+wrapper##_ssizessizeobjargproc_closure(PyObject *a, Py_ssize_t b, Py_ssize_t c, PyObject *d) { \
+ return SwigPyBuiltin_ssizessizeobjargproc_closure(wrapper, a, b, c, d); \
+}
+SWIGINTERN int
+SwigPyBuiltin_ssizessizeobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py_ssize_t b, Py_ssize_t c, PyObject *d) {
+ PyObject *tuple, *resultobj;
+ int result;
+ tuple = PyTuple_New(d ? 3 : 2);
+ assert(tuple);
+ PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
+ PyTuple_SET_ITEM(tuple, 1, _PyLong_FromSsize_t(c));
+ if (d) {
+ PyTuple_SET_ITEM(tuple, 2, d);
+ Py_INCREF(d);
+ }
+ resultobj = wrapper(a, tuple);
+ result = resultobj ? 0 : -1;
+ Py_DECREF(tuple);
+ Py_XDECREF(resultobj);
+ return result;
+}
+
+#define SWIGPY_SSIZEARGFUNC_CLOSURE(wrapper) \
+SWIGINTERN PyObject * \
+wrapper##_ssizeargfunc_closure(PyObject *a, Py_ssize_t b) { \
+ return SwigPyBuiltin_funpack_ssizeargfunc_closure(wrapper, a, b); \
+}
+SWIGINTERN PyObject *
+SwigPyBuiltin_funpack_ssizeargfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py_ssize_t b) {
+ PyObject *tuple, *result;
+ tuple = PyTuple_New(1);
+ assert(tuple);
+ PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
+ result = wrapper(a, tuple);
+ Py_DECREF(tuple);
+ return result;
+}
+
+#define SWIGPY_FUNPACK_SSIZEARGFUNC_CLOSURE(wrapper) \
+SWIGINTERN PyObject * \
+wrapper##_ssizeargfunc_closure(PyObject *a, Py_ssize_t b) { \
+ return SwigPyBuiltin_ssizeargfunc_closure(wrapper, a, b); \
+}
+SWIGINTERN PyObject *
+SwigPyBuiltin_ssizeargfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py_ssize_t b) {
+ PyObject *arg, *result;
+ arg = _PyLong_FromSsize_t(b);
+ result = wrapper(a, arg);
+ Py_DECREF(arg);
+ return result;
+}
+
+#define SWIGPY_SSIZEOBJARGPROC_CLOSURE(wrapper) \
+SWIGINTERN int \
+wrapper##_ssizeobjargproc_closure(PyObject *a, Py_ssize_t b, PyObject *c) { \
+ return SwigPyBuiltin_ssizeobjargproc_closure(wrapper, a, b, c); \
+}
+SWIGINTERN int
+SwigPyBuiltin_ssizeobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py_ssize_t b, PyObject *c) {
+ PyObject *tuple, *resultobj;
+ int result;
+ tuple = PyTuple_New(2);
+ assert(tuple);
+ PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b));
+ PyTuple_SET_ITEM(tuple, 1, c);
+ Py_XINCREF(c);
+ resultobj = wrapper(a, tuple);
+ result = resultobj ? 0 : -1;
+ Py_XDECREF(resultobj);
+ Py_DECREF(tuple);
+ return result;
+}
+
+#define SWIGPY_OBJOBJARGPROC_CLOSURE(wrapper) \
+SWIGINTERN int \
+wrapper##_objobjargproc_closure(PyObject *a, PyObject *b, PyObject *c) { \
+ return SwigPyBuiltin_objobjargproc_closure(wrapper, a, b, c); \
+}
+SWIGINTERN int
+SwigPyBuiltin_objobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a, PyObject *b, PyObject *c) {
+ PyObject *tuple, *resultobj;
+ int result;
+ tuple = PyTuple_New(c ? 2 : 1);
+ assert(tuple);
+ PyTuple_SET_ITEM(tuple, 0, b);
+ Py_XINCREF(b);
+ if (c) {
+ PyTuple_SET_ITEM(tuple, 1, c);
+ Py_XINCREF(c);
+ }
+ resultobj = wrapper(a, tuple);
+ result = resultobj ? 0 : -1;
+ Py_XDECREF(resultobj);
+ Py_DECREF(tuple);
+ return result;
+}
+
+#define SWIGPY_REPRFUNC_CLOSURE(wrapper) \
+SWIGINTERN PyObject * \
+wrapper##_reprfunc_closure(PyObject *a) { \
+ return SwigPyBuiltin_reprfunc_closure(wrapper, a); \
+}
+SWIGINTERN PyObject *
+SwigPyBuiltin_reprfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
+ return wrapper(a, NULL);
+}
+
+#define SWIGPY_HASHFUNC_CLOSURE(wrapper) \
+SWIGINTERN Py_hash_t \
+wrapper##_hashfunc_closure(PyObject *a) { \
+ return SwigPyBuiltin_hashfunc_closure(wrapper, a); \
+}
+SWIGINTERN Py_hash_t
+SwigPyBuiltin_hashfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
+ PyObject *pyresult;
+ Py_hash_t result;
+ pyresult = wrapper(a, NULL);
+ if (!pyresult)
+ return -1;
+ result = SWIG_PyNumber_AsPyHash(pyresult);
+ Py_DECREF(pyresult);
+ return result;
+}
+
+#define SWIGPY_ITERNEXTFUNC_CLOSURE(wrapper) \
+SWIGINTERN PyObject * \
+wrapper##_iternextfunc_closure(PyObject *a) { \
+ return SwigPyBuiltin_iternextfunc_closure(wrapper, a);\
+}
+SWIGINTERN PyObject *
+SwigPyBuiltin_iternextfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
+ return wrapper(a, NULL);
+}
+
+/* End of callback function macros for use in PyTypeObject */
+
#ifdef __cplusplus
}
#endif
@@ -3482,27 +3750,49 @@ SwigPyBuiltin_SetMetaType (PyTypeObject *type, PyTypeObject *metatype)
#define SWIGTYPE_p_X509_REQ swig_types[38]
#define SWIGTYPE_p_X509_STORE swig_types[39]
#define SWIGTYPE_p_X509_STORE_CTX swig_types[40]
-#define SWIGTYPE_p__cbd_t swig_types[41]
-#define SWIGTYPE_p_char swig_types[42]
-#define SWIGTYPE_p_f_int_p_X509_STORE_CTX__int swig_types[43]
-#define SWIGTYPE_p_f_p_q_const__void_p_q_const__void__int swig_types[44]
-#define SWIGTYPE_p_f_p_void__p_void swig_types[45]
-#define SWIGTYPE_p_f_p_void__void swig_types[46]
-#define SWIGTYPE_p_p_ASN1_OBJECT swig_types[47]
-#define SWIGTYPE_p_p_X509_NAME_ENTRY swig_types[48]
-#define SWIGTYPE_p_p_char swig_types[49]
-#define SWIGTYPE_p_p_unsigned_char swig_types[50]
-#define SWIGTYPE_p_pyfd_struct swig_types[51]
-#define SWIGTYPE_p_stack_st swig_types[52]
-#define SWIGTYPE_p_stack_st_OPENSSL_BLOCK swig_types[53]
-#define SWIGTYPE_p_stack_st_OPENSSL_STRING swig_types[54]
-#define SWIGTYPE_p_stack_st_SSL_CIPHER swig_types[55]
-#define SWIGTYPE_p_stack_st_X509 swig_types[56]
-#define SWIGTYPE_p_stack_st_X509_EXTENSION swig_types[57]
-#define SWIGTYPE_p_unsigned_char swig_types[58]
-#define SWIGTYPE_p_void swig_types[59]
-static swig_type_info *swig_types[61];
-static swig_module_info swig_module = {swig_types, 60, 0, 0, 0, 0};
+#define SWIGTYPE_p___INTMAX_TYPE__ swig_types[41]
+#define SWIGTYPE_p___INT_FAST16_TYPE__ swig_types[42]
+#define SWIGTYPE_p___INT_FAST32_TYPE__ swig_types[43]
+#define SWIGTYPE_p___INT_FAST64_TYPE__ swig_types[44]
+#define SWIGTYPE_p___INT_FAST8_TYPE__ swig_types[45]
+#define SWIGTYPE_p___INT_LEAST16_TYPE__ swig_types[46]
+#define SWIGTYPE_p___INT_LEAST32_TYPE__ swig_types[47]
+#define SWIGTYPE_p___INT_LEAST64_TYPE__ swig_types[48]
+#define SWIGTYPE_p___INT_LEAST8_TYPE__ swig_types[49]
+#define SWIGTYPE_p___UINTMAX_TYPE__ swig_types[50]
+#define SWIGTYPE_p___UINT_FAST16_TYPE__ swig_types[51]
+#define SWIGTYPE_p___UINT_FAST32_TYPE__ swig_types[52]
+#define SWIGTYPE_p___UINT_FAST64_TYPE__ swig_types[53]
+#define SWIGTYPE_p___UINT_FAST8_TYPE__ swig_types[54]
+#define SWIGTYPE_p___UINT_LEAST16_TYPE__ swig_types[55]
+#define SWIGTYPE_p___UINT_LEAST32_TYPE__ swig_types[56]
+#define SWIGTYPE_p___UINT_LEAST64_TYPE__ swig_types[57]
+#define SWIGTYPE_p___UINT_LEAST8_TYPE__ swig_types[58]
+#define SWIGTYPE_p__cbd_t swig_types[59]
+#define SWIGTYPE_p_char swig_types[60]
+#define SWIGTYPE_p_f_int_p_X509_STORE_CTX__int swig_types[61]
+#define SWIGTYPE_p_f_p_char__void swig_types[62]
+#define SWIGTYPE_p_f_p_q_const__char__p_char swig_types[63]
+#define SWIGTYPE_p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int swig_types[64]
+#define SWIGTYPE_p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int swig_types[65]
+#define SWIGTYPE_p_f_p_q_const__void__p_void swig_types[66]
+#define SWIGTYPE_p_f_p_q_const__void_p_q_const__void__int swig_types[67]
+#define SWIGTYPE_p_f_p_void__void swig_types[68]
+#define SWIGTYPE_p_p_ASN1_OBJECT swig_types[69]
+#define SWIGTYPE_p_p_X509_NAME_ENTRY swig_types[70]
+#define SWIGTYPE_p_p_unsigned_char swig_types[71]
+#define SWIGTYPE_p_pyfd_struct swig_types[72]
+#define SWIGTYPE_p_stack_st swig_types[73]
+#define SWIGTYPE_p_stack_st_OPENSSL_BLOCK swig_types[74]
+#define SWIGTYPE_p_stack_st_OPENSSL_CSTRING swig_types[75]
+#define SWIGTYPE_p_stack_st_OPENSSL_STRING swig_types[76]
+#define SWIGTYPE_p_stack_st_SSL_CIPHER swig_types[77]
+#define SWIGTYPE_p_stack_st_X509 swig_types[78]
+#define SWIGTYPE_p_stack_st_X509_EXTENSION swig_types[79]
+#define SWIGTYPE_p_unsigned_char swig_types[80]
+#define SWIGTYPE_p_void swig_types[81]
+static swig_type_info *swig_types[83];
+static swig_module_info swig_module = {swig_types, 82, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
@@ -3532,7 +3822,7 @@ static swig_module_info swig_module = {swig_types, 60, 0, 0, 0, 0};
#endif
#define SWIG_name "_m2crypto"
-#define SWIGVERSION 0x020010
+#define SWIGVERSION 0x030012
#define SWIG_VERSION SWIGVERSION
@@ -3540,6 +3830,9 @@ static swig_module_info swig_module = {swig_types, 60, 0, 0, 0, 0};
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
+#include <stddef.h>
+
+
int SWIG_AsVal_wchar_t(PyObject *p, wchar_t *c) { return SWIG_OK; }
PyObject *SWIG_From_wchar_t(wchar_t c) { return SWIG_Py_Void(); }
@@ -3573,7 +3866,7 @@ static PyObject *ssl_set_tmp_rsa_cb_func;
static PyObject *x509_store_verify_cb_func;
- #define SWIG_From_long PyLong_FromLong
+ #define SWIG_From_long PyInt_FromLong
SWIGINTERN swig_type_info*
@@ -3599,9 +3892,17 @@ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
SWIG_InternalNewPointerObj((char *)(carray), pchar_descriptor, 0) : SWIG_Py_Void();
} else {
#if PY_VERSION_HEX >= 0x03000000
- return PyUnicode_FromStringAndSize(carray, (int)(size));
+#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
+ return PyBytes_FromStringAndSize(carray, (Py_ssize_t)(size));
#else
- return PyString_FromStringAndSize(carray, (int)(size));
+#if PY_VERSION_HEX >= 0x03010000
+ return PyUnicode_DecodeUTF8(carray, (Py_ssize_t)(size), "surrogateescape");
+#else
+ return PyUnicode_FromStringAndSize(carray, (Py_ssize_t)(size));
+#endif
+#endif
+#else
+ return PyString_FromStringAndSize(carray, (Py_ssize_t)(size));
#endif
}
} else {
@@ -3617,6 +3918,13 @@ SWIG_FromCharPtr(const char *cptr)
}
+SWIGINTERNINLINE PyObject*
+ SWIG_From_int (int value)
+{
+ return PyInt_FromLong((long) value);
+}
+
+
#include <limits.h>
#if !defined(SWIG_NO_LLONG_MAX)
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
@@ -3634,9 +3942,11 @@ SWIG_AsVal_double (PyObject *obj, double *val)
if (PyFloat_Check(obj)) {
if (val) *val = PyFloat_AsDouble(obj);
return SWIG_OK;
+#if PY_VERSION_HEX < 0x03000000
} else if (PyInt_Check(obj)) {
- if (val) *val = PyInt_AsLong(obj);
+ if (val) *val = (double) PyInt_AsLong(obj);
return SWIG_OK;
+#endif
} else if (PyLong_Check(obj)) {
double v = PyLong_AsDouble(obj);
if (!PyErr_Occurred()) {
@@ -3710,16 +4020,20 @@ SWIG_CanCastAsInteger(double *d, double min, double max) {
SWIGINTERN int
SWIG_AsVal_long (PyObject *obj, long* val)
{
+#if PY_VERSION_HEX < 0x03000000
if (PyInt_Check(obj)) {
if (val) *val = PyInt_AsLong(obj);
return SWIG_OK;
- } else if (PyLong_Check(obj)) {
+ } else
+#endif
+ if (PyLong_Check(obj)) {
long v = PyLong_AsLong(obj);
if (!PyErr_Occurred()) {
if (val) *val = v;
return SWIG_OK;
} else {
PyErr_Clear();
+ return SWIG_OverflowError;
}
}
#ifdef SWIG_PYTHON_CAST_MODE
@@ -3762,13 +4076,122 @@ SWIG_AsVal_int (PyObject * obj, int *val)
}
-SWIGINTERNINLINE PyObject*
- SWIG_From_int (int value)
+SWIGINTERN int
+SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
{
- return PyInt_FromLong((long) value);
+#if PY_VERSION_HEX>=0x03000000
+#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
+ if (PyBytes_Check(obj))
+#else
+ if (PyUnicode_Check(obj))
+#endif
+#else
+ if (PyString_Check(obj))
+#endif
+ {
+ char *cstr; Py_ssize_t len;
+#if PY_VERSION_HEX>=0x03000000
+#if !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
+ if (!alloc && cptr) {
+ /* We can't allow converting without allocation, since the internal
+ representation of string in Python 3 is UCS-2/UCS-4 but we require
+ a UTF-8 representation.
+ TODO(bhy) More detailed explanation */
+ return SWIG_RuntimeError;
+ }
+ obj = PyUnicode_AsUTF8String(obj);
+ if(alloc) *alloc = SWIG_NEWOBJ;
+#endif
+ PyBytes_AsStringAndSize(obj, &cstr, &len);
+#else
+ PyString_AsStringAndSize(obj, &cstr, &len);
+#endif
+ if (cptr) {
+ if (alloc) {
+ /*
+ In python the user should not be able to modify the inner
+ string representation. To warranty that, if you define
+ SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
+ buffer is always returned.
+
+ The default behavior is just to return the pointer value,
+ so, be careful.
+ */
+#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
+ if (*alloc != SWIG_OLDOBJ)
+#else
+ if (*alloc == SWIG_NEWOBJ)
+#endif
+ {
+ *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
+ *alloc = SWIG_NEWOBJ;
+ } else {
+ *cptr = cstr;
+ *alloc = SWIG_OLDOBJ;
+ }
+ } else {
+#if PY_VERSION_HEX>=0x03000000
+#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
+ *cptr = PyBytes_AsString(obj);
+#else
+ assert(0); /* Should never reach here with Unicode strings in Python 3 */
+#endif
+#else
+ *cptr = SWIG_Python_str_AsChar(obj);
+#endif
+ }
+ }
+ if (psize) *psize = len + 1;
+#if PY_VERSION_HEX>=0x03000000 && !defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
+ Py_XDECREF(obj);
+#endif
+ return SWIG_OK;
+ } else {
+#if defined(SWIG_PYTHON_2_UNICODE)
+#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
+#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
+#endif
+#if PY_VERSION_HEX<0x03000000
+ if (PyUnicode_Check(obj)) {
+ char *cstr; Py_ssize_t len;
+ if (!alloc && cptr) {
+ return SWIG_RuntimeError;
+ }
+ obj = PyUnicode_AsUTF8String(obj);
+ if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
+ if (cptr) {
+ if (alloc) *alloc = SWIG_NEWOBJ;
+ *cptr = (char *)memcpy(malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
+ }
+ if (psize) *psize = len + 1;
+
+ Py_XDECREF(obj);
+ return SWIG_OK;
+ } else {
+ Py_XDECREF(obj);
+ }
+ }
+#endif
+#endif
+
+ swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
+ if (pchar_descriptor) {
+ void* vptr = 0;
+ if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
+ if (cptr) *cptr = (char *) vptr;
+ if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
+ if (alloc) *alloc = SWIG_OLDOBJ;
+ return SWIG_OK;
+ }
+ }
+ }
+ return SWIG_TypeError;
}
+
+
+
#include <pythread.h>
#include <openssl/crypto.h>
@@ -4947,7 +5370,7 @@ SWIGINTERNINLINE PyObject*
SWIG_From_unsigned_SS_long (unsigned long value)
{
return (value > LONG_MAX) ?
- PyLong_FromUnsignedLong(value) : PyLong_FromLong((long)(value));
+ PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)(value));
}
@@ -4972,18 +5395,7 @@ SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
return SWIG_OK;
} else {
PyErr_Clear();
-#if PY_VERSION_HEX >= 0x03000000
- {
- long v = PyLong_AsLong(obj);
- if (!PyErr_Occurred()) {
- if (v < 0) {
- return SWIG_OverflowError;
- }
- } else {
- PyErr_Clear();
- }
- }
-#endif
+ return SWIG_OverflowError;
}
}
#ifdef SWIG_PYTHON_CAST_MODE
@@ -5169,85 +5581,6 @@ int bio_reset(BIO *bio) {
}
-SWIGINTERN int
-SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
-{
-#if PY_VERSION_HEX>=0x03000000
- if (PyUnicode_Check(obj))
-#else
- if (PyString_Check(obj))
-#endif
- {
- char *cstr; Py_ssize_t len;
-#if PY_VERSION_HEX>=0x03000000
- if (!alloc && cptr) {
- /* We can't allow converting without allocation, since the internal
- representation of string in Python 3 is UCS-2/UCS-4 but we require
- a UTF-8 representation.
- TODO(bhy) More detailed explanation */
- return SWIG_RuntimeError;
- }
- obj = PyUnicode_AsUTF8String(obj);
- PyBytes_AsStringAndSize(obj, &cstr, &len);
- if(alloc) *alloc = SWIG_NEWOBJ;
-#else
- PyString_AsStringAndSize(obj, &cstr, &len);
-#endif
- if (cptr) {
- if (alloc) {
- /*
- In python the user should not be able to modify the inner
- string representation. To warranty that, if you define
- SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
- buffer is always returned.
-
- The default behavior is just to return the pointer value,
- so, be careful.
- */
-#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
- if (*alloc != SWIG_OLDOBJ)
-#else
- if (*alloc == SWIG_NEWOBJ)
-#endif
- {
- *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1));
- *alloc = SWIG_NEWOBJ;
- }
- else {
- *cptr = cstr;
- *alloc = SWIG_OLDOBJ;
- }
- } else {
- #if PY_VERSION_HEX>=0x03000000
- assert(0); /* Should never reach here in Python 3 */
- #endif
- *cptr = SWIG_Python_str_AsChar(obj);
- }
- }
- if (psize) *psize = len + 1;
-#if PY_VERSION_HEX>=0x03000000
- Py_XDECREF(obj);
-#endif
- return SWIG_OK;
- } else {
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
- if (pchar_descriptor) {
- void* vptr = 0;
- if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
- if (cptr) *cptr = (char *) vptr;
- if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
- if (alloc) *alloc = SWIG_OLDOBJ;
- return SWIG_OK;
- }
- }
- }
- return SWIG_TypeError;
-}
-
-
-
-
-
int bio_flush(BIO *bio) {
return (int)BIO_flush(bio);
}
@@ -5571,12 +5904,69 @@ BIO* BIO_new_pyfd(int fd, int close_flag) {
}
+#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
+# define SWIG_LONG_LONG_AVAILABLE
+#endif
+
+
+#ifdef SWIG_LONG_LONG_AVAILABLE
+SWIGINTERN int
+SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val)
+{
+ int res = SWIG_TypeError;
+ if (PyLong_Check(obj)) {
+ unsigned long long v = PyLong_AsUnsignedLongLong(obj);
+ if (!PyErr_Occurred()) {
+ if (val) *val = v;
+ return SWIG_OK;
+ } else {
+ PyErr_Clear();
+ res = SWIG_OverflowError;
+ }
+ } else {
+ unsigned long v;
+ res = SWIG_AsVal_unsigned_SS_long (obj,&v);
+ if (SWIG_IsOK(res)) {
+ if (val) *val = v;
+ return res;
+ }
+ }
+#ifdef SWIG_PYTHON_CAST_MODE
+ {
+ const double mant_max = 1LL << DBL_MANT_DIG;
+ double d;
+ res = SWIG_AsVal_double (obj,&d);
+ if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max))
+ return SWIG_OverflowError;
+ if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
+ if (val) *val = (unsigned long long)(d);
+ return SWIG_AddCast(res);
+ }
+ res = SWIG_TypeError;
+ }
+#endif
+ return res;
+}
+#endif
+
+
SWIGINTERNINLINE int
SWIG_AsVal_size_t (PyObject * obj, size_t *val)
{
- unsigned long v;
- int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
- if (SWIG_IsOK(res) && val) *val = (size_t)(v);
+ int res = SWIG_TypeError;
+#ifdef SWIG_LONG_LONG_AVAILABLE
+ if (sizeof(size_t) <= sizeof(unsigned long)) {
+#endif
+ unsigned long v;
+ res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
+ if (SWIG_IsOK(res) && val) *val = (size_t)(v);
+#ifdef SWIG_LONG_LONG_AVAILABLE
+ } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
+ unsigned long long v;
+ res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
+ if (SWIG_IsOK(res) && val) *val = (size_t)(v);
+ }
+#endif
return res;
}
@@ -9487,48 +9877,185 @@ PyObject *obj_obj2txt(const ASN1_OBJECT *obj, int no_name)
#ifdef __cplusplus
extern "C" {
#endif
-SWIGINTERN PyObject *_wrap__STACK_num_set(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_num(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ int result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_num",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_num" "', argument " "1"" of type '" "OPENSSL_STACK const *""'");
+ }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ result = (int)OPENSSL_sk_num((struct stack_st const *)arg1);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_value(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ void *result = 0 ;
- if(!PyArg_UnpackTuple(args,(char *)"_STACK_num_set",1,1,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_value",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_STACK_num_set" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_value" "', argument " "1"" of type '" "OPENSSL_STACK const *""'");
}
- arg1 = (struct stack_st *)(argp1);
+ arg1 = (OPENSSL_STACK *)(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_STACK_num_set" "', argument " "2"" of type '" "int""'");
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OPENSSL_sk_value" "', argument " "2"" of type '" "int""'");
}
arg2 = (int)(val2);
- if (arg1) (arg1)->num = arg2;
- resultobj = SWIG_Py_Void();
+ result = (void *)OPENSSL_sk_value((struct stack_st const *)arg1,arg2);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ int arg2 ;
+ void *arg3 = (void *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ void *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_set",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_set" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
+ }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OPENSSL_sk_set" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OPENSSL_sk_set" "', argument " "3"" of type '" "void const *""'");
+ }
+ result = (void *)OPENSSL_sk_set(arg1,arg2,(void const *)arg3);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_new(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_sk_compfunc arg1 = (OPENSSL_sk_compfunc) 0 ;
+ PyObject * obj0 = 0 ;
+ OPENSSL_STACK *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_new",1,1,&obj0)) SWIG_fail;
+ {
+ int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_q_const__void_p_q_const__void__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "OPENSSL_sk_new" "', argument " "1"" of type '" "OPENSSL_sk_compfunc""'");
+ }
+ }
+ result = (OPENSSL_STACK *)OPENSSL_sk_new(arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_new_null(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_STACK *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_new_null",0,0)) SWIG_fail;
+ result = (OPENSSL_STACK *)OPENSSL_sk_new_null();
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_new_reserve(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_sk_compfunc arg1 = (OPENSSL_sk_compfunc) 0 ;
+ int arg2 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ OPENSSL_STACK *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_new_reserve",2,2,&obj0,&obj1)) SWIG_fail;
+ {
+ int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_q_const__void_p_q_const__void__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "OPENSSL_sk_new_reserve" "', argument " "1"" of type '" "OPENSSL_sk_compfunc""'");
+ }
+ }
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OPENSSL_sk_new_reserve" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (OPENSSL_STACK *)OPENSSL_sk_new_reserve(arg1,arg2);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap__STACK_num_get(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_reserve(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
int result;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_reserve",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_STACK_num_get" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_reserve" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
}
- arg1 = (struct stack_st *)(argp1);
- result = (int) ((arg1)->num);
+ arg1 = (OPENSSL_STACK *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OPENSSL_sk_reserve" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (int)OPENSSL_sk_reserve(arg1,arg2);
resultobj = SWIG_From_int((int)(result));
return resultobj;
fail:
@@ -9536,28 +10063,49 @@ fail:
}
-SWIGINTERN PyObject *_wrap__STACK_data_set(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_free(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
- char **arg2 = (char **) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_free",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_free" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
+ }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ OPENSSL_sk_free(arg1);
+ resultobj = SWIG_Py_Void();
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_pop_free(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void (*arg2)(void *) = (void (*)(void *)) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
- if(!PyArg_UnpackTuple(args,(char *)"_STACK_data_set",1,1,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_pop_free",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_STACK_data_set" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_pop_free" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
}
- arg1 = (struct stack_st *)(argp1);
- res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_char, 0 | 0 );
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_STACK_data_set" "', argument " "2"" of type '" "char **""'");
+ arg1 = (OPENSSL_STACK *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "OPENSSL_sk_pop_free" "', argument " "2"" of type '" "void (*)(void *)""'");
+ }
}
- arg2 = (char **)(argp2);
- if (arg1) (arg1)->data = arg2;
+ OPENSSL_sk_pop_free(arg1,arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -9565,68 +10113,164 @@ fail:
}
-SWIGINTERN PyObject *_wrap__STACK_data_get(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_deep_copy(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ OPENSSL_sk_copyfunc arg2 = (OPENSSL_sk_copyfunc) 0 ;
+ OPENSSL_sk_freefunc arg3 = (OPENSSL_sk_freefunc) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ OPENSSL_STACK *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_deep_copy",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_deep_copy" "', argument " "1"" of type '" "OPENSSL_STACK const *""'");
+ }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void__p_void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "OPENSSL_sk_deep_copy" "', argument " "2"" of type '" "OPENSSL_sk_copyfunc""'");
+ }
+ }
+ {
+ int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_void__void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "OPENSSL_sk_deep_copy" "', argument " "3"" of type '" "OPENSSL_sk_freefunc""'");
+ }
+ }
+ result = (OPENSSL_STACK *)OPENSSL_sk_deep_copy((struct stack_st const *)arg1,arg2,arg3);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_insert(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *arg2 = (void *) 0 ;
+ int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
- char **result = 0 ;
+ int res2 ;
+ int val3 ;
+ int ecode3 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ int result;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_STACK_data_get" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_insert" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
+ }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OPENSSL_sk_insert" "', argument " "2"" of type '" "void const *""'");
}
- arg1 = (struct stack_st *)(argp1);
- result = (char **) ((arg1)->data);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 );
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OPENSSL_sk_insert" "', argument " "3"" of type '" "int""'");
+ }
+ arg3 = (int)(val3);
+ result = (int)OPENSSL_sk_insert(arg1,(void const *)arg2,arg3);
+ resultobj = SWIG_From_int((int)(result));
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap__STACK_sorted_set(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_delete(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ void *result = 0 ;
- if(!PyArg_UnpackTuple(args,(char *)"_STACK_sorted_set",1,1,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_delete",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_STACK_sorted_set" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_delete" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
}
- arg1 = (struct stack_st *)(argp1);
+ arg1 = (OPENSSL_STACK *)(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_STACK_sorted_set" "', argument " "2"" of type '" "int""'");
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OPENSSL_sk_delete" "', argument " "2"" of type '" "int""'");
}
arg2 = (int)(val2);
- if (arg1) (arg1)->sorted = arg2;
- resultobj = SWIG_Py_Void();
+ result = (void *)OPENSSL_sk_delete(arg1,arg2);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_delete_ptr(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *arg2 = (void *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ void *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_delete_ptr",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_delete_ptr" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
+ }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OPENSSL_sk_delete_ptr" "', argument " "2"" of type '" "void const *""'");
+ }
+ result = (void *)OPENSSL_sk_delete_ptr(arg1,(void const *)arg2);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap__STACK_sorted_get(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_find(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int res2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
int result;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_find",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_STACK_sorted_get" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_find" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
}
- arg1 = (struct stack_st *)(argp1);
- result = (int) ((arg1)->sorted);
+ arg1 = (OPENSSL_STACK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OPENSSL_sk_find" "', argument " "2"" of type '" "void const *""'");
+ }
+ result = (int)OPENSSL_sk_find(arg1,(void const *)arg2);
resultobj = SWIG_From_int((int)(result));
return resultobj;
fail:
@@ -9634,48 +10278,57 @@ fail:
}
-SWIGINTERN PyObject *_wrap__STACK_num_alloc_set(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_find_ex(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
- int arg2 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int val2 ;
- int ecode2 = 0 ;
+ int res2 ;
+ PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"_STACK_num_alloc_set",1,1,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_find_ex",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_STACK_num_alloc_set" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_find_ex" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
}
- arg1 = (struct stack_st *)(argp1);
- ecode2 = SWIG_AsVal_int(obj1, &val2);
- if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_STACK_num_alloc_set" "', argument " "2"" of type '" "int""'");
- }
- arg2 = (int)(val2);
- if (arg1) (arg1)->num_alloc = arg2;
- resultobj = SWIG_Py_Void();
+ arg1 = (OPENSSL_STACK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OPENSSL_sk_find_ex" "', argument " "2"" of type '" "void const *""'");
+ }
+ result = (int)OPENSSL_sk_find_ex(arg1,(void const *)arg2);
+ resultobj = SWIG_From_int((int)(result));
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap__STACK_num_alloc_get(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_push(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int res2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
int result;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_push",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_STACK_num_alloc_get" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_push" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
}
- arg1 = (struct stack_st *)(argp1);
- result = (int) ((arg1)->num_alloc);
+ arg1 = (OPENSSL_STACK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OPENSSL_sk_push" "', argument " "2"" of type '" "void const *""'");
+ }
+ result = (int)OPENSSL_sk_push(arg1,(void const *)arg2);
resultobj = SWIG_From_int((int)(result));
return resultobj;
fail:
@@ -9683,27 +10336,93 @@ fail:
}
-SWIGINTERN PyObject *_wrap__STACK_comp_set(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_unshift(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
- int (*arg2)(void const *,void const *) = (int (*)(void const *,void const *)) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int res2 ;
+ PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"_STACK_comp_set",1,1,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_unshift",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_STACK_comp_set" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_unshift" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
}
- arg1 = (struct stack_st *)(argp1);
- {
- int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void_p_q_const__void__int);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), "in method '" "_STACK_comp_set" "', argument " "2"" of type '" "int (*)(void const *,void const *)""'");
- }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OPENSSL_sk_unshift" "', argument " "2"" of type '" "void const *""'");
+ }
+ result = (int)OPENSSL_sk_unshift(arg1,(void const *)arg2);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_shift(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ void *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_shift",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_shift" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
+ }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ result = (void *)OPENSSL_sk_shift(arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_pop(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ void *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_pop",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_pop" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
+ }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ result = (void *)OPENSSL_sk_pop(arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_zero(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_zero",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_zero" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
}
- if (arg1) (arg1)->comp = arg2;
+ arg1 = (OPENSSL_STACK *)(argp1);
+ OPENSSL_sk_zero(arg1);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -9711,19 +10430,29 @@ fail:
}
-SWIGINTERN PyObject *_wrap__STACK_comp_get(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_set_cmp_func(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ OPENSSL_sk_compfunc arg2 = (OPENSSL_sk_compfunc) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- int (*result)(void const *,void const *) = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ OPENSSL_sk_compfunc result;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_set_cmp_func",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_STACK_comp_get" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_set_cmp_func" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
}
- arg1 = (struct stack_st *)(argp1);
- result = (int (*)(void const *,void const *)) ((arg1)->comp);
+ arg1 = (OPENSSL_STACK *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void_p_q_const__void__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "OPENSSL_sk_set_cmp_func" "', argument " "2"" of type '" "OPENSSL_sk_compfunc""'");
+ }
+ }
+ result = (OPENSSL_sk_compfunc)OPENSSL_sk_set_cmp_func(arg1,arg2);
resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__void_p_q_const__void__int);
return resultobj;
fail:
@@ -9731,30 +10460,42 @@ fail:
}
-SWIGINTERN int _wrap_new__STACK(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_dup(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *result = 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ OPENSSL_STACK *result = 0 ;
- result = (struct stack_st *)calloc(1, sizeof(struct stack_st));
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, SWIG_BUILTIN_INIT | 0 );
- return resultobj == Py_None ? -1 : 0;
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_dup",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_dup" "', argument " "1"" of type '" "OPENSSL_STACK const *""'");
+ }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ result = (OPENSSL_STACK *)OPENSSL_sk_dup((struct stack_st const *)arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
+ return resultobj;
fail:
- return -1;
+ return NULL;
}
-SWIGINTERN PyObject *_wrap_delete__STACK(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_sort(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st *arg1 = (struct stack_st *) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ PyObject * obj0 = 0 ;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st, SWIG_POINTER_DISOWN | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_sort",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__STACK" "', argument " "1"" of type '" "struct stack_st *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_sort" "', argument " "1"" of type '" "OPENSSL_STACK *""'");
}
- arg1 = (struct stack_st *)(argp1);
- free((char *) arg1);
+ arg1 = (OPENSSL_STACK *)(argp1);
+ OPENSSL_sk_sort(arg1);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -9762,21 +10503,43 @@ fail:
}
-SWIGINTERN PyObject *_wrap_sk_num(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_OPENSSL_sk_is_sorted(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ OPENSSL_STACK *arg1 = (OPENSSL_STACK *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_num",1,1,&obj0)) SWIG_fail;
+ if(!PyArg_UnpackTuple(args,(char *)"OPENSSL_sk_is_sorted",1,1,&obj0)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_num" "', argument " "1"" of type '" "_STACK const *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OPENSSL_sk_is_sorted" "', argument " "1"" of type '" "OPENSSL_STACK const *""'");
+ }
+ arg1 = (OPENSSL_STACK *)(argp1);
+ result = (int)OPENSSL_sk_is_sorted((struct stack_st const *)arg1);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_num(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ int result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_num",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_num" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING const *""'");
}
- arg1 = (_STACK *)(argp1);
- result = (int)sk_num((struct stack_st const *)arg1);
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ result = (int)sk_OPENSSL_STRING_num((struct stack_st_OPENSSL_STRING const *)arg1);
resultobj = SWIG_From_int((int)(result));
return resultobj;
fail:
@@ -9784,9 +10547,9 @@ fail:
}
-SWIGINTERN PyObject *_wrap_sk_value(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_value(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -9794,194 +10557,380 @@ SWIGINTERN PyObject *_wrap_sk_value(PyObject *self, PyObject *args) {
int ecode2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
- void *result = 0 ;
+ char *result = 0 ;
- if(!PyArg_UnpackTuple(args,(char *)"sk_value",2,2,&obj0,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_value",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_value" "', argument " "1"" of type '" "_STACK const *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_value" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING const *""'");
}
- arg1 = (_STACK *)(argp1);
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_value" "', argument " "2"" of type '" "int""'");
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_STRING_value" "', argument " "2"" of type '" "int""'");
}
arg2 = (int)(val2);
- result = (void *)sk_value((struct stack_st const *)arg1,arg2);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ result = (char *)sk_OPENSSL_STRING_value((struct stack_st_OPENSSL_STRING const *)arg1,arg2);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_new(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ sk_OPENSSL_STRING_compfunc arg1 = (sk_OPENSSL_STRING_compfunc) 0 ;
+ PyObject * obj0 = 0 ;
+ struct stack_st_OPENSSL_STRING *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_new",1,1,&obj0)) SWIG_fail;
+ {
+ int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_STRING_new" "', argument " "1"" of type '" "sk_OPENSSL_STRING_compfunc""'");
+ }
+ }
+ result = (struct stack_st_OPENSSL_STRING *)sk_OPENSSL_STRING_new(arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_set(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_new_null(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_STRING *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_new_null",0,0)) SWIG_fail;
+ result = (struct stack_st_OPENSSL_STRING *)sk_OPENSSL_STRING_new_null();
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_new_reserve(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ sk_OPENSSL_STRING_compfunc arg1 = (sk_OPENSSL_STRING_compfunc) 0 ;
+ int arg2 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ struct stack_st_OPENSSL_STRING *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_new_reserve",2,2,&obj0,&obj1)) SWIG_fail;
+ {
+ int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_STRING_new_reserve" "', argument " "1"" of type '" "sk_OPENSSL_STRING_compfunc""'");
+ }
+ }
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_STRING_new_reserve" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (struct stack_st_OPENSSL_STRING *)sk_OPENSSL_STRING_new_reserve(arg1,arg2);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_reserve(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
int arg2 ;
- void *arg3 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
- int res3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- void *result = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_set",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_reserve",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_set" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_reserve" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
- arg1 = (_STACK *)(argp1);
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_set" "', argument " "2"" of type '" "int""'");
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_STRING_reserve" "', argument " "2"" of type '" "int""'");
}
arg2 = (int)(val2);
- res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
- if (!SWIG_IsOK(res3)) {
- SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sk_set" "', argument " "3"" of type '" "void *""'");
+ result = (int)sk_OPENSSL_STRING_reserve(arg1,arg2);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_free(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_free",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_free" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
- result = (void *)sk_set(arg1,arg2,arg3);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ sk_OPENSSL_STRING_free(arg1);
+ resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_new(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_zero(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- int (*arg1)(void const *,void const *) = (int (*)(void const *,void const *)) 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
PyObject * obj0 = 0 ;
- _STACK *result = 0 ;
- if(!PyArg_UnpackTuple(args,(char *)"sk_new",1,1,&obj0)) SWIG_fail;
- {
- int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_q_const__void_p_q_const__void__int);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_new" "', argument " "1"" of type '" "int (*)(void const *,void const *)""'");
- }
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_zero",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_zero" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
- result = (_STACK *)sk_new(arg1);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ sk_OPENSSL_STRING_zero(arg1);
+ resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_new_null(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_delete(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *result = 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ int arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char *result = 0 ;
- result = (_STACK *)sk_new_null();
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_delete",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_delete" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_STRING_delete" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (char *)sk_OPENSSL_STRING_delete(arg1,arg2);
+ resultobj = SWIG_FromCharPtr((const char *)result);
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_free(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_delete_ptr(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char *result = 0 ;
- if(!PyArg_UnpackTuple(args,(char *)"sk_free",1,1,&obj0)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_delete_ptr",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_free" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_delete_ptr" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
- arg1 = (_STACK *)(argp1);
- sk_free(arg1);
- resultobj = SWIG_Py_Void();
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_STRING_delete_ptr" "', argument " "2"" of type '" "char *""'");
+ }
+ arg2 = (char *)(buf2);
+ result = (char *)sk_OPENSSL_STRING_delete_ptr(arg1,arg2);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return resultobj;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_pop_free(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_push(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
- void (*arg2)(void *) = (void (*)(void *)) 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_pop_free",2,2,&obj0,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_push",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_pop_free" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_push" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
- arg1 = (_STACK *)(argp1);
- {
- int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_pop_free" "', argument " "2"" of type '" "void (*)(void *)""'");
- }
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_STRING_push" "', argument " "2"" of type '" "char *""'");
}
- sk_pop_free(arg1,arg2);
- resultobj = SWIG_Py_Void();
+ arg2 = (char *)(buf2);
+ result = (int)sk_OPENSSL_STRING_push(arg1,arg2);
+ resultobj = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return resultobj;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_deep_copy(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_unshift(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
- void *(*arg2)(void *) = (void *(*)(void *)) 0 ;
- void (*arg3)(void *) = (void (*)(void *)) 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
- PyObject * obj2 = 0 ;
- _STACK *result = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_deep_copy",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_unshift",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_deep_copy" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_unshift" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
- arg1 = (_STACK *)(argp1);
- {
- int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__p_void);
- if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_deep_copy" "', argument " "2"" of type '" "void *(*)(void *)""'");
- }
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_STRING_unshift" "', argument " "2"" of type '" "char *""'");
+ }
+ arg2 = (char *)(buf2);
+ result = (int)sk_OPENSSL_STRING_unshift(arg1,arg2);
+ resultobj = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return resultobj;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_pop(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ char *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_pop",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_pop" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ result = (char *)sk_OPENSSL_STRING_pop(arg1);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_shift(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ char *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_shift",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_shift" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ result = (char *)sk_OPENSSL_STRING_shift(arg1);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_pop_free(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ sk_OPENSSL_STRING_freefunc arg2 = (sk_OPENSSL_STRING_freefunc) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_pop_free",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_pop_free" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
{
- int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_void__void);
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_char__void);
if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_deep_copy" "', argument " "3"" of type '" "void (*)(void *)""'");
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_STRING_pop_free" "', argument " "2"" of type '" "sk_OPENSSL_STRING_freefunc""'");
}
}
- result = (_STACK *)sk_deep_copy(arg1,arg2,arg3);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
+ sk_OPENSSL_STRING_pop_free(arg1,arg2);
+ resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_insert(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_insert(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
- void *arg2 = (void *) 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ char *arg2 = (char *) 0 ;
int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
int val3 ;
int ecode3 = 0 ;
PyObject * obj0 = 0 ;
@@ -9989,263 +10938,840 @@ SWIGINTERN PyObject *_wrap_sk_insert(PyObject *self, PyObject *args) {
PyObject * obj2 = 0 ;
int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_insert" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_insert" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
- arg1 = (_STACK *)(argp1);
- res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_insert" "', argument " "2"" of type '" "void *""'");
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_STRING_insert" "', argument " "2"" of type '" "char *""'");
}
+ arg2 = (char *)(buf2);
ecode3 = SWIG_AsVal_int(obj2, &val3);
if (!SWIG_IsOK(ecode3)) {
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sk_insert" "', argument " "3"" of type '" "int""'");
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sk_OPENSSL_STRING_insert" "', argument " "3"" of type '" "int""'");
}
arg3 = (int)(val3);
- result = (int)sk_insert(arg1,arg2,arg3);
+ result = (int)sk_OPENSSL_STRING_insert(arg1,arg2,arg3);
resultobj = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return resultobj;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_delete(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
int arg2 ;
+ char *arg3 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
+ int res3 ;
+ char *buf3 = 0 ;
+ int alloc3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
- void *result = 0 ;
+ PyObject * obj2 = 0 ;
+ char *result = 0 ;
- if(!PyArg_UnpackTuple(args,(char *)"sk_delete",2,2,&obj0,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_set",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_delete" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_set" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
- arg1 = (_STACK *)(argp1);
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
ecode2 = SWIG_AsVal_int(obj1, &val2);
if (!SWIG_IsOK(ecode2)) {
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_delete" "', argument " "2"" of type '" "int""'");
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_STRING_set" "', argument " "2"" of type '" "int""'");
}
arg2 = (int)(val2);
- result = (void *)sk_delete(arg1,arg2);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sk_OPENSSL_STRING_set" "', argument " "3"" of type '" "char *""'");
+ }
+ arg3 = (char *)(buf3);
+ result = (char *)sk_OPENSSL_STRING_set(arg1,arg2,arg3);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return resultobj;
fail:
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_delete_ptr(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_find(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
- void *arg2 = (void *) 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
- void *result = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_delete_ptr",2,2,&obj0,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_find",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_delete_ptr" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_find" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
- arg1 = (_STACK *)(argp1);
- res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_delete_ptr" "', argument " "2"" of type '" "void *""'");
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_STRING_find" "', argument " "2"" of type '" "char *""'");
}
- result = (void *)sk_delete_ptr(arg1,arg2);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ arg2 = (char *)(buf2);
+ result = (int)sk_OPENSSL_STRING_find(arg1,arg2);
+ resultobj = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return resultobj;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_find(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_find_ex(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
- void *arg2 = (void *) 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_find",2,2,&obj0,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_find_ex",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_find" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_find_ex" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
}
- arg1 = (_STACK *)(argp1);
- res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_find" "', argument " "2"" of type '" "void *""'");
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_STRING_find_ex" "', argument " "2"" of type '" "char *""'");
}
- result = (int)sk_find(arg1,arg2);
+ arg2 = (char *)(buf2);
+ result = (int)sk_OPENSSL_STRING_find_ex(arg1,arg2);
resultobj = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return resultobj;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_find_ex(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_sort(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
- void *arg2 = (void *) 0 ;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_sort",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_sort" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ sk_OPENSSL_STRING_sort(arg1);
+ resultobj = SWIG_Py_Void();
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_is_sorted(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ int result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_is_sorted",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_is_sorted" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING const *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ result = (int)sk_OPENSSL_STRING_is_sorted((struct stack_st_OPENSSL_STRING const *)arg1);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_dup(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ struct stack_st_OPENSSL_STRING *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_dup",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_dup" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING const *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ result = (struct stack_st_OPENSSL_STRING *)sk_OPENSSL_STRING_dup((struct stack_st_OPENSSL_STRING const *)arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_deep_copy(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ sk_OPENSSL_STRING_copyfunc arg2 = (sk_OPENSSL_STRING_copyfunc) 0 ;
+ sk_OPENSSL_STRING_freefunc arg3 = (sk_OPENSSL_STRING_freefunc) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ struct stack_st_OPENSSL_STRING *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_deep_copy",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_deep_copy" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING const *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__char__p_char);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_STRING_deep_copy" "', argument " "2"" of type '" "sk_OPENSSL_STRING_copyfunc""'");
+ }
+ }
+ {
+ int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_char__void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_STRING_deep_copy" "', argument " "3"" of type '" "sk_OPENSSL_STRING_freefunc""'");
+ }
+ }
+ result = (struct stack_st_OPENSSL_STRING *)sk_OPENSSL_STRING_deep_copy((struct stack_st_OPENSSL_STRING const *)arg1,arg2,arg3);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_STRING_set_cmp_func(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ sk_OPENSSL_STRING_compfunc arg2 = (sk_OPENSSL_STRING_compfunc) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ sk_OPENSSL_STRING_compfunc result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_STRING_set_cmp_func",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_STRING_set_cmp_func" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_STRING_set_cmp_func" "', argument " "2"" of type '" "sk_OPENSSL_STRING_compfunc""'");
+ }
+ }
+ result = (sk_OPENSSL_STRING_compfunc)sk_OPENSSL_STRING_set_cmp_func(arg1,arg2);
+ resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int);
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_num(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ int result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_num",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_num" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING const *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ result = (int)sk_OPENSSL_CSTRING_num((struct stack_st_OPENSSL_CSTRING const *)arg1);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_value(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ int arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_value",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_value" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING const *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_CSTRING_value" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (char *)sk_OPENSSL_CSTRING_value((struct stack_st_OPENSSL_CSTRING const *)arg1,arg2);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_new(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ sk_OPENSSL_CSTRING_compfunc arg1 = (sk_OPENSSL_CSTRING_compfunc) 0 ;
+ PyObject * obj0 = 0 ;
+ struct stack_st_OPENSSL_CSTRING *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_new",1,1,&obj0)) SWIG_fail;
+ {
+ int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_CSTRING_new" "', argument " "1"" of type '" "sk_OPENSSL_CSTRING_compfunc""'");
+ }
+ }
+ result = (struct stack_st_OPENSSL_CSTRING *)sk_OPENSSL_CSTRING_new(arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_new_null(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_new_null",0,0)) SWIG_fail;
+ result = (struct stack_st_OPENSSL_CSTRING *)sk_OPENSSL_CSTRING_new_null();
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_new_reserve(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ sk_OPENSSL_CSTRING_compfunc arg1 = (sk_OPENSSL_CSTRING_compfunc) 0 ;
+ int arg2 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ struct stack_st_OPENSSL_CSTRING *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_new_reserve",2,2,&obj0,&obj1)) SWIG_fail;
+ {
+ int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_CSTRING_new_reserve" "', argument " "1"" of type '" "sk_OPENSSL_CSTRING_compfunc""'");
+ }
+ }
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_CSTRING_new_reserve" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (struct stack_st_OPENSSL_CSTRING *)sk_OPENSSL_CSTRING_new_reserve(arg1,arg2);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_reserve(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ int arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ int result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_reserve",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_reserve" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_CSTRING_reserve" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (int)sk_OPENSSL_CSTRING_reserve(arg1,arg2);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_free(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_free",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_free" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ sk_OPENSSL_CSTRING_free(arg1);
+ resultobj = SWIG_Py_Void();
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_zero(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_zero",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_zero" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ sk_OPENSSL_CSTRING_zero(arg1);
+ resultobj = SWIG_Py_Void();
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_delete(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ int arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_delete",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_delete" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_CSTRING_delete" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (char *)sk_OPENSSL_CSTRING_delete(arg1,arg2);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_delete_ptr(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_delete_ptr",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_delete_ptr" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_CSTRING_delete_ptr" "', argument " "2"" of type '" "char const *""'");
+ }
+ arg2 = (char *)(buf2);
+ result = (char *)sk_OPENSSL_CSTRING_delete_ptr(arg1,(char const *)arg2);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return resultobj;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_push(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_find_ex",2,2,&obj0,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_push",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_find_ex" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_push" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
}
- arg1 = (_STACK *)(argp1);
- res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_find_ex" "', argument " "2"" of type '" "void *""'");
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_CSTRING_push" "', argument " "2"" of type '" "char const *""'");
}
- result = (int)sk_find_ex(arg1,arg2);
+ arg2 = (char *)(buf2);
+ result = (int)sk_OPENSSL_CSTRING_push(arg1,(char const *)arg2);
resultobj = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return resultobj;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_push(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_unshift(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
- void *arg2 = (void *) 0 ;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_push",2,2,&obj0,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_unshift",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_push" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_unshift" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
}
- arg1 = (_STACK *)(argp1);
- res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_push" "', argument " "2"" of type '" "void *""'");
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_CSTRING_unshift" "', argument " "2"" of type '" "char const *""'");
}
- result = (int)sk_push(arg1,arg2);
+ arg2 = (char *)(buf2);
+ result = (int)sk_OPENSSL_CSTRING_unshift(arg1,(char const *)arg2);
resultobj = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return resultobj;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_unshift(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_pop(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
- void *arg2 = (void *) 0 ;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ char *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_pop",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_pop" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ result = (char *)sk_OPENSSL_CSTRING_pop(arg1);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_shift(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ char *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_shift",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_shift" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ result = (char *)sk_OPENSSL_CSTRING_shift(arg1);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_pop_free(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ sk_OPENSSL_CSTRING_freefunc arg2 = (sk_OPENSSL_CSTRING_freefunc) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_pop_free",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_pop_free" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_char__void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_CSTRING_pop_free" "', argument " "2"" of type '" "sk_OPENSSL_CSTRING_freefunc""'");
+ }
+ }
+ sk_OPENSSL_CSTRING_pop_free(arg1,arg2);
+ resultobj = SWIG_Py_Void();
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_insert(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ char *arg2 = (char *) 0 ;
+ int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+ int val3 ;
+ int ecode3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_unshift",2,2,&obj0,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_unshift" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_insert" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
}
- arg1 = (_STACK *)(argp1);
- res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_unshift" "', argument " "2"" of type '" "void *""'");
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_CSTRING_insert" "', argument " "2"" of type '" "char const *""'");
}
- result = (int)sk_unshift(arg1,arg2);
+ arg2 = (char *)(buf2);
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sk_OPENSSL_CSTRING_insert" "', argument " "3"" of type '" "int""'");
+ }
+ arg3 = (int)(val3);
+ result = (int)sk_OPENSSL_CSTRING_insert(arg1,(char const *)arg2,arg3);
resultobj = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return resultobj;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_shift(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ int arg2 ;
+ char *arg3 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ char *buf3 = 0 ;
+ int alloc3 = 0 ;
PyObject * obj0 = 0 ;
- void *result = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ char *result = 0 ;
- if(!PyArg_UnpackTuple(args,(char *)"sk_shift",1,1,&obj0)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_set",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_shift" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_set" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
}
- arg1 = (_STACK *)(argp1);
- result = (void *)sk_shift(arg1);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_CSTRING_set" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sk_OPENSSL_CSTRING_set" "', argument " "3"" of type '" "char const *""'");
+ }
+ arg3 = (char *)(buf3);
+ result = (char *)sk_OPENSSL_CSTRING_set(arg1,arg2,(char const *)arg3);
+ resultobj = SWIG_FromCharPtr((const char *)result);
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return resultobj;
fail:
+ if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_pop(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_find(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
PyObject * obj0 = 0 ;
- void *result = 0 ;
+ PyObject * obj1 = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_pop",1,1,&obj0)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_find",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_pop" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_find" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
}
- arg1 = (_STACK *)(argp1);
- result = (void *)sk_pop(arg1);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_CSTRING_find" "', argument " "2"" of type '" "char const *""'");
+ }
+ arg2 = (char *)(buf2);
+ result = (int)sk_OPENSSL_CSTRING_find(arg1,(char const *)arg2);
+ resultobj = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return resultobj;
fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_zero(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_find_ex(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_zero",1,1,&obj0)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_find_ex",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_find_ex" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_CSTRING_find_ex" "', argument " "2"" of type '" "char const *""'");
+ }
+ arg2 = (char *)(buf2);
+ result = (int)sk_OPENSSL_CSTRING_find_ex(arg1,(char const *)arg2);
+ resultobj = SWIG_From_int((int)(result));
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return resultobj;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_sort(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_sort",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_zero" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_sort" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
}
- arg1 = (_STACK *)(argp1);
- sk_zero(arg1);
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ sk_OPENSSL_CSTRING_sort(arg1);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -10253,72 +11779,301 @@ fail:
}
-SWIGINTERN PyObject *_wrap_sk_set_cmp_func(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_is_sorted(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ int result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_is_sorted",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_is_sorted" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING const *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ result = (int)sk_OPENSSL_CSTRING_is_sorted((struct stack_st_OPENSSL_CSTRING const *)arg1);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_dup(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ struct stack_st_OPENSSL_CSTRING *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_dup",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_dup" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING const *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ result = (struct stack_st_OPENSSL_CSTRING *)sk_OPENSSL_CSTRING_dup((struct stack_st_OPENSSL_CSTRING const *)arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_deep_copy(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
- int (*arg2)(void const *,void const *) = (int (*)(void const *,void const *)) 0 ;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ sk_OPENSSL_CSTRING_copyfunc arg2 = (sk_OPENSSL_CSTRING_copyfunc) 0 ;
+ sk_OPENSSL_CSTRING_freefunc arg3 = (sk_OPENSSL_CSTRING_freefunc) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
- int (*result)(void const *,void const *) = 0 ;
+ PyObject * obj2 = 0 ;
+ struct stack_st_OPENSSL_CSTRING *result = 0 ;
- if(!PyArg_UnpackTuple(args,(char *)"sk_set_cmp_func",2,2,&obj0,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_deep_copy",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_set_cmp_func" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_deep_copy" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING const *""'");
}
- arg1 = (_STACK *)(argp1);
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
{
- int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void_p_q_const__void__int);
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__char__p_char);
if (!SWIG_IsOK(res)) {
- SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_set_cmp_func" "', argument " "2"" of type '" "int (*)(void const *,void const *)""'");
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_CSTRING_deep_copy" "', argument " "2"" of type '" "sk_OPENSSL_CSTRING_copyfunc""'");
}
}
- result = (int (*)(void const *,void const *))sk_set_cmp_func(arg1,arg2);
- resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__void_p_q_const__void__int);
+ {
+ int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_char__void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_CSTRING_deep_copy" "', argument " "3"" of type '" "sk_OPENSSL_CSTRING_freefunc""'");
+ }
+ }
+ result = (struct stack_st_OPENSSL_CSTRING *)sk_OPENSSL_CSTRING_deep_copy((struct stack_st_OPENSSL_CSTRING const *)arg1,arg2,arg3);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_dup(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_CSTRING_set_cmp_func(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_CSTRING *arg1 = (struct stack_st_OPENSSL_CSTRING *) 0 ;
+ sk_OPENSSL_CSTRING_compfunc arg2 = (sk_OPENSSL_CSTRING_compfunc) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
- _STACK *result = 0 ;
+ PyObject * obj1 = 0 ;
+ sk_OPENSSL_CSTRING_compfunc result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_dup",1,1,&obj0)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_CSTRING_set_cmp_func",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_CSTRING, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_dup" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_CSTRING_set_cmp_func" "', argument " "1"" of type '" "struct stack_st_OPENSSL_CSTRING *""'");
}
- arg1 = (_STACK *)(argp1);
- result = (_STACK *)sk_dup(arg1);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
+ arg1 = (struct stack_st_OPENSSL_CSTRING *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_CSTRING_set_cmp_func" "', argument " "2"" of type '" "sk_OPENSSL_CSTRING_compfunc""'");
+ }
+ }
+ result = (sk_OPENSSL_CSTRING_compfunc)sk_OPENSSL_CSTRING_set_cmp_func(arg1,arg2);
+ resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int);
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap_sk_sort(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_num(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject * obj0 = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_sort",1,1,&obj0)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_num",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_num" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK const *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ result = (int)sk_OPENSSL_BLOCK_num((struct stack_st_OPENSSL_BLOCK const *)arg1);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_value(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ int arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ void *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_value",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_value" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK const *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_BLOCK_value" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (void *)sk_OPENSSL_BLOCK_value((struct stack_st_OPENSSL_BLOCK const *)arg1,arg2);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_new(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ sk_OPENSSL_BLOCK_compfunc arg1 = (sk_OPENSSL_BLOCK_compfunc) 0 ;
+ PyObject * obj0 = 0 ;
+ struct stack_st_OPENSSL_BLOCK *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_new",1,1,&obj0)) SWIG_fail;
+ {
+ int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_BLOCK_new" "', argument " "1"" of type '" "sk_OPENSSL_BLOCK_compfunc""'");
+ }
+ }
+ result = (struct stack_st_OPENSSL_BLOCK *)sk_OPENSSL_BLOCK_new(arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_new_null(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_new_null",0,0)) SWIG_fail;
+ result = (struct stack_st_OPENSSL_BLOCK *)sk_OPENSSL_BLOCK_new_null();
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_new_reserve(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ sk_OPENSSL_BLOCK_compfunc arg1 = (sk_OPENSSL_BLOCK_compfunc) 0 ;
+ int arg2 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ struct stack_st_OPENSSL_BLOCK *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_new_reserve",2,2,&obj0,&obj1)) SWIG_fail;
+ {
+ int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_BLOCK_new_reserve" "', argument " "1"" of type '" "sk_OPENSSL_BLOCK_compfunc""'");
+ }
+ }
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_BLOCK_new_reserve" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (struct stack_st_OPENSSL_BLOCK *)sk_OPENSSL_BLOCK_new_reserve(arg1,arg2);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_reserve(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ int arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ int result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_reserve",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_reserve" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_BLOCK_reserve" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (int)sk_OPENSSL_BLOCK_reserve(arg1,arg2);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_free(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_free",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_free" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ sk_OPENSSL_BLOCK_free(arg1);
+ resultobj = SWIG_Py_Void();
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_zero(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_zero",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_sort" "', argument " "1"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_zero" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
}
- arg1 = (_STACK *)(argp1);
- sk_sort(arg1);
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ sk_OPENSSL_BLOCK_zero(arg1);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -10326,21 +12081,88 @@ fail:
}
-SWIGINTERN PyObject *_wrap_sk_is_sorted(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_delete(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ int arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ void *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_delete",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_delete" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_BLOCK_delete" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ result = (void *)sk_OPENSSL_BLOCK_delete(arg1,arg2);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_delete_ptr(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ void *arg2 = (void *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ void *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_delete_ptr",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_delete_ptr" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_BLOCK_delete_ptr" "', argument " "2"" of type '" "void *""'");
+ }
+ result = (void *)sk_OPENSSL_BLOCK_delete_ptr(arg1,arg2);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_push(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- _STACK *arg1 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ int res2 ;
PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
int result;
- if(!PyArg_UnpackTuple(args,(char *)"sk_is_sorted",1,1,&obj0)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_push",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_is_sorted" "', argument " "1"" of type '" "_STACK const *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_push" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_BLOCK_push" "', argument " "2"" of type '" "void *""'");
}
- arg1 = (_STACK *)(argp1);
- result = (int)sk_is_sorted((struct stack_st const *)arg1);
+ result = (int)sk_OPENSSL_BLOCK_push(arg1,arg2);
resultobj = SWIG_From_int((int)(result));
return resultobj;
fail:
@@ -10348,79 +12170,101 @@ fail:
}
-SWIGINTERN PyObject *_wrap_stack_st_OPENSSL_STRING_stack_set(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_unshift(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
- _STACK *arg2 = (_STACK *) 0 ;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
+ int res2 ;
+ PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"stack_st_OPENSSL_STRING_stack_set",1,1,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_unshift",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stack_st_OPENSSL_STRING_stack_set" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_unshift" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
}
- arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
- res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_stack_st, 0 | 0 );
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "stack_st_OPENSSL_STRING_stack_set" "', argument " "2"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_BLOCK_unshift" "', argument " "2"" of type '" "void *""'");
}
- arg2 = (_STACK *)(argp2);
- if (arg1) (arg1)->stack = *arg2;
- resultobj = SWIG_Py_Void();
+ result = (int)sk_OPENSSL_BLOCK_unshift(arg1,arg2);
+ resultobj = SWIG_From_int((int)(result));
return resultobj;
fail:
return NULL;
}
-SWIGINTERN PyObject *_wrap_stack_st_OPENSSL_STRING_stack_get(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_pop(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- _STACK *result = 0 ;
+ PyObject * obj0 = 0 ;
+ void *result = 0 ;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_pop",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stack_st_OPENSSL_STRING_stack_get" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_pop" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
}
- arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
- result = (_STACK *)& ((arg1)->stack);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ result = (void *)sk_OPENSSL_BLOCK_pop(arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
return resultobj;
fail:
return NULL;
}
-SWIGINTERN int _wrap_new_stack_st_OPENSSL_STRING(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_shift(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st_OPENSSL_STRING *result = 0 ;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ void *result = 0 ;
- result = (struct stack_st_OPENSSL_STRING *)calloc(1, sizeof(struct stack_st_OPENSSL_STRING));
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_STRING, SWIG_BUILTIN_INIT | 0 );
- return resultobj == Py_None ? -1 : 0;
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_shift",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_shift" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ result = (void *)sk_OPENSSL_BLOCK_shift(arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return resultobj;
fail:
- return -1;
+ return NULL;
}
-SWIGINTERN PyObject *_wrap_delete_stack_st_OPENSSL_STRING(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_pop_free(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
- struct stack_st_OPENSSL_STRING *arg1 = (struct stack_st_OPENSSL_STRING *) 0 ;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ sk_OPENSSL_BLOCK_freefunc arg2 = (sk_OPENSSL_BLOCK_freefunc) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st_OPENSSL_STRING, SWIG_POINTER_DISOWN | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_pop_free",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_stack_st_OPENSSL_STRING" "', argument " "1"" of type '" "struct stack_st_OPENSSL_STRING *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_pop_free" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
}
- arg1 = (struct stack_st_OPENSSL_STRING *)(argp1);
- free((char *) arg1);
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void__void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_BLOCK_pop_free" "', argument " "2"" of type '" "sk_OPENSSL_BLOCK_freefunc""'");
+ }
+ }
+ sk_OPENSSL_BLOCK_pop_free(arg1,arg2);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -10428,28 +12272,154 @@ fail:
}
-SWIGINTERN PyObject *_wrap_stack_st_OPENSSL_BLOCK_stack_set(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_insert(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
- _STACK *arg2 = (_STACK *) 0 ;
+ void *arg2 = (void *) 0 ;
+ int arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *argp2 = 0 ;
- int res2 = 0 ;
+ int res2 ;
+ int val3 ;
+ int ecode3 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ int result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_insert",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_insert" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_BLOCK_insert" "', argument " "2"" of type '" "void *""'");
+ }
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "sk_OPENSSL_BLOCK_insert" "', argument " "3"" of type '" "int""'");
+ }
+ arg3 = (int)(val3);
+ result = (int)sk_OPENSSL_BLOCK_insert(arg1,arg2,arg3);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_set(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ int arg2 ;
+ void *arg3 = (void *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int val2 ;
+ int ecode2 = 0 ;
+ int res3 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ void *result = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_set",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_set" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ ecode2 = SWIG_AsVal_int(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sk_OPENSSL_BLOCK_set" "', argument " "2"" of type '" "int""'");
+ }
+ arg2 = (int)(val2);
+ res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "sk_OPENSSL_BLOCK_set" "', argument " "3"" of type '" "void *""'");
+ }
+ result = (void *)sk_OPENSSL_BLOCK_set(arg1,arg2,arg3);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_find(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ void *arg2 = (void *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ int result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_find",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_find" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_BLOCK_find" "', argument " "2"" of type '" "void *""'");
+ }
+ result = (int)sk_OPENSSL_BLOCK_find(arg1,arg2);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_find_ex(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ void *arg2 = (void *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ int result;
- if(!PyArg_UnpackTuple(args,(char *)"stack_st_OPENSSL_BLOCK_stack_set",1,1,&obj1)) SWIG_fail;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_find_ex",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stack_st_OPENSSL_BLOCK_stack_set" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_find_ex" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
}
arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
- res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_stack_st, 0 | 0 );
+ res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "stack_st_OPENSSL_BLOCK_stack_set" "', argument " "2"" of type '" "_STACK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sk_OPENSSL_BLOCK_find_ex" "', argument " "2"" of type '" "void *""'");
+ }
+ result = (int)sk_OPENSSL_BLOCK_find_ex(arg1,arg2);
+ resultobj = SWIG_From_int((int)(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_sort(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_sort",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_sort" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
}
- arg2 = (_STACK *)(argp2);
- if (arg1) (arg1)->stack = *arg2;
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ sk_OPENSSL_BLOCK_sort(arg1);
resultobj = SWIG_Py_Void();
return resultobj;
fail:
@@ -10457,51 +12427,112 @@ fail:
}
-SWIGINTERN PyObject *_wrap_stack_st_OPENSSL_BLOCK_stack_get(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_is_sorted(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- _STACK *result = 0 ;
+ PyObject * obj0 = 0 ;
+ int result;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_is_sorted",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stack_st_OPENSSL_BLOCK_stack_get" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_is_sorted" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK const *""'");
}
arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
- result = (_STACK *)& ((arg1)->stack);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st, 0 | 0 );
+ result = (int)sk_OPENSSL_BLOCK_is_sorted((struct stack_st_OPENSSL_BLOCK const *)arg1);
+ resultobj = SWIG_From_int((int)(result));
return resultobj;
fail:
return NULL;
}
-SWIGINTERN int _wrap_new_stack_st_OPENSSL_BLOCK(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_dup(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
struct stack_st_OPENSSL_BLOCK *result = 0 ;
- result = (struct stack_st_OPENSSL_BLOCK *)calloc(1, sizeof(struct stack_st_OPENSSL_BLOCK));
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_BLOCK, SWIG_BUILTIN_INIT | 0 );
- return resultobj == Py_None ? -1 : 0;
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_dup",1,1,&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_dup" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK const *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ result = (struct stack_st_OPENSSL_BLOCK *)sk_OPENSSL_BLOCK_dup((struct stack_st_OPENSSL_BLOCK const *)arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ return resultobj;
fail:
- return -1;
+ return NULL;
}
-SWIGINTERN PyObject *_wrap_delete_stack_st_OPENSSL_BLOCK(PyObject *self, PyObject *args) {
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_deep_copy(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ sk_OPENSSL_BLOCK_copyfunc arg2 = (sk_OPENSSL_BLOCK_copyfunc) 0 ;
+ sk_OPENSSL_BLOCK_freefunc arg3 = (sk_OPENSSL_BLOCK_freefunc) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
+ struct stack_st_OPENSSL_BLOCK *result = 0 ;
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, SWIG_POINTER_DISOWN | 0 );
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_deep_copy",3,3,&obj0,&obj1,&obj2)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_stack_st_OPENSSL_BLOCK" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_deep_copy" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK const *""'");
}
arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
- free((char *) arg1);
- resultobj = SWIG_Py_Void();
+ {
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void__p_void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_BLOCK_deep_copy" "', argument " "2"" of type '" "sk_OPENSSL_BLOCK_copyfunc""'");
+ }
+ }
+ {
+ int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_void__void);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_BLOCK_deep_copy" "', argument " "3"" of type '" "sk_OPENSSL_BLOCK_freefunc""'");
+ }
+ }
+ result = (struct stack_st_OPENSSL_BLOCK *)sk_OPENSSL_BLOCK_deep_copy((struct stack_st_OPENSSL_BLOCK const *)arg1,arg2,arg3);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_sk_OPENSSL_BLOCK_set_cmp_func(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ struct stack_st_OPENSSL_BLOCK *arg1 = (struct stack_st_OPENSSL_BLOCK *) 0 ;
+ sk_OPENSSL_BLOCK_compfunc arg2 = (sk_OPENSSL_BLOCK_compfunc) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ sk_OPENSSL_BLOCK_compfunc result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"sk_OPENSSL_BLOCK_set_cmp_func",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_stack_st_OPENSSL_BLOCK, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sk_OPENSSL_BLOCK_set_cmp_func" "', argument " "1"" of type '" "struct stack_st_OPENSSL_BLOCK *""'");
+ }
+ arg1 = (struct stack_st_OPENSSL_BLOCK *)(argp1);
+ {
+ int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int);
+ if (!SWIG_IsOK(res)) {
+ SWIG_exception_fail(SWIG_ArgError(res), "in method '" "sk_OPENSSL_BLOCK_set_cmp_func" "', argument " "2"" of type '" "sk_OPENSSL_BLOCK_compfunc""'");
+ }
+ }
+ result = (sk_OPENSSL_BLOCK_compfunc)sk_OPENSSL_BLOCK_set_cmp_func(arg1,arg2);
+ resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int);
return resultobj;
fail:
return NULL;
@@ -10511,6 +12542,7 @@ fail:
SWIGINTERN PyObject *_wrap_threading_init(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ if(!PyArg_UnpackTuple(args,(char *)"threading_init",0,0)) SWIG_fail;
threading_init();
resultobj = SWIG_Py_Void();
return resultobj;
@@ -10522,6 +12554,7 @@ fail:
SWIGINTERN PyObject *_wrap_threading_cleanup(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ if(!PyArg_UnpackTuple(args,(char *)"threading_cleanup",0,0)) SWIG_fail;
threading_cleanup();
resultobj = SWIG_Py_Void();
return resultobj;
@@ -10533,6 +12566,7 @@ fail:
SWIGINTERN PyObject *_wrap_lib_init(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ if(!PyArg_UnpackTuple(args,(char *)"lib_init",0,0)) SWIG_fail;
lib_init();
resultobj = SWIG_Py_Void();
return resultobj;
@@ -10700,6 +12734,7 @@ SWIGINTERN PyObject *_wrap_err_get_error(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
unsigned long result;
+ if(!PyArg_UnpackTuple(args,(char *)"err_get_error",0,0)) SWIG_fail;
result = (unsigned long)ERR_get_error();
resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
return resultobj;
@@ -10712,6 +12747,7 @@ SWIGINTERN PyObject *_wrap_err_peek_error(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
unsigned long result;
+ if(!PyArg_UnpackTuple(args,(char *)"err_peek_error",0,0)) SWIG_fail;
result = (unsigned long)ERR_peek_error();
resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result));
return resultobj;
@@ -10790,6 +12826,7 @@ SWIGINTERN PyObject *_wrap_bio_s_bio(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
BIO_METHOD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"bio_s_bio",0,0)) SWIG_fail;
result = (BIO_METHOD *)BIO_s_bio();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BIO_METHOD, 0 | 0 );
return resultobj;
@@ -10802,6 +12839,7 @@ SWIGINTERN PyObject *_wrap_bio_s_mem(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
BIO_METHOD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"bio_s_mem",0,0)) SWIG_fail;
result = (BIO_METHOD *)BIO_s_mem();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BIO_METHOD, 0 | 0 );
return resultobj;
@@ -10814,6 +12852,7 @@ SWIGINTERN PyObject *_wrap_bio_s_socket(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
BIO_METHOD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"bio_s_socket",0,0)) SWIG_fail;
result = (BIO_METHOD *)BIO_s_socket();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BIO_METHOD, 0 | 0 );
return resultobj;
@@ -10826,6 +12865,7 @@ SWIGINTERN PyObject *_wrap_bio_f_ssl(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
BIO_METHOD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"bio_f_ssl",0,0)) SWIG_fail;
result = (BIO_METHOD *)BIO_f_ssl();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BIO_METHOD, 0 | 0 );
return resultobj;
@@ -10838,6 +12878,7 @@ SWIGINTERN PyObject *_wrap_bio_f_buffer(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
BIO_METHOD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"bio_f_buffer",0,0)) SWIG_fail;
result = (BIO_METHOD *)BIO_f_buffer();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BIO_METHOD, 0 | 0 );
return resultobj;
@@ -10850,6 +12891,7 @@ SWIGINTERN PyObject *_wrap_bio_f_cipher(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
BIO_METHOD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"bio_f_cipher",0,0)) SWIG_fail;
result = (BIO_METHOD *)BIO_f_cipher();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BIO_METHOD, 0 | 0 );
return resultobj;
@@ -11099,6 +13141,7 @@ SWIGINTERN PyObject *Swig_var__bio_err_get(void) {
SWIGINTERN PyObject *_wrap_pyfd_init(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ if(!PyArg_UnpackTuple(args,(char *)"pyfd_init",0,0)) SWIG_fail;
pyfd_init();
resultobj = SWIG_Py_Void();
return resultobj;
@@ -11950,66 +13993,6 @@ fail:
}
-SWIGINTERN PyObject *_wrap_BIO_meth_new(PyObject *self, PyObject *args) {
- PyObject *resultobj = 0;
- int arg1 ;
- char *arg2 = (char *) 0 ;
- int val1 ;
- int ecode1 = 0 ;
- int res2 ;
- char *buf2 = 0 ;
- int alloc2 = 0 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- BIO_METHOD *result = 0 ;
-
- if(!PyArg_UnpackTuple(args,(char *)"BIO_meth_new",2,2,&obj0,&obj1)) SWIG_fail;
- ecode1 = SWIG_AsVal_int(obj0, &val1);
- if (!SWIG_IsOK(ecode1)) {
- SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BIO_meth_new" "', argument " "1"" of type '" "int""'");
- }
- arg1 = (int)(val1);
- res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
- if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BIO_meth_new" "', argument " "2"" of type '" "char const *""'");
- }
- arg2 = (char *)(buf2);
- result = (BIO_METHOD *)BIO_meth_new(arg1,(char const *)arg2);
- resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_BIO_METHOD, 0 | 0 );
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return resultobj;
-fail:
- if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
- return NULL;
-}
-
-
-SWIGINTERN PyObject *_wrap_BIO_meth_free(PyObject *self, PyObject *args) {
- PyObject *resultobj = 0;
- BIO_METHOD *arg1 = (BIO_METHOD *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- PyObject * obj0 = 0 ;
-
- if(!PyArg_UnpackTuple(args,(char *)"BIO_meth_free",1,1,&obj0)) SWIG_fail;
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_BIO_METHOD, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BIO_meth_free" "', argument " "1"" of type '" "BIO_METHOD *""'");
- }
- arg1 = (BIO_METHOD *)(argp1);
- {
- if (!arg1) {
- SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
- }
- }
- BIO_meth_free(arg1);
- resultobj = SWIG_Py_Void();
- return resultobj;
-fail:
- return NULL;
-}
-
-
SWIGINTERN PyObject *_wrap_BIO_PYFD_CTX_fd_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
struct pyfd_struct *arg1 = (struct pyfd_struct *) 0 ;
@@ -12046,6 +14029,7 @@ SWIGINTERN PyObject *_wrap_BIO_PYFD_CTX_fd_get(PyObject *self, PyObject *args) {
int res1 = 0 ;
int result;
+ if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "BIO_PYFD_CTX_fd_get takes no arguments");
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pyfd_struct, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BIO_PYFD_CTX_fd_get" "', argument " "1"" of type '" "struct pyfd_struct *""'");
@@ -12066,6 +14050,7 @@ SWIGINTERN int _wrap_new_BIO_PYFD_CTX(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
struct pyfd_struct *result = 0 ;
+ if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "new_BIO_PYFD_CTX takes no arguments");
result = (struct pyfd_struct *)calloc(1, sizeof(struct pyfd_struct));
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pyfd_struct, SWIG_BUILTIN_INIT | 0 );
return resultobj == Py_None ? -1 : 0;
@@ -12080,6 +14065,7 @@ SWIGINTERN PyObject *_wrap_delete_BIO_PYFD_CTX(PyObject *self, PyObject *args) {
void *argp1 = 0 ;
int res1 = 0 ;
+ if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "delete_BIO_PYFD_CTX takes no arguments");
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_pyfd_struct, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BIO_PYFD_CTX" "', argument " "1"" of type '" "struct pyfd_struct *""'");
@@ -12093,6 +14079,8 @@ fail:
}
+SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_BIO_PYFD_CTX) /* defines _wrap_delete_BIO_PYFD_CTX_destructor_closure */
+
SWIGINTERN int Swig_var_methods_fdp_set(PyObject *_val) {
{
void *argp = 0;
@@ -12621,6 +14609,7 @@ SWIGINTERN PyObject *_wrap_rand_poll(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
int result;
+ if(!PyArg_UnpackTuple(args,(char *)"rand_poll",0,0)) SWIG_fail;
result = (int)RAND_poll();
{
resultobj=PyLong_FromLong(result);
@@ -12636,6 +14625,7 @@ SWIGINTERN PyObject *_wrap_rand_status(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
int result;
+ if(!PyArg_UnpackTuple(args,(char *)"rand_status",0,0)) SWIG_fail;
result = (int)RAND_status();
{
resultobj=PyLong_FromLong(result);
@@ -12650,6 +14640,7 @@ fail:
SWIGINTERN PyObject *_wrap_rand_cleanup(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ if(!PyArg_UnpackTuple(args,(char *)"rand_cleanup",0,0)) SWIG_fail;
RAND_cleanup();
resultobj = SWIG_Py_Void();
return resultobj;
@@ -12801,6 +14792,7 @@ SWIGINTERN PyObject *_wrap_rand_file_name__SWIG_1(PyObject *self, PyObject *args
PyObject *resultobj = 0;
PyObject *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"rand_file_name",0,0)) SWIG_fail;
result = (PyObject *)rand_file_name();
{
resultobj=result;
@@ -12812,12 +14804,14 @@ fail:
SWIGINTERN PyObject *_wrap_rand_file_name(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[3];
- int ii;
+ Py_ssize_t argc;
+ PyObject *argv[3] = {
+ 0
+ };
+ Py_ssize_t ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = args ? (int)PyObject_Length(args) : 0;
+ argc = PyObject_Length(args);
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
@@ -12851,6 +14845,7 @@ fail:
SWIGINTERN PyObject *_wrap_rand_screen(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ if(!PyArg_UnpackTuple(args,(char *)"rand_screen",0,0)) SWIG_fail;
rand_screen();
resultobj = SWIG_Py_Void();
return resultobj;
@@ -12906,6 +14901,7 @@ SWIGINTERN PyObject *_wrap_md5(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_MD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"md5",0,0)) SWIG_fail;
result = (EVP_MD *)EVP_md5();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_MD, 0 | 0 );
return resultobj;
@@ -12918,6 +14914,7 @@ SWIGINTERN PyObject *_wrap_sha1(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_MD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"sha1",0,0)) SWIG_fail;
result = (EVP_MD *)EVP_sha1();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_MD, 0 | 0 );
return resultobj;
@@ -12930,6 +14927,7 @@ SWIGINTERN PyObject *_wrap_ripemd160(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_MD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"ripemd160",0,0)) SWIG_fail;
result = (EVP_MD *)EVP_ripemd160();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_MD, 0 | 0 );
return resultobj;
@@ -12942,6 +14940,7 @@ SWIGINTERN PyObject *_wrap_sha224(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_MD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"sha224",0,0)) SWIG_fail;
result = (EVP_MD *)EVP_sha224();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_MD, 0 | 0 );
return resultobj;
@@ -12954,6 +14953,7 @@ SWIGINTERN PyObject *_wrap_sha256(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_MD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"sha256",0,0)) SWIG_fail;
result = (EVP_MD *)EVP_sha256();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_MD, 0 | 0 );
return resultobj;
@@ -12966,6 +14966,7 @@ SWIGINTERN PyObject *_wrap_sha384(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_MD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"sha384",0,0)) SWIG_fail;
result = (EVP_MD *)EVP_sha384();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_MD, 0 | 0 );
return resultobj;
@@ -12978,6 +14979,7 @@ SWIGINTERN PyObject *_wrap_sha512(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_MD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"sha512",0,0)) SWIG_fail;
result = (EVP_MD *)EVP_sha512();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_MD, 0 | 0 );
return resultobj;
@@ -13034,6 +15036,7 @@ SWIGINTERN PyObject *_wrap_des_ecb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_ecb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_ecb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13046,6 +15049,7 @@ SWIGINTERN PyObject *_wrap_des_ede_ecb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_ede_ecb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_ede();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13058,6 +15062,7 @@ SWIGINTERN PyObject *_wrap_des_ede3_ecb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_ede3_ecb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_ede3();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13070,6 +15075,7 @@ SWIGINTERN PyObject *_wrap_des_cbc(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_cbc",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_cbc();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13082,6 +15088,7 @@ SWIGINTERN PyObject *_wrap_des_ede_cbc(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_ede_cbc",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_ede_cbc();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13094,6 +15101,7 @@ SWIGINTERN PyObject *_wrap_des_ede3_cbc(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_ede3_cbc",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_ede3_cbc();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13106,6 +15114,7 @@ SWIGINTERN PyObject *_wrap_des_cfb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_cfb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_cfb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13118,6 +15127,7 @@ SWIGINTERN PyObject *_wrap_des_ede_cfb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_ede_cfb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_ede_cfb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13130,6 +15140,7 @@ SWIGINTERN PyObject *_wrap_des_ede3_cfb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_ede3_cfb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_ede3_cfb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13142,6 +15153,7 @@ SWIGINTERN PyObject *_wrap_des_ofb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_ofb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_ofb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13154,6 +15166,7 @@ SWIGINTERN PyObject *_wrap_des_ede_ofb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_ede_ofb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_ede_ofb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13166,6 +15179,7 @@ SWIGINTERN PyObject *_wrap_des_ede3_ofb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"des_ede3_ofb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_des_ede3_ofb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13178,6 +15192,7 @@ SWIGINTERN PyObject *_wrap_bf_ecb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"bf_ecb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_bf_ecb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13190,6 +15205,7 @@ SWIGINTERN PyObject *_wrap_bf_cbc(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"bf_cbc",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_bf_cbc();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13202,6 +15218,7 @@ SWIGINTERN PyObject *_wrap_bf_cfb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"bf_cfb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_bf_cfb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13214,6 +15231,7 @@ SWIGINTERN PyObject *_wrap_bf_ofb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"bf_ofb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_bf_ofb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13226,6 +15244,7 @@ SWIGINTERN PyObject *_wrap_cast5_ecb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"cast5_ecb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_cast5_ecb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13238,6 +15257,7 @@ SWIGINTERN PyObject *_wrap_cast5_cbc(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"cast5_cbc",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_cast5_cbc();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13250,6 +15270,7 @@ SWIGINTERN PyObject *_wrap_cast5_cfb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"cast5_cfb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_cast5_cfb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13262,6 +15283,7 @@ SWIGINTERN PyObject *_wrap_cast5_ofb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"cast5_ofb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_cast5_ofb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13274,6 +15296,7 @@ SWIGINTERN PyObject *_wrap_rc4(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"rc4",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_rc4();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13286,6 +15309,7 @@ SWIGINTERN PyObject *_wrap_rc2_40_cbc(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"rc2_40_cbc",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_rc2_40_cbc();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13298,6 +15322,7 @@ SWIGINTERN PyObject *_wrap_aes_128_ecb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_128_ecb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_128_ecb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13310,6 +15335,7 @@ SWIGINTERN PyObject *_wrap_aes_128_cbc(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_128_cbc",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_128_cbc();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13322,6 +15348,7 @@ SWIGINTERN PyObject *_wrap_aes_128_cfb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_128_cfb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_128_cfb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13334,6 +15361,7 @@ SWIGINTERN PyObject *_wrap_aes_128_ofb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_128_ofb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_128_ofb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13346,6 +15374,7 @@ SWIGINTERN PyObject *_wrap_aes_128_ctr(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_128_ctr",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_128_ctr();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13358,6 +15387,7 @@ SWIGINTERN PyObject *_wrap_aes_192_ecb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_192_ecb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_192_ecb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13370,6 +15400,7 @@ SWIGINTERN PyObject *_wrap_aes_192_cbc(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_192_cbc",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_192_cbc();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13382,6 +15413,7 @@ SWIGINTERN PyObject *_wrap_aes_192_cfb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_192_cfb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_192_cfb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13394,6 +15426,7 @@ SWIGINTERN PyObject *_wrap_aes_192_ofb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_192_ofb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_192_ofb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13406,6 +15439,7 @@ SWIGINTERN PyObject *_wrap_aes_192_ctr(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_192_ctr",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_192_ctr();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13418,6 +15452,7 @@ SWIGINTERN PyObject *_wrap_aes_256_ecb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_256_ecb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_256_ecb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13430,6 +15465,7 @@ SWIGINTERN PyObject *_wrap_aes_256_cbc(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_256_cbc",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_256_cbc();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13442,6 +15478,7 @@ SWIGINTERN PyObject *_wrap_aes_256_cfb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_256_cfb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_256_cfb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13454,6 +15491,7 @@ SWIGINTERN PyObject *_wrap_aes_256_ofb(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_256_ofb",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_256_ofb();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13466,6 +15504,7 @@ SWIGINTERN PyObject *_wrap_aes_256_ctr(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_256_ctr",0,0)) SWIG_fail;
result = (EVP_CIPHER *)EVP_aes_256_ctr();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER, 0 | 0 );
return resultobj;
@@ -13915,6 +15954,7 @@ SWIGINTERN PyObject *_wrap_md_ctx_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_MD_CTX *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"md_ctx_new",0,0)) SWIG_fail;
result = (EVP_MD_CTX *)md_ctx_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_MD_CTX, 0 | 0 );
return resultobj;
@@ -14017,6 +16057,7 @@ SWIGINTERN PyObject *_wrap_hmac_ctx_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
HMAC_CTX *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"hmac_ctx_new",0,0)) SWIG_fail;
result = (HMAC_CTX *)hmac_ctx_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_HMAC_CTX, 0 | 0 );
return resultobj;
@@ -14205,6 +16246,7 @@ SWIGINTERN PyObject *_wrap_cipher_ctx_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_CIPHER_CTX *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"cipher_ctx_new",0,0)) SWIG_fail;
result = (EVP_CIPHER_CTX *)cipher_ctx_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EVP_CIPHER_CTX, 0 | 0 );
return resultobj;
@@ -14749,6 +16791,7 @@ SWIGINTERN PyObject *_wrap_pkey_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EVP_PKEY *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"pkey_new",0,0)) SWIG_fail;
result = (EVP_PKEY *)pkey_new();
{
PyObject *self = NULL; /* bug in SWIG_NewPointerObj as of 3.0.5 */
@@ -14959,6 +17002,7 @@ SWIGINTERN PyObject *_wrap_aes_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
AES_KEY *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"aes_new",0,0)) SWIG_fail;
result = (AES_KEY *)aes_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_AES_KEY, 0 | 0 );
return resultobj;
@@ -15131,6 +17175,7 @@ SWIGINTERN PyObject *_wrap_rc4_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
RC4_KEY *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"rc4_new",0,0)) SWIG_fail;
result = (RC4_KEY *)rc4_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RC4_KEY, 0 | 0 );
return resultobj;
@@ -15267,6 +17312,7 @@ SWIGINTERN PyObject *_wrap_dh_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
DH *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"dh_new",0,0)) SWIG_fail;
result = (DH *)DH_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DH, 0 | 0 );
return resultobj;
@@ -15805,6 +17851,7 @@ SWIGINTERN PyObject *_wrap_rsa_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
RSA *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"rsa_new",0,0)) SWIG_fail;
result = (RSA *)RSA_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_RSA, 0 | 0 );
return resultobj;
@@ -16926,6 +18973,7 @@ SWIGINTERN PyObject *_wrap_dsa_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
DSA *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"dsa_new",0,0)) SWIG_fail;
result = (DSA *)DSA_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_DSA, 0 | 0 );
return resultobj;
@@ -18214,6 +20262,7 @@ SWIGINTERN PyObject *_wrap_sslv23_method(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
SSL_METHOD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"sslv23_method",0,0)) SWIG_fail;
result = (SSL_METHOD *)SSLv23_method();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SSL_METHOD, 0 | 0 );
return resultobj;
@@ -18618,6 +20667,7 @@ SWIGINTERN PyObject *_wrap_ssl_get_ex_data_x509_store_ctx_idx(PyObject *self, Py
PyObject *resultobj = 0;
int result;
+ if(!PyArg_UnpackTuple(args,(char *)"ssl_get_ex_data_x509_store_ctx_idx",0,0)) SWIG_fail;
result = (int)SSL_get_ex_data_X509_STORE_CTX_idx();
{
resultobj=PyLong_FromLong(result);
@@ -19870,6 +21920,7 @@ SWIGINTERN PyObject *_wrap_tlsv1_method(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
SSL_METHOD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"tlsv1_method",0,0)) SWIG_fail;
result = (SSL_METHOD *)tlsv1_method();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SSL_METHOD, 0 | 0 );
return resultobj;
@@ -21548,6 +23599,7 @@ SWIGINTERN PyObject *_wrap_x509_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
X509 *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"x509_new",0,0)) SWIG_fail;
result = (X509 *)X509_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_X509, 0 | 0 );
return resultobj;
@@ -21639,6 +23691,7 @@ SWIGINTERN PyObject *_wrap_x509_crl_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
X509_CRL *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"x509_crl_new",0,0)) SWIG_fail;
result = (X509_CRL *)X509_CRL_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_X509_CRL, 0 | 0 );
return resultobj;
@@ -22475,6 +24528,7 @@ SWIGINTERN PyObject *_wrap_x509_name_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
X509_NAME *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"x509_name_new",0,0)) SWIG_fail;
result = (X509_NAME *)X509_NAME_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_X509_NAME, 0 | 0 );
return resultobj;
@@ -23043,6 +25097,7 @@ SWIGINTERN PyObject *_wrap_x509_name_entry_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
X509_NAME_ENTRY *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"x509_name_entry_new",0,0)) SWIG_fail;
result = (X509_NAME_ENTRY *)X509_NAME_ENTRY_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_X509_NAME_ENTRY, 0 | 0 );
return resultobj;
@@ -23292,6 +25347,7 @@ SWIGINTERN PyObject *_wrap_x509_req_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
X509_REQ *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"x509_req_new",0,0)) SWIG_fail;
result = (X509_REQ *)X509_REQ_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_X509_REQ, 0 | 0 );
return resultobj;
@@ -23691,6 +25747,7 @@ SWIGINTERN PyObject *_wrap_x509_store_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
X509_STORE *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"x509_store_new",0,0)) SWIG_fail;
result = (X509_STORE *)X509_STORE_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_X509_STORE, 0 | 0 );
return resultobj;
@@ -23962,6 +26019,40 @@ fail:
}
+SWIGINTERN PyObject *_wrap_x509_store_set_flags(PyObject *self, PyObject *args) {
+ PyObject *resultobj = 0;
+ X509_STORE *arg1 = (X509_STORE *) 0 ;
+ unsigned long arg2 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ unsigned long val2 ;
+ int ecode2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ int result;
+
+ if(!PyArg_UnpackTuple(args,(char *)"x509_store_set_flags",2,2,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_X509_STORE, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "x509_store_set_flags" "', argument " "1"" of type '" "X509_STORE *""'");
+ }
+ arg1 = (X509_STORE *)(argp1);
+ ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
+ if (!SWIG_IsOK(ecode2)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "x509_store_set_flags" "', argument " "2"" of type '" "unsigned long""'");
+ }
+ arg2 = (unsigned long)(val2);
+ result = (int)X509_STORE_set_flags(arg1,arg2);
+ {
+ resultobj=PyLong_FromLong(result);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
SWIGINTERN PyObject *_wrap_x509_read_pem(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
BIO *arg1 = (BIO *) 0 ;
@@ -25163,6 +27254,7 @@ SWIGINTERN PyObject *_wrap_x509v3_set_nconf(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
X509V3_CTX *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"x509v3_set_nconf",0,0)) SWIG_fail;
result = (X509V3_CTX *)x509v3_set_nconf();
{
PyObject *self = NULL; /* bug in SWIG_NewPointerObj as of 3.0.5 */
@@ -25290,6 +27382,7 @@ SWIGINTERN PyObject *_wrap_sk_x509_extension_new_null(PyObject *self, PyObject *
PyObject *resultobj = 0;
struct stack_st_X509_EXTENSION *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"sk_x509_extension_new_null",0,0)) SWIG_fail;
result = (struct stack_st_X509_EXTENSION *)sk_x509_extension_new_null();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_stack_st_X509_EXTENSION, 0 | 0 );
return resultobj;
@@ -25520,12 +27613,14 @@ fail:
SWIGINTERN PyObject *_wrap_x509_store_set_verify_cb(PyObject *self, PyObject *args) {
- int argc;
- PyObject *argv[3];
- int ii;
+ Py_ssize_t argc;
+ PyObject *argv[3] = {
+ 0
+ };
+ Py_ssize_t ii;
if (!PyTuple_Check(args)) SWIG_fail;
- argc = args ? (int)PyObject_Length(args) : 0;
+ argc = PyObject_Length(args);
for (ii = 0; (ii < 2) && (ii < argc); ii++) {
argv[ii] = PyTuple_GET_ITEM(args,ii);
}
@@ -25595,6 +27690,7 @@ SWIGINTERN PyObject *_wrap_sk_x509_new_null(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
struct stack_st_X509 *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"sk_x509_new_null",0,0)) SWIG_fail;
result = (struct stack_st_X509 *)sk_x509_new_null();
{
PyObject *self = NULL; /* bug in SWIG_NewPointerObj as of 3.0.5 */
@@ -25675,6 +27771,7 @@ SWIGINTERN PyObject *_wrap_asn1_object_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
ASN1_OBJECT *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"asn1_object_new",0,0)) SWIG_fail;
result = (ASN1_OBJECT *)ASN1_OBJECT_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ASN1_OBJECT, 0 | 0 );
return resultobj;
@@ -25856,6 +27953,7 @@ SWIGINTERN PyObject *_wrap_asn1_bit_string_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
ASN1_BIT_STRING *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"asn1_bit_string_new",0,0)) SWIG_fail;
result = (ASN1_BIT_STRING *)ASN1_BIT_STRING_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ASN1_BIT_STRING, 0 | 0 );
return resultobj;
@@ -25868,6 +27966,7 @@ SWIGINTERN PyObject *_wrap_asn1_string_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
ASN1_STRING *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"asn1_string_new",0,0)) SWIG_fail;
result = (ASN1_STRING *)ASN1_STRING_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ASN1_STRING, 0 | 0 );
return resultobj;
@@ -26062,6 +28161,7 @@ SWIGINTERN PyObject *_wrap_asn1_time_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
ASN1_TIME *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"asn1_time_new",0,0)) SWIG_fail;
result = (ASN1_TIME *)ASN1_TIME_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ASN1_TIME, 0 | 0 );
return resultobj;
@@ -26256,6 +28356,7 @@ SWIGINTERN PyObject *_wrap_asn1_integer_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
ASN1_INTEGER *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"asn1_integer_new",0,0)) SWIG_fail;
result = (ASN1_INTEGER *)ASN1_INTEGER_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ASN1_INTEGER, 0 | 0 );
return resultobj;
@@ -26432,6 +28533,7 @@ SWIGINTERN PyObject *_wrap_pkcs7_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
PKCS7 *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"pkcs7_new",0,0)) SWIG_fail;
result = (PKCS7 *)PKCS7_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PKCS7, 0 | 0 );
return resultobj;
@@ -27639,6 +29741,7 @@ SWIGINTERN PyObject *_wrap_ec_key_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
EC_KEY *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"ec_key_new",0,0)) SWIG_fail;
result = (EC_KEY *)EC_KEY_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_EC_KEY, 0 | 0 );
return resultobj;
@@ -27809,6 +29912,7 @@ SWIGINTERN PyObject *_wrap_ec_get_builtin_curves(PyObject *self, PyObject *args)
PyObject *resultobj = 0;
PyObject *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"ec_get_builtin_curves",0,0)) SWIG_fail;
result = (PyObject *)ec_get_builtin_curves();
{
resultobj=result;
@@ -28501,6 +30605,7 @@ fail:
SWIGINTERN PyObject *_wrap_engine_load_builtin_engines(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ if(!PyArg_UnpackTuple(args,(char *)"engine_load_builtin_engines",0,0)) SWIG_fail;
ENGINE_load_builtin_engines();
resultobj = SWIG_Py_Void();
return resultobj;
@@ -28512,6 +30617,7 @@ fail:
SWIGINTERN PyObject *_wrap_engine_load_dynamic(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ if(!PyArg_UnpackTuple(args,(char *)"engine_load_dynamic",0,0)) SWIG_fail;
ENGINE_load_dynamic();
resultobj = SWIG_Py_Void();
return resultobj;
@@ -28523,6 +30629,7 @@ fail:
SWIGINTERN PyObject *_wrap_engine_load_openssl(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ if(!PyArg_UnpackTuple(args,(char *)"engine_load_openssl",0,0)) SWIG_fail;
ENGINE_load_openssl();
resultobj = SWIG_Py_Void();
return resultobj;
@@ -28534,6 +30641,7 @@ fail:
SWIGINTERN PyObject *_wrap_engine_cleanup(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
+ if(!PyArg_UnpackTuple(args,(char *)"engine_cleanup",0,0)) SWIG_fail;
ENGINE_cleanup();
resultobj = SWIG_Py_Void();
return resultobj;
@@ -28546,6 +30654,7 @@ SWIGINTERN PyObject *_wrap_engine_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
ENGINE *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"engine_new",0,0)) SWIG_fail;
result = (ENGINE *)ENGINE_new();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ENGINE, 0 | 0 );
return resultobj;
@@ -28795,6 +30904,7 @@ SWIGINTERN PyObject *_wrap_ui_openssl(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
UI_METHOD *result = 0 ;
+ if(!PyArg_UnpackTuple(args,(char *)"ui_openssl",0,0)) SWIG_fail;
result = (UI_METHOD *)UI_OpenSSL();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_UI_METHOD, 0 | 0 );
return resultobj;
@@ -28828,7 +30938,7 @@ SWIGINTERN PyObject *_wrap__cbd_t_password_set(PyObject *self, PyObject *args) {
if (arg1->password) free((char*)arg1->password);
if (arg2) {
size_t size = strlen((const char *)(arg2)) + 1;
- arg1->password = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
+ arg1->password = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
} else {
arg1->password = 0;
}
@@ -28848,6 +30958,7 @@ SWIGINTERN PyObject *_wrap__cbd_t_password_get(PyObject *self, PyObject *args) {
int res1 = 0 ;
char *result = 0 ;
+ if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_cbd_t_password_get takes no arguments");
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__cbd_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cbd_t_password_get" "', argument " "1"" of type '" "_cbd_t *""'");
@@ -28886,7 +30997,7 @@ SWIGINTERN PyObject *_wrap__cbd_t_prompt_set(PyObject *self, PyObject *args) {
if (arg1->prompt) free((char*)arg1->prompt);
if (arg2) {
size_t size = strlen((const char *)(arg2)) + 1;
- arg1->prompt = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
+ arg1->prompt = (char *)(char *)memcpy(malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
} else {
arg1->prompt = 0;
}
@@ -28906,6 +31017,7 @@ SWIGINTERN PyObject *_wrap__cbd_t_prompt_get(PyObject *self, PyObject *args) {
int res1 = 0 ;
char *result = 0 ;
+ if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "_cbd_t_prompt_get takes no arguments");
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__cbd_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_cbd_t_prompt_get" "', argument " "1"" of type '" "_cbd_t *""'");
@@ -28923,6 +31035,7 @@ SWIGINTERN int _wrap_new__cbd_t(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
_cbd_t *result = 0 ;
+ if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "new__cbd_t takes no arguments");
result = (_cbd_t *)calloc(1, sizeof(_cbd_t));
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__cbd_t, SWIG_BUILTIN_INIT | 0 );
return resultobj == Py_None ? -1 : 0;
@@ -28937,6 +31050,7 @@ SWIGINTERN PyObject *_wrap_delete__cbd_t(PyObject *self, PyObject *args) {
void *argp1 = 0 ;
int res1 = 0 ;
+ if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, "delete__cbd_t takes no arguments");
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__cbd_t, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__cbd_t" "', argument " "1"" of type '" "_cbd_t *""'");
@@ -28950,6 +31064,8 @@ fail:
}
+SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete__cbd_t) /* defines _wrap_delete__cbd_t_destructor_closure */
+
SWIGINTERN PyObject *_wrap_engine_pkcs11_data_new(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
char *arg1 = (char *) 0 ;
@@ -29573,28 +31689,102 @@ fail:
static PyMethodDef SwigMethods[] = {
{ (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
- { (char *)"sk_num", _wrap_sk_num, METH_VARARGS, NULL},
- { (char *)"sk_value", _wrap_sk_value, METH_VARARGS, NULL},
- { (char *)"sk_set", _wrap_sk_set, METH_VARARGS, NULL},
- { (char *)"sk_new", _wrap_sk_new, METH_VARARGS, NULL},
- { (char *)"sk_new_null", _wrap_sk_new_null, METH_VARARGS, NULL},
- { (char *)"sk_free", _wrap_sk_free, METH_VARARGS, NULL},
- { (char *)"sk_pop_free", _wrap_sk_pop_free, METH_VARARGS, NULL},
- { (char *)"sk_deep_copy", _wrap_sk_deep_copy, METH_VARARGS, NULL},
- { (char *)"sk_insert", _wrap_sk_insert, METH_VARARGS, NULL},
- { (char *)"sk_delete", _wrap_sk_delete, METH_VARARGS, NULL},
- { (char *)"sk_delete_ptr", _wrap_sk_delete_ptr, METH_VARARGS, NULL},
- { (char *)"sk_find", _wrap_sk_find, METH_VARARGS, NULL},
- { (char *)"sk_find_ex", _wrap_sk_find_ex, METH_VARARGS, NULL},
- { (char *)"sk_push", _wrap_sk_push, METH_VARARGS, NULL},
- { (char *)"sk_unshift", _wrap_sk_unshift, METH_VARARGS, NULL},
- { (char *)"sk_shift", _wrap_sk_shift, METH_VARARGS, NULL},
- { (char *)"sk_pop", _wrap_sk_pop, METH_VARARGS, NULL},
- { (char *)"sk_zero", _wrap_sk_zero, METH_VARARGS, NULL},
- { (char *)"sk_set_cmp_func", _wrap_sk_set_cmp_func, METH_VARARGS, NULL},
- { (char *)"sk_dup", _wrap_sk_dup, METH_VARARGS, NULL},
- { (char *)"sk_sort", _wrap_sk_sort, METH_VARARGS, NULL},
- { (char *)"sk_is_sorted", _wrap_sk_is_sorted, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_num", _wrap_OPENSSL_sk_num, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_value", _wrap_OPENSSL_sk_value, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_set", _wrap_OPENSSL_sk_set, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_new", _wrap_OPENSSL_sk_new, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_new_null", _wrap_OPENSSL_sk_new_null, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_new_reserve", _wrap_OPENSSL_sk_new_reserve, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_reserve", _wrap_OPENSSL_sk_reserve, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_free", _wrap_OPENSSL_sk_free, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_pop_free", _wrap_OPENSSL_sk_pop_free, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_deep_copy", _wrap_OPENSSL_sk_deep_copy, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_insert", _wrap_OPENSSL_sk_insert, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_delete", _wrap_OPENSSL_sk_delete, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_delete_ptr", _wrap_OPENSSL_sk_delete_ptr, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_find", _wrap_OPENSSL_sk_find, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_find_ex", _wrap_OPENSSL_sk_find_ex, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_push", _wrap_OPENSSL_sk_push, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_unshift", _wrap_OPENSSL_sk_unshift, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_shift", _wrap_OPENSSL_sk_shift, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_pop", _wrap_OPENSSL_sk_pop, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_zero", _wrap_OPENSSL_sk_zero, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_set_cmp_func", _wrap_OPENSSL_sk_set_cmp_func, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_dup", _wrap_OPENSSL_sk_dup, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_sort", _wrap_OPENSSL_sk_sort, METH_VARARGS, NULL},
+ { (char *)"OPENSSL_sk_is_sorted", _wrap_OPENSSL_sk_is_sorted, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_num", _wrap_sk_OPENSSL_STRING_num, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_value", _wrap_sk_OPENSSL_STRING_value, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_new", _wrap_sk_OPENSSL_STRING_new, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_new_null", _wrap_sk_OPENSSL_STRING_new_null, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_new_reserve", _wrap_sk_OPENSSL_STRING_new_reserve, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_reserve", _wrap_sk_OPENSSL_STRING_reserve, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_free", _wrap_sk_OPENSSL_STRING_free, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_zero", _wrap_sk_OPENSSL_STRING_zero, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_delete", _wrap_sk_OPENSSL_STRING_delete, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_delete_ptr", _wrap_sk_OPENSSL_STRING_delete_ptr, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_push", _wrap_sk_OPENSSL_STRING_push, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_unshift", _wrap_sk_OPENSSL_STRING_unshift, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_pop", _wrap_sk_OPENSSL_STRING_pop, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_shift", _wrap_sk_OPENSSL_STRING_shift, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_pop_free", _wrap_sk_OPENSSL_STRING_pop_free, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_insert", _wrap_sk_OPENSSL_STRING_insert, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_set", _wrap_sk_OPENSSL_STRING_set, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_find", _wrap_sk_OPENSSL_STRING_find, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_find_ex", _wrap_sk_OPENSSL_STRING_find_ex, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_sort", _wrap_sk_OPENSSL_STRING_sort, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_is_sorted", _wrap_sk_OPENSSL_STRING_is_sorted, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_dup", _wrap_sk_OPENSSL_STRING_dup, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_deep_copy", _wrap_sk_OPENSSL_STRING_deep_copy, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_STRING_set_cmp_func", _wrap_sk_OPENSSL_STRING_set_cmp_func, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_num", _wrap_sk_OPENSSL_CSTRING_num, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_value", _wrap_sk_OPENSSL_CSTRING_value, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_new", _wrap_sk_OPENSSL_CSTRING_new, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_new_null", _wrap_sk_OPENSSL_CSTRING_new_null, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_new_reserve", _wrap_sk_OPENSSL_CSTRING_new_reserve, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_reserve", _wrap_sk_OPENSSL_CSTRING_reserve, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_free", _wrap_sk_OPENSSL_CSTRING_free, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_zero", _wrap_sk_OPENSSL_CSTRING_zero, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_delete", _wrap_sk_OPENSSL_CSTRING_delete, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_delete_ptr", _wrap_sk_OPENSSL_CSTRING_delete_ptr, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_push", _wrap_sk_OPENSSL_CSTRING_push, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_unshift", _wrap_sk_OPENSSL_CSTRING_unshift, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_pop", _wrap_sk_OPENSSL_CSTRING_pop, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_shift", _wrap_sk_OPENSSL_CSTRING_shift, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_pop_free", _wrap_sk_OPENSSL_CSTRING_pop_free, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_insert", _wrap_sk_OPENSSL_CSTRING_insert, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_set", _wrap_sk_OPENSSL_CSTRING_set, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_find", _wrap_sk_OPENSSL_CSTRING_find, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_find_ex", _wrap_sk_OPENSSL_CSTRING_find_ex, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_sort", _wrap_sk_OPENSSL_CSTRING_sort, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_is_sorted", _wrap_sk_OPENSSL_CSTRING_is_sorted, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_dup", _wrap_sk_OPENSSL_CSTRING_dup, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_deep_copy", _wrap_sk_OPENSSL_CSTRING_deep_copy, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_CSTRING_set_cmp_func", _wrap_sk_OPENSSL_CSTRING_set_cmp_func, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_num", _wrap_sk_OPENSSL_BLOCK_num, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_value", _wrap_sk_OPENSSL_BLOCK_value, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_new", _wrap_sk_OPENSSL_BLOCK_new, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_new_null", _wrap_sk_OPENSSL_BLOCK_new_null, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_new_reserve", _wrap_sk_OPENSSL_BLOCK_new_reserve, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_reserve", _wrap_sk_OPENSSL_BLOCK_reserve, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_free", _wrap_sk_OPENSSL_BLOCK_free, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_zero", _wrap_sk_OPENSSL_BLOCK_zero, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_delete", _wrap_sk_OPENSSL_BLOCK_delete, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_delete_ptr", _wrap_sk_OPENSSL_BLOCK_delete_ptr, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_push", _wrap_sk_OPENSSL_BLOCK_push, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_unshift", _wrap_sk_OPENSSL_BLOCK_unshift, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_pop", _wrap_sk_OPENSSL_BLOCK_pop, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_shift", _wrap_sk_OPENSSL_BLOCK_shift, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_pop_free", _wrap_sk_OPENSSL_BLOCK_pop_free, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_insert", _wrap_sk_OPENSSL_BLOCK_insert, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_set", _wrap_sk_OPENSSL_BLOCK_set, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_find", _wrap_sk_OPENSSL_BLOCK_find, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_find_ex", _wrap_sk_OPENSSL_BLOCK_find_ex, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_sort", _wrap_sk_OPENSSL_BLOCK_sort, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_is_sorted", _wrap_sk_OPENSSL_BLOCK_is_sorted, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_dup", _wrap_sk_OPENSSL_BLOCK_dup, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_deep_copy", _wrap_sk_OPENSSL_BLOCK_deep_copy, METH_VARARGS, NULL},
+ { (char *)"sk_OPENSSL_BLOCK_set_cmp_func", _wrap_sk_OPENSSL_BLOCK_set_cmp_func, METH_VARARGS, NULL},
{ (char *)"threading_init", _wrap_threading_init, METH_VARARGS, NULL},
{ (char *)"threading_cleanup", _wrap_threading_cleanup, METH_VARARGS, NULL},
{ (char *)"lib_init", _wrap_lib_init, METH_VARARGS, NULL},
@@ -29650,8 +31840,6 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"bio_should_retry", _wrap_bio_should_retry, METH_VARARGS, NULL},
{ (char *)"bio_should_read", _wrap_bio_should_read, METH_VARARGS, NULL},
{ (char *)"bio_should_write", _wrap_bio_should_write, METH_VARARGS, NULL},
- { (char *)"BIO_meth_new", _wrap_BIO_meth_new, METH_VARARGS, NULL},
- { (char *)"BIO_meth_free", _wrap_BIO_meth_free, METH_VARARGS, NULL},
{ (char *)"pyfd_write", _wrap_pyfd_write, METH_VARARGS, NULL},
{ (char *)"pyfd_read", _wrap_pyfd_read, METH_VARARGS, NULL},
{ (char *)"pyfd_puts", _wrap_pyfd_puts, METH_VARARGS, NULL},
@@ -30013,6 +32201,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"x509_store_ctx_get1_chain", _wrap_x509_store_ctx_get1_chain, METH_VARARGS, NULL},
{ (char *)"x509_extension_get_critical", _wrap_x509_extension_get_critical, METH_VARARGS, NULL},
{ (char *)"x509_extension_set_critical", _wrap_x509_extension_set_critical, METH_VARARGS, NULL},
+ { (char *)"x509_store_set_flags", _wrap_x509_store_set_flags, METH_VARARGS, NULL},
{ (char *)"x509_read_pem", _wrap_x509_read_pem, METH_VARARGS, NULL},
{ (char *)"d2i_x509", _wrap_d2i_x509, METH_VARARGS, NULL},
{ (char *)"x509_init", _wrap_x509_init, METH_VARARGS, NULL},
@@ -30168,28 +32357,18 @@ static PyMethodDef SwigMethods[] = {
{ NULL, NULL, 0, NULL }
};
-SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete__STACK)
-static SwigPyGetSet _STACK_num_alloc_getset = { _wrap__STACK_num_alloc_get, _wrap__STACK_num_alloc_set };
-static SwigPyGetSet _STACK_data_getset = { _wrap__STACK_data_get, _wrap__STACK_data_set };
-static SwigPyGetSet _STACK_comp_getset = { _wrap__STACK_comp_get, _wrap__STACK_comp_set };
-static SwigPyGetSet _STACK_sorted_getset = { _wrap__STACK_sorted_get, _wrap__STACK_sorted_set };
-static SwigPyGetSet _STACK_num_getset = { _wrap__STACK_num_get, _wrap__STACK_num_set };
-SWIGINTERN PyGetSetDef SwigPyBuiltin__stack_st_getset[] = {
- { (char*) "num_alloc", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char*)"stack_st.num_alloc", (void*) &_STACK_num_alloc_getset }
-,
- { (char*) "data", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char*)"stack_st.data", (void*) &_STACK_data_getset }
-,
- { (char*) "comp", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char*)"stack_st.comp", (void*) &_STACK_comp_getset }
-,
- { (char*) "sorted", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char*)"stack_st.sorted", (void*) &_STACK_sorted_getset }
+static SwigPyGetSet BIO_PYFD_CTX___dict___getset = { SwigPyObject_get___dict__, 0 };
+static SwigPyGetSet BIO_PYFD_CTX_fd_getset = { _wrap_BIO_PYFD_CTX_fd_get, _wrap_BIO_PYFD_CTX_fd_set };
+SWIGINTERN PyGetSetDef SwigPyBuiltin__pyfd_struct_getset[] = {
+ { (char *) "__dict__", (getter) SwigPyBuiltin_GetterClosure, (setter) 0, (char *)"pyfd_struct.__dict__", (void *) &BIO_PYFD_CTX___dict___getset }
,
- { (char*) "num", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char*)"stack_st.num", (void*) &_STACK_num_getset }
+ { (char *) "fd", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char *)"pyfd_struct.fd", (void *) &BIO_PYFD_CTX_fd_getset }
,
{NULL, NULL, NULL, NULL, NULL} /* Sentinel */
};
SWIGINTERN PyObject *
-SwigPyBuiltin__stack_st_richcompare(PyObject *self, PyObject *other, int op) {
+SwigPyBuiltin__pyfd_struct_richcompare(PyObject *self, PyObject *other, int op) {
PyObject *result = NULL;
PyObject *tuple = PyTuple_New(1);
assert(tuple);
@@ -30207,11 +32386,11 @@ SwigPyBuiltin__stack_st_richcompare(PyObject *self, PyObject *other, int op) {
return result;
}
-SWIGINTERN PyMethodDef SwigPyBuiltin__stack_st_methods[] = {
+SWIGINTERN PyMethodDef SwigPyBuiltin__pyfd_struct_methods[] = {
{ NULL, NULL, 0, NULL } /* Sentinel */
};
-static PyHeapTypeObject SwigPyBuiltin__stack_st_type = {
+static PyHeapTypeObject SwigPyBuiltin__pyfd_struct_type = {
{
#if PY_VERSION_HEX >= 0x03000000
PyVarObject_HEAD_INIT(NULL, 0)
@@ -30219,10 +32398,10 @@ static PyHeapTypeObject SwigPyBuiltin__stack_st_type = {
PyObject_HEAD_INIT(NULL)
0, /* ob_size */
#endif
- "_STACK", /* tp_name */
+ "m2crypto.BIO_PYFD_CTX", /* tp_name */
sizeof(SwigPyObject), /* tp_basicsize */
0, /* tp_itemsize */
- (destructor) _wrap_delete__STACK_closure, /* tp_dealloc */
+ (destructor) (destructor) _wrap_delete_BIO_PYFD_CTX_destructor_closure,/* tp_dealloc */
(printfunc) 0, /* tp_print */
(getattrfunc) 0, /* tp_getattr */
(setattrfunc) 0, /* tp_setattr */
@@ -30232,244 +32411,69 @@ static PyHeapTypeObject SwigPyBuiltin__stack_st_type = {
(cmpfunc) 0, /* tp_compare */
#endif
(reprfunc) 0, /* tp_repr */
- &SwigPyBuiltin__stack_st_type.as_number, /* tp_as_number */
- &SwigPyBuiltin__stack_st_type.as_sequence, /* tp_as_sequence */
- &SwigPyBuiltin__stack_st_type.as_mapping, /* tp_as_mapping */
- (hashfunc) 0, /* tp_hash */
+ &SwigPyBuiltin__pyfd_struct_type.as_number, /* tp_as_number */
+ &SwigPyBuiltin__pyfd_struct_type.as_sequence, /* tp_as_sequence */
+ &SwigPyBuiltin__pyfd_struct_type.as_mapping, /* tp_as_mapping */
+ (hashfunc) SwigPyObject_hash, /* tp_hash */
(ternaryfunc) 0, /* tp_call */
(reprfunc) 0, /* tp_str */
(getattrofunc) 0, /* tp_getattro */
(setattrofunc) 0, /* tp_setattro */
- &SwigPyBuiltin__stack_st_type.as_buffer, /* tp_as_buffer */
+ &SwigPyBuiltin__pyfd_struct_type.as_buffer, /* tp_as_buffer */
#if PY_VERSION_HEX >= 0x03000000
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
#else
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
#endif
- "::stack_st", /* tp_doc */
+ "::pyfd_struct", /* tp_doc */
(traverseproc) 0, /* tp_traverse */
(inquiry) 0, /* tp_clear */
- (richcmpfunc) SwigPyBuiltin__stack_st_richcompare, /* feature:python:tp_richcompare */
+ (richcmpfunc) SwigPyBuiltin__pyfd_struct_richcompare, /* tp_richcompare */
0, /* tp_weaklistoffset */
(getiterfunc) 0, /* tp_iter */
(iternextfunc) 0, /* tp_iternext */
- SwigPyBuiltin__stack_st_methods, /* tp_methods */
+ SwigPyBuiltin__pyfd_struct_methods, /* tp_methods */
0, /* tp_members */
- SwigPyBuiltin__stack_st_getset, /* tp_getset */
+ SwigPyBuiltin__pyfd_struct_getset, /* tp_getset */
0, /* tp_base */
0, /* tp_dict */
(descrgetfunc) 0, /* tp_descr_get */
(descrsetfunc) 0, /* tp_descr_set */
- (size_t)(((char*)&((SwigPyObject *) 64L)->dict) - (char*) 64L), /* tp_dictoffset */
- (initproc) _wrap_new__STACK, /* tp_init */
+ (Py_ssize_t) offsetof(SwigPyObject, dict),/* tp_dictoffset */
+ (initproc) _wrap_new_BIO_PYFD_CTX, /* tp_init */
(allocfunc) 0, /* tp_alloc */
(newfunc) 0, /* tp_new */
(freefunc) 0, /* tp_free */
(inquiry) 0, /* tp_is_gc */
- (PyObject*) 0, /* tp_bases */
- (PyObject*) 0, /* tp_mro */
- (PyObject*) 0, /* tp_cache */
- (PyObject*) 0, /* tp_subclasses */
- (PyObject*) 0, /* tp_weaklist */
+ (PyObject *) 0, /* tp_bases */
+ (PyObject *) 0, /* tp_mro */
+ (PyObject *) 0, /* tp_cache */
+ (PyObject *) 0, /* tp_subclasses */
+ (PyObject *) 0, /* tp_weaklist */
(destructor) 0, /* tp_del */
#if PY_VERSION_HEX >= 0x02060000
(int) 0, /* tp_version_tag */
#endif
- },
- {
- (binaryfunc) 0, /* nb_add */
- (binaryfunc) 0, /* nb_subtract */
- (binaryfunc) 0, /* nb_multiply */
-#if PY_VERSION_HEX < 0x03000000
- (binaryfunc) 0, /* nb_divide */
-#endif
- (binaryfunc) 0, /* nb_remainder */
- (binaryfunc) 0, /* nb_divmod */
- (ternaryfunc) 0, /* nb_power */
- (unaryfunc) 0, /* nb_negative */
- (unaryfunc) 0, /* nb_positive */
- (unaryfunc) 0, /* nb_absolute */
- (inquiry) 0, /* nb_nonzero */
- (unaryfunc) 0, /* nb_invert */
- (binaryfunc) 0, /* nb_lshift */
- (binaryfunc) 0, /* nb_rshift */
- (binaryfunc) 0, /* nb_and */
- (binaryfunc) 0, /* nb_xor */
- (binaryfunc) 0, /* nb_or */
-#if PY_VERSION_HEX < 0x03000000
- (coercion) 0, /* nb_coerce */
-#endif
- (unaryfunc) 0, /* nb_int */
-#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* nb_reserved */
-#else
- (unaryfunc) 0, /* nb_long */
+#if PY_VERSION_HEX >= 0x03040000
+ (destructor) 0, /* tp_finalize */
#endif
- (unaryfunc) 0, /* nb_float */
-#if PY_VERSION_HEX < 0x03000000
- (unaryfunc) 0, /* nb_oct */
- (unaryfunc) 0, /* nb_hex */
-#endif
- (binaryfunc) 0, /* nb_inplace_add */
- (binaryfunc) 0, /* nb_inplace_subtract */
- (binaryfunc) 0, /* nb_inplace_multiply */
-#if PY_VERSION_HEX < 0x03000000
- (binaryfunc) 0, /* nb_inplace_divide */
-#endif
- (binaryfunc) 0, /* nb_inplace_remainder */
- (ternaryfunc) 0, /* nb_inplace_power */
- (binaryfunc) 0, /* nb_inplace_lshift */
- (binaryfunc) 0, /* nb_inplace_rshift */
- (binaryfunc) 0, /* nb_inplace_and */
- (binaryfunc) 0, /* nb_inplace_xor */
- (binaryfunc) 0, /* nb_inplace_or */
- (binaryfunc) 0, /* nb_floor_divide */
- (binaryfunc) 0, /* nb_true_divide */
- (binaryfunc) 0, /* nb_inplace_floor_divide */
- (binaryfunc) 0, /* nb_inplace_true_divide */
+#ifdef COUNT_ALLOCS
+ (Py_ssize_t) 0, /* tp_allocs */
+ (Py_ssize_t) 0, /* tp_frees */
+ (Py_ssize_t) 0, /* tp_maxalloc */
#if PY_VERSION_HEX >= 0x02050000
- (unaryfunc) 0, /* nb_index */
-#endif
- },
- {
- (lenfunc) 0, /* mp_length */
- (binaryfunc) 0, /* mp_subscript */
- (objobjargproc) 0, /* mp_ass_subscript */
- },
- {
- (lenfunc) 0, /* sq_length */
- (binaryfunc) 0, /* sq_concat */
- (ssizeargfunc) 0, /* sq_repeat */
- (ssizeargfunc) 0, /* sq_item */
-#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* was_sq_slice */
-#else
- (ssizessizeargfunc) 0, /* sq_slice */
+ 0, /* tp_prev */
#endif
- (ssizeobjargproc) 0, /* sq_ass_item */
-#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* was_sq_ass_slice */
-#else
- (ssizessizeobjargproc) 0, /* sq_ass_slice */
+ 0, /* tp_next */
#endif
- (objobjproc) 0, /* sq_contains */
- (binaryfunc) 0, /* sq_inplace_concat */
- (ssizeargfunc) 0, /* sq_inplace_repeat */
},
+#if PY_VERSION_HEX >= 0x03050000
{
-#if PY_VERSION_HEX < 0x03000000
- (readbufferproc) 0, /* bf_getreadbuffer */
- (writebufferproc) 0, /* bf_getwritebuffer */
- (segcountproc) 0, /* bf_getsegcount */
- (charbufferproc) 0, /* bf_getcharbuffer */
-#endif
-#if PY_VERSION_HEX >= 0x02060000
- (getbufferproc) 0, /* bf_getbuffer */
- (releasebufferproc) 0, /* bf_releasebuffer */
-#endif
+ (unaryfunc) 0, /* am_await */
+ (unaryfunc) 0, /* am_aiter */
+ (unaryfunc) 0, /* am_anext */
},
- (PyObject*) 0, /* ht_name */
- (PyObject*) 0, /* ht_slots */
-};
-
-SWIGINTERN SwigPyClientData SwigPyBuiltin__stack_st_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__stack_st_type};
-
-SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_stack_st_OPENSSL_STRING)
-static SwigPyGetSet stack_st_OPENSSL_STRING_stack_getset = { _wrap_stack_st_OPENSSL_STRING_stack_get, _wrap_stack_st_OPENSSL_STRING_stack_set };
-SWIGINTERN PyGetSetDef SwigPyBuiltin__stack_st_OPENSSL_STRING_getset[] = {
- { (char*) "stack", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char*)"stack_st_OPENSSL_STRING.stack", (void*) &stack_st_OPENSSL_STRING_stack_getset }
-,
- {NULL, NULL, NULL, NULL, NULL} /* Sentinel */
-};
-
-SWIGINTERN PyObject *
-SwigPyBuiltin__stack_st_OPENSSL_STRING_richcompare(PyObject *self, PyObject *other, int op) {
- PyObject *result = NULL;
- PyObject *tuple = PyTuple_New(1);
- assert(tuple);
- PyTuple_SET_ITEM(tuple, 0, other);
- Py_XINCREF(other);
- if (!result) {
- if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) {
- result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op);
- } else {
- result = Py_NotImplemented;
- Py_INCREF(result);
- }
- }
- Py_DECREF(tuple);
- return result;
-}
-
-SWIGINTERN PyMethodDef SwigPyBuiltin__stack_st_OPENSSL_STRING_methods[] = {
- { NULL, NULL, 0, NULL } /* Sentinel */
-};
-
-static PyHeapTypeObject SwigPyBuiltin__stack_st_OPENSSL_STRING_type = {
- {
-#if PY_VERSION_HEX >= 0x03000000
- PyVarObject_HEAD_INIT(NULL, 0)
-#else
- PyObject_HEAD_INIT(NULL)
- 0, /* ob_size */
-#endif
- "stack_st_OPENSSL_STRING", /* tp_name */
- sizeof(SwigPyObject), /* tp_basicsize */
- 0, /* tp_itemsize */
- (destructor) _wrap_delete_stack_st_OPENSSL_STRING_closure, /* tp_dealloc */
- (printfunc) 0, /* tp_print */
- (getattrfunc) 0, /* tp_getattr */
- (setattrfunc) 0, /* tp_setattr */
-#if PY_VERSION_HEX >= 0x03000000
- 0, /* tp_compare */
-#else
- (cmpfunc) 0, /* tp_compare */
-#endif
- (reprfunc) 0, /* tp_repr */
- &SwigPyBuiltin__stack_st_OPENSSL_STRING_type.as_number, /* tp_as_number */
- &SwigPyBuiltin__stack_st_OPENSSL_STRING_type.as_sequence, /* tp_as_sequence */
- &SwigPyBuiltin__stack_st_OPENSSL_STRING_type.as_mapping, /* tp_as_mapping */
- (hashfunc) 0, /* tp_hash */
- (ternaryfunc) 0, /* tp_call */
- (reprfunc) 0, /* tp_str */
- (getattrofunc) 0, /* tp_getattro */
- (setattrofunc) 0, /* tp_setattro */
- &SwigPyBuiltin__stack_st_OPENSSL_STRING_type.as_buffer, /* tp_as_buffer */
-#if PY_VERSION_HEX >= 0x03000000
- Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
-#else
- Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
-#endif
- "::stack_st_OPENSSL_STRING", /* tp_doc */
- (traverseproc) 0, /* tp_traverse */
- (inquiry) 0, /* tp_clear */
- (richcmpfunc) SwigPyBuiltin__stack_st_OPENSSL_STRING_richcompare, /* feature:python:tp_richcompare */
- 0, /* tp_weaklistoffset */
- (getiterfunc) 0, /* tp_iter */
- (iternextfunc) 0, /* tp_iternext */
- SwigPyBuiltin__stack_st_OPENSSL_STRING_methods, /* tp_methods */
- 0, /* tp_members */
- SwigPyBuiltin__stack_st_OPENSSL_STRING_getset, /* tp_getset */
- 0, /* tp_base */
- 0, /* tp_dict */
- (descrgetfunc) 0, /* tp_descr_get */
- (descrsetfunc) 0, /* tp_descr_set */
- (size_t)(((char*)&((SwigPyObject *) 64L)->dict) - (char*) 64L), /* tp_dictoffset */
- (initproc) _wrap_new_stack_st_OPENSSL_STRING, /* tp_init */
- (allocfunc) 0, /* tp_alloc */
- (newfunc) 0, /* tp_new */
- (freefunc) 0, /* tp_free */
- (inquiry) 0, /* tp_is_gc */
- (PyObject*) 0, /* tp_bases */
- (PyObject*) 0, /* tp_mro */
- (PyObject*) 0, /* tp_cache */
- (PyObject*) 0, /* tp_subclasses */
- (PyObject*) 0, /* tp_weaklist */
- (destructor) 0, /* tp_del */
-#if PY_VERSION_HEX >= 0x02060000
- (int) 0, /* tp_version_tag */
#endif
- },
{
(binaryfunc) 0, /* nb_add */
(binaryfunc) 0, /* nb_subtract */
@@ -30495,7 +32499,7 @@ static PyHeapTypeObject SwigPyBuiltin__stack_st_OPENSSL_STRING_type = {
#endif
(unaryfunc) 0, /* nb_int */
#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* nb_reserved */
+ (void *) 0, /* nb_reserved */
#else
(unaryfunc) 0, /* nb_long */
#endif
@@ -30524,199 +32528,9 @@ static PyHeapTypeObject SwigPyBuiltin__stack_st_OPENSSL_STRING_type = {
#if PY_VERSION_HEX >= 0x02050000
(unaryfunc) 0, /* nb_index */
#endif
- },
- {
- (lenfunc) 0, /* mp_length */
- (binaryfunc) 0, /* mp_subscript */
- (objobjargproc) 0, /* mp_ass_subscript */
- },
- {
- (lenfunc) 0, /* sq_length */
- (binaryfunc) 0, /* sq_concat */
- (ssizeargfunc) 0, /* sq_repeat */
- (ssizeargfunc) 0, /* sq_item */
-#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* was_sq_slice */
-#else
- (ssizessizeargfunc) 0, /* sq_slice */
-#endif
- (ssizeobjargproc) 0, /* sq_ass_item */
-#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* was_sq_ass_slice */
-#else
- (ssizessizeobjargproc) 0, /* sq_ass_slice */
-#endif
- (objobjproc) 0, /* sq_contains */
- (binaryfunc) 0, /* sq_inplace_concat */
- (ssizeargfunc) 0, /* sq_inplace_repeat */
- },
- {
-#if PY_VERSION_HEX < 0x03000000
- (readbufferproc) 0, /* bf_getreadbuffer */
- (writebufferproc) 0, /* bf_getwritebuffer */
- (segcountproc) 0, /* bf_getsegcount */
- (charbufferproc) 0, /* bf_getcharbuffer */
-#endif
-#if PY_VERSION_HEX >= 0x02060000
- (getbufferproc) 0, /* bf_getbuffer */
- (releasebufferproc) 0, /* bf_releasebuffer */
-#endif
- },
- (PyObject*) 0, /* ht_name */
- (PyObject*) 0, /* ht_slots */
-};
-
-SWIGINTERN SwigPyClientData SwigPyBuiltin__stack_st_OPENSSL_STRING_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__stack_st_OPENSSL_STRING_type};
-
-SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_stack_st_OPENSSL_BLOCK)
-static SwigPyGetSet stack_st_OPENSSL_BLOCK_stack_getset = { _wrap_stack_st_OPENSSL_BLOCK_stack_get, _wrap_stack_st_OPENSSL_BLOCK_stack_set };
-SWIGINTERN PyGetSetDef SwigPyBuiltin__stack_st_OPENSSL_BLOCK_getset[] = {
- { (char*) "stack", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char*)"stack_st_OPENSSL_BLOCK.stack", (void*) &stack_st_OPENSSL_BLOCK_stack_getset }
-,
- {NULL, NULL, NULL, NULL, NULL} /* Sentinel */
-};
-
-SWIGINTERN PyObject *
-SwigPyBuiltin__stack_st_OPENSSL_BLOCK_richcompare(PyObject *self, PyObject *other, int op) {
- PyObject *result = NULL;
- PyObject *tuple = PyTuple_New(1);
- assert(tuple);
- PyTuple_SET_ITEM(tuple, 0, other);
- Py_XINCREF(other);
- if (!result) {
- if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) {
- result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op);
- } else {
- result = Py_NotImplemented;
- Py_INCREF(result);
- }
- }
- Py_DECREF(tuple);
- return result;
-}
-
-SWIGINTERN PyMethodDef SwigPyBuiltin__stack_st_OPENSSL_BLOCK_methods[] = {
- { NULL, NULL, 0, NULL } /* Sentinel */
-};
-
-static PyHeapTypeObject SwigPyBuiltin__stack_st_OPENSSL_BLOCK_type = {
- {
-#if PY_VERSION_HEX >= 0x03000000
- PyVarObject_HEAD_INIT(NULL, 0)
-#else
- PyObject_HEAD_INIT(NULL)
- 0, /* ob_size */
-#endif
- "stack_st_OPENSSL_BLOCK", /* tp_name */
- sizeof(SwigPyObject), /* tp_basicsize */
- 0, /* tp_itemsize */
- (destructor) _wrap_delete_stack_st_OPENSSL_BLOCK_closure, /* tp_dealloc */
- (printfunc) 0, /* tp_print */
- (getattrfunc) 0, /* tp_getattr */
- (setattrfunc) 0, /* tp_setattr */
-#if PY_VERSION_HEX >= 0x03000000
- 0, /* tp_compare */
-#else
- (cmpfunc) 0, /* tp_compare */
-#endif
- (reprfunc) 0, /* tp_repr */
- &SwigPyBuiltin__stack_st_OPENSSL_BLOCK_type.as_number, /* tp_as_number */
- &SwigPyBuiltin__stack_st_OPENSSL_BLOCK_type.as_sequence, /* tp_as_sequence */
- &SwigPyBuiltin__stack_st_OPENSSL_BLOCK_type.as_mapping, /* tp_as_mapping */
- (hashfunc) 0, /* tp_hash */
- (ternaryfunc) 0, /* tp_call */
- (reprfunc) 0, /* tp_str */
- (getattrofunc) 0, /* tp_getattro */
- (setattrofunc) 0, /* tp_setattro */
- &SwigPyBuiltin__stack_st_OPENSSL_BLOCK_type.as_buffer, /* tp_as_buffer */
-#if PY_VERSION_HEX >= 0x03000000
- Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
-#else
- Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
-#endif
- "::stack_st_OPENSSL_BLOCK", /* tp_doc */
- (traverseproc) 0, /* tp_traverse */
- (inquiry) 0, /* tp_clear */
- (richcmpfunc) SwigPyBuiltin__stack_st_OPENSSL_BLOCK_richcompare, /* feature:python:tp_richcompare */
- 0, /* tp_weaklistoffset */
- (getiterfunc) 0, /* tp_iter */
- (iternextfunc) 0, /* tp_iternext */
- SwigPyBuiltin__stack_st_OPENSSL_BLOCK_methods, /* tp_methods */
- 0, /* tp_members */
- SwigPyBuiltin__stack_st_OPENSSL_BLOCK_getset, /* tp_getset */
- 0, /* tp_base */
- 0, /* tp_dict */
- (descrgetfunc) 0, /* tp_descr_get */
- (descrsetfunc) 0, /* tp_descr_set */
- (size_t)(((char*)&((SwigPyObject *) 64L)->dict) - (char*) 64L), /* tp_dictoffset */
- (initproc) _wrap_new_stack_st_OPENSSL_BLOCK, /* tp_init */
- (allocfunc) 0, /* tp_alloc */
- (newfunc) 0, /* tp_new */
- (freefunc) 0, /* tp_free */
- (inquiry) 0, /* tp_is_gc */
- (PyObject*) 0, /* tp_bases */
- (PyObject*) 0, /* tp_mro */
- (PyObject*) 0, /* tp_cache */
- (PyObject*) 0, /* tp_subclasses */
- (PyObject*) 0, /* tp_weaklist */
- (destructor) 0, /* tp_del */
-#if PY_VERSION_HEX >= 0x02060000
- (int) 0, /* tp_version_tag */
-#endif
- },
- {
- (binaryfunc) 0, /* nb_add */
- (binaryfunc) 0, /* nb_subtract */
- (binaryfunc) 0, /* nb_multiply */
-#if PY_VERSION_HEX < 0x03000000
- (binaryfunc) 0, /* nb_divide */
-#endif
- (binaryfunc) 0, /* nb_remainder */
- (binaryfunc) 0, /* nb_divmod */
- (ternaryfunc) 0, /* nb_power */
- (unaryfunc) 0, /* nb_negative */
- (unaryfunc) 0, /* nb_positive */
- (unaryfunc) 0, /* nb_absolute */
- (inquiry) 0, /* nb_nonzero */
- (unaryfunc) 0, /* nb_invert */
- (binaryfunc) 0, /* nb_lshift */
- (binaryfunc) 0, /* nb_rshift */
- (binaryfunc) 0, /* nb_and */
- (binaryfunc) 0, /* nb_xor */
- (binaryfunc) 0, /* nb_or */
-#if PY_VERSION_HEX < 0x03000000
- (coercion) 0, /* nb_coerce */
-#endif
- (unaryfunc) 0, /* nb_int */
-#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* nb_reserved */
-#else
- (unaryfunc) 0, /* nb_long */
-#endif
- (unaryfunc) 0, /* nb_float */
-#if PY_VERSION_HEX < 0x03000000
- (unaryfunc) 0, /* nb_oct */
- (unaryfunc) 0, /* nb_hex */
-#endif
- (binaryfunc) 0, /* nb_inplace_add */
- (binaryfunc) 0, /* nb_inplace_subtract */
- (binaryfunc) 0, /* nb_inplace_multiply */
-#if PY_VERSION_HEX < 0x03000000
- (binaryfunc) 0, /* nb_inplace_divide */
-#endif
- (binaryfunc) 0, /* nb_inplace_remainder */
- (ternaryfunc) 0, /* nb_inplace_power */
- (binaryfunc) 0, /* nb_inplace_lshift */
- (binaryfunc) 0, /* nb_inplace_rshift */
- (binaryfunc) 0, /* nb_inplace_and */
- (binaryfunc) 0, /* nb_inplace_xor */
- (binaryfunc) 0, /* nb_inplace_or */
- (binaryfunc) 0, /* nb_floor_divide */
- (binaryfunc) 0, /* nb_true_divide */
- (binaryfunc) 0, /* nb_inplace_floor_divide */
- (binaryfunc) 0, /* nb_inplace_true_divide */
-#if PY_VERSION_HEX >= 0x02050000
- (unaryfunc) 0, /* nb_index */
+#if PY_VERSION_HEX >= 0x03050000
+ (binaryfunc) 0, /* nb_matrix_multiply */
+ (binaryfunc) 0, /* nb_inplace_matrix_multiply */
#endif
},
{
@@ -30730,13 +32544,13 @@ static PyHeapTypeObject SwigPyBuiltin__stack_st_OPENSSL_BLOCK_type = {
(ssizeargfunc) 0, /* sq_repeat */
(ssizeargfunc) 0, /* sq_item */
#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* was_sq_slice */
+ (void *) 0, /* was_sq_slice */
#else
(ssizessizeargfunc) 0, /* sq_slice */
#endif
(ssizeobjargproc) 0, /* sq_ass_item */
#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* was_sq_ass_slice */
+ (void *) 0, /* was_sq_ass_slice */
#else
(ssizessizeobjargproc) 0, /* sq_ass_slice */
#endif
@@ -30756,213 +32570,25 @@ static PyHeapTypeObject SwigPyBuiltin__stack_st_OPENSSL_BLOCK_type = {
(releasebufferproc) 0, /* bf_releasebuffer */
#endif
},
- (PyObject*) 0, /* ht_name */
- (PyObject*) 0, /* ht_slots */
-};
-
-SWIGINTERN SwigPyClientData SwigPyBuiltin__stack_st_OPENSSL_BLOCK_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__stack_st_OPENSSL_BLOCK_type};
-
-SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_BIO_PYFD_CTX)
-static SwigPyGetSet BIO_PYFD_CTX_fd_getset = { _wrap_BIO_PYFD_CTX_fd_get, _wrap_BIO_PYFD_CTX_fd_set };
-SWIGINTERN PyGetSetDef SwigPyBuiltin__pyfd_struct_getset[] = {
- { (char*) "fd", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char*)"pyfd_struct.fd", (void*) &BIO_PYFD_CTX_fd_getset }
-,
- {NULL, NULL, NULL, NULL, NULL} /* Sentinel */
-};
-
-SWIGINTERN PyObject *
-SwigPyBuiltin__pyfd_struct_richcompare(PyObject *self, PyObject *other, int op) {
- PyObject *result = NULL;
- PyObject *tuple = PyTuple_New(1);
- assert(tuple);
- PyTuple_SET_ITEM(tuple, 0, other);
- Py_XINCREF(other);
- if (!result) {
- if (SwigPyObject_Check(self) && SwigPyObject_Check(other)) {
- result = SwigPyObject_richcompare((SwigPyObject *)self, (SwigPyObject *)other, op);
- } else {
- result = Py_NotImplemented;
- Py_INCREF(result);
- }
- }
- Py_DECREF(tuple);
- return result;
-}
-
-SWIGINTERN PyMethodDef SwigPyBuiltin__pyfd_struct_methods[] = {
- { NULL, NULL, 0, NULL } /* Sentinel */
-};
-
-static PyHeapTypeObject SwigPyBuiltin__pyfd_struct_type = {
- {
-#if PY_VERSION_HEX >= 0x03000000
- PyVarObject_HEAD_INIT(NULL, 0)
-#else
- PyObject_HEAD_INIT(NULL)
- 0, /* ob_size */
-#endif
- "BIO_PYFD_CTX", /* tp_name */
- sizeof(SwigPyObject), /* tp_basicsize */
- 0, /* tp_itemsize */
- (destructor) _wrap_delete_BIO_PYFD_CTX_closure, /* tp_dealloc */
- (printfunc) 0, /* tp_print */
- (getattrfunc) 0, /* tp_getattr */
- (setattrfunc) 0, /* tp_setattr */
-#if PY_VERSION_HEX >= 0x03000000
- 0, /* tp_compare */
-#else
- (cmpfunc) 0, /* tp_compare */
-#endif
- (reprfunc) 0, /* tp_repr */
- &SwigPyBuiltin__pyfd_struct_type.as_number, /* tp_as_number */
- &SwigPyBuiltin__pyfd_struct_type.as_sequence, /* tp_as_sequence */
- &SwigPyBuiltin__pyfd_struct_type.as_mapping, /* tp_as_mapping */
- (hashfunc) 0, /* tp_hash */
- (ternaryfunc) 0, /* tp_call */
- (reprfunc) 0, /* tp_str */
- (getattrofunc) 0, /* tp_getattro */
- (setattrofunc) 0, /* tp_setattro */
- &SwigPyBuiltin__pyfd_struct_type.as_buffer, /* tp_as_buffer */
-#if PY_VERSION_HEX >= 0x03000000
- Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
-#else
- Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_CHECKTYPES, /* tp_flags */
+ (PyObject *) 0, /* ht_name */
+ (PyObject *) 0, /* ht_slots */
+#if PY_VERSION_HEX >= 0x03030000
+ (PyObject *) 0, /* ht_qualname */
+ 0, /* ht_cached_keys */
#endif
- "::pyfd_struct", /* tp_doc */
- (traverseproc) 0, /* tp_traverse */
- (inquiry) 0, /* tp_clear */
- (richcmpfunc) SwigPyBuiltin__pyfd_struct_richcompare, /* feature:python:tp_richcompare */
- 0, /* tp_weaklistoffset */
- (getiterfunc) 0, /* tp_iter */
- (iternextfunc) 0, /* tp_iternext */
- SwigPyBuiltin__pyfd_struct_methods, /* tp_methods */
- 0, /* tp_members */
- SwigPyBuiltin__pyfd_struct_getset, /* tp_getset */
- 0, /* tp_base */
- 0, /* tp_dict */
- (descrgetfunc) 0, /* tp_descr_get */
- (descrsetfunc) 0, /* tp_descr_set */
- (size_t)(((char*)&((SwigPyObject *) 64L)->dict) - (char*) 64L), /* tp_dictoffset */
- (initproc) _wrap_new_BIO_PYFD_CTX, /* tp_init */
- (allocfunc) 0, /* tp_alloc */
- (newfunc) 0, /* tp_new */
- (freefunc) 0, /* tp_free */
- (inquiry) 0, /* tp_is_gc */
- (PyObject*) 0, /* tp_bases */
- (PyObject*) 0, /* tp_mro */
- (PyObject*) 0, /* tp_cache */
- (PyObject*) 0, /* tp_subclasses */
- (PyObject*) 0, /* tp_weaklist */
- (destructor) 0, /* tp_del */
-#if PY_VERSION_HEX >= 0x02060000
- (int) 0, /* tp_version_tag */
-#endif
- },
- {
- (binaryfunc) 0, /* nb_add */
- (binaryfunc) 0, /* nb_subtract */
- (binaryfunc) 0, /* nb_multiply */
-#if PY_VERSION_HEX < 0x03000000
- (binaryfunc) 0, /* nb_divide */
-#endif
- (binaryfunc) 0, /* nb_remainder */
- (binaryfunc) 0, /* nb_divmod */
- (ternaryfunc) 0, /* nb_power */
- (unaryfunc) 0, /* nb_negative */
- (unaryfunc) 0, /* nb_positive */
- (unaryfunc) 0, /* nb_absolute */
- (inquiry) 0, /* nb_nonzero */
- (unaryfunc) 0, /* nb_invert */
- (binaryfunc) 0, /* nb_lshift */
- (binaryfunc) 0, /* nb_rshift */
- (binaryfunc) 0, /* nb_and */
- (binaryfunc) 0, /* nb_xor */
- (binaryfunc) 0, /* nb_or */
-#if PY_VERSION_HEX < 0x03000000
- (coercion) 0, /* nb_coerce */
-#endif
- (unaryfunc) 0, /* nb_int */
-#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* nb_reserved */
-#else
- (unaryfunc) 0, /* nb_long */
-#endif
- (unaryfunc) 0, /* nb_float */
-#if PY_VERSION_HEX < 0x03000000
- (unaryfunc) 0, /* nb_oct */
- (unaryfunc) 0, /* nb_hex */
-#endif
- (binaryfunc) 0, /* nb_inplace_add */
- (binaryfunc) 0, /* nb_inplace_subtract */
- (binaryfunc) 0, /* nb_inplace_multiply */
-#if PY_VERSION_HEX < 0x03000000
- (binaryfunc) 0, /* nb_inplace_divide */
-#endif
- (binaryfunc) 0, /* nb_inplace_remainder */
- (ternaryfunc) 0, /* nb_inplace_power */
- (binaryfunc) 0, /* nb_inplace_lshift */
- (binaryfunc) 0, /* nb_inplace_rshift */
- (binaryfunc) 0, /* nb_inplace_and */
- (binaryfunc) 0, /* nb_inplace_xor */
- (binaryfunc) 0, /* nb_inplace_or */
- (binaryfunc) 0, /* nb_floor_divide */
- (binaryfunc) 0, /* nb_true_divide */
- (binaryfunc) 0, /* nb_inplace_floor_divide */
- (binaryfunc) 0, /* nb_inplace_true_divide */
-#if PY_VERSION_HEX >= 0x02050000
- (unaryfunc) 0, /* nb_index */
-#endif
- },
- {
- (lenfunc) 0, /* mp_length */
- (binaryfunc) 0, /* mp_subscript */
- (objobjargproc) 0, /* mp_ass_subscript */
- },
- {
- (lenfunc) 0, /* sq_length */
- (binaryfunc) 0, /* sq_concat */
- (ssizeargfunc) 0, /* sq_repeat */
- (ssizeargfunc) 0, /* sq_item */
-#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* was_sq_slice */
-#else
- (ssizessizeargfunc) 0, /* sq_slice */
-#endif
- (ssizeobjargproc) 0, /* sq_ass_item */
-#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* was_sq_ass_slice */
-#else
- (ssizessizeobjargproc) 0, /* sq_ass_slice */
-#endif
- (objobjproc) 0, /* sq_contains */
- (binaryfunc) 0, /* sq_inplace_concat */
- (ssizeargfunc) 0, /* sq_inplace_repeat */
- },
- {
-#if PY_VERSION_HEX < 0x03000000
- (readbufferproc) 0, /* bf_getreadbuffer */
- (writebufferproc) 0, /* bf_getwritebuffer */
- (segcountproc) 0, /* bf_getsegcount */
- (charbufferproc) 0, /* bf_getcharbuffer */
-#endif
-#if PY_VERSION_HEX >= 0x02060000
- (getbufferproc) 0, /* bf_getbuffer */
- (releasebufferproc) 0, /* bf_releasebuffer */
-#endif
- },
- (PyObject*) 0, /* ht_name */
- (PyObject*) 0, /* ht_slots */
};
SWIGINTERN SwigPyClientData SwigPyBuiltin__pyfd_struct_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin__pyfd_struct_type};
-SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete__cbd_t)
+static SwigPyGetSet _cbd_t___dict___getset = { SwigPyObject_get___dict__, 0 };
static SwigPyGetSet _cbd_t_password_getset = { _wrap__cbd_t_password_get, _wrap__cbd_t_password_set };
static SwigPyGetSet _cbd_t_prompt_getset = { _wrap__cbd_t_prompt_get, _wrap__cbd_t_prompt_set };
SWIGINTERN PyGetSetDef SwigPyBuiltin___cbd_t_getset[] = {
- { (char*) "password", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char*)"_cbd_t.password", (void*) &_cbd_t_password_getset }
+ { (char *) "__dict__", (getter) SwigPyBuiltin_GetterClosure, (setter) 0, (char *)"_cbd_t.__dict__", (void *) &_cbd_t___dict___getset }
,
- { (char*) "prompt", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char*)"_cbd_t.prompt", (void*) &_cbd_t_prompt_getset }
+ { (char *) "password", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char *)"_cbd_t.password", (void *) &_cbd_t_password_getset }
+,
+ { (char *) "prompt", (getter) SwigPyBuiltin_GetterClosure, (setter) SwigPyBuiltin_SetterClosure, (char *)"_cbd_t.prompt", (void *) &_cbd_t_prompt_getset }
,
{NULL, NULL, NULL, NULL, NULL} /* Sentinel */
};
@@ -30998,10 +32624,10 @@ static PyHeapTypeObject SwigPyBuiltin___cbd_t_type = {
PyObject_HEAD_INIT(NULL)
0, /* ob_size */
#endif
- "_cbd_t", /* tp_name */
+ "m2crypto._cbd_t", /* tp_name */
sizeof(SwigPyObject), /* tp_basicsize */
0, /* tp_itemsize */
- (destructor) _wrap_delete__cbd_t_closure, /* tp_dealloc */
+ (destructor) (destructor) _wrap_delete__cbd_t_destructor_closure,/* tp_dealloc */
(printfunc) 0, /* tp_print */
(getattrfunc) 0, /* tp_getattr */
(setattrfunc) 0, /* tp_setattr */
@@ -31011,15 +32637,15 @@ static PyHeapTypeObject SwigPyBuiltin___cbd_t_type = {
(cmpfunc) 0, /* tp_compare */
#endif
(reprfunc) 0, /* tp_repr */
- &SwigPyBuiltin___cbd_t_type.as_number, /* tp_as_number */
- &SwigPyBuiltin___cbd_t_type.as_sequence, /* tp_as_sequence */
- &SwigPyBuiltin___cbd_t_type.as_mapping, /* tp_as_mapping */
- (hashfunc) 0, /* tp_hash */
+ &SwigPyBuiltin___cbd_t_type.as_number, /* tp_as_number */
+ &SwigPyBuiltin___cbd_t_type.as_sequence, /* tp_as_sequence */
+ &SwigPyBuiltin___cbd_t_type.as_mapping, /* tp_as_mapping */
+ (hashfunc) SwigPyObject_hash, /* tp_hash */
(ternaryfunc) 0, /* tp_call */
(reprfunc) 0, /* tp_str */
(getattrofunc) 0, /* tp_getattro */
(setattrofunc) 0, /* tp_setattro */
- &SwigPyBuiltin___cbd_t_type.as_buffer, /* tp_as_buffer */
+ &SwigPyBuiltin___cbd_t_type.as_buffer, /* tp_as_buffer */
#if PY_VERSION_HEX >= 0x03000000
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */
#else
@@ -31028,7 +32654,7 @@ static PyHeapTypeObject SwigPyBuiltin___cbd_t_type = {
"::_cbd_t", /* tp_doc */
(traverseproc) 0, /* tp_traverse */
(inquiry) 0, /* tp_clear */
- (richcmpfunc) SwigPyBuiltin___cbd_t_richcompare, /* feature:python:tp_richcompare */
+ (richcmpfunc) SwigPyBuiltin___cbd_t_richcompare, /* tp_richcompare */
0, /* tp_weaklistoffset */
(getiterfunc) 0, /* tp_iter */
(iternextfunc) 0, /* tp_iternext */
@@ -31039,22 +32665,41 @@ static PyHeapTypeObject SwigPyBuiltin___cbd_t_type = {
0, /* tp_dict */
(descrgetfunc) 0, /* tp_descr_get */
(descrsetfunc) 0, /* tp_descr_set */
- (size_t)(((char*)&((SwigPyObject *) 64L)->dict) - (char*) 64L), /* tp_dictoffset */
+ (Py_ssize_t) offsetof(SwigPyObject, dict),/* tp_dictoffset */
(initproc) _wrap_new__cbd_t, /* tp_init */
(allocfunc) 0, /* tp_alloc */
(newfunc) 0, /* tp_new */
(freefunc) 0, /* tp_free */
(inquiry) 0, /* tp_is_gc */
- (PyObject*) 0, /* tp_bases */
- (PyObject*) 0, /* tp_mro */
- (PyObject*) 0, /* tp_cache */
- (PyObject*) 0, /* tp_subclasses */
- (PyObject*) 0, /* tp_weaklist */
+ (PyObject *) 0, /* tp_bases */
+ (PyObject *) 0, /* tp_mro */
+ (PyObject *) 0, /* tp_cache */
+ (PyObject *) 0, /* tp_subclasses */
+ (PyObject *) 0, /* tp_weaklist */
(destructor) 0, /* tp_del */
#if PY_VERSION_HEX >= 0x02060000
(int) 0, /* tp_version_tag */
#endif
+#if PY_VERSION_HEX >= 0x03040000
+ (destructor) 0, /* tp_finalize */
+#endif
+#ifdef COUNT_ALLOCS
+ (Py_ssize_t) 0, /* tp_allocs */
+ (Py_ssize_t) 0, /* tp_frees */
+ (Py_ssize_t) 0, /* tp_maxalloc */
+#if PY_VERSION_HEX >= 0x02050000
+ 0, /* tp_prev */
+#endif
+ 0, /* tp_next */
+#endif
+ },
+#if PY_VERSION_HEX >= 0x03050000
+ {
+ (unaryfunc) 0, /* am_await */
+ (unaryfunc) 0, /* am_aiter */
+ (unaryfunc) 0, /* am_anext */
},
+#endif
{
(binaryfunc) 0, /* nb_add */
(binaryfunc) 0, /* nb_subtract */
@@ -31080,7 +32725,7 @@ static PyHeapTypeObject SwigPyBuiltin___cbd_t_type = {
#endif
(unaryfunc) 0, /* nb_int */
#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* nb_reserved */
+ (void *) 0, /* nb_reserved */
#else
(unaryfunc) 0, /* nb_long */
#endif
@@ -31109,6 +32754,10 @@ static PyHeapTypeObject SwigPyBuiltin___cbd_t_type = {
#if PY_VERSION_HEX >= 0x02050000
(unaryfunc) 0, /* nb_index */
#endif
+#if PY_VERSION_HEX >= 0x03050000
+ (binaryfunc) 0, /* nb_matrix_multiply */
+ (binaryfunc) 0, /* nb_inplace_matrix_multiply */
+#endif
},
{
(lenfunc) 0, /* mp_length */
@@ -31121,13 +32770,13 @@ static PyHeapTypeObject SwigPyBuiltin___cbd_t_type = {
(ssizeargfunc) 0, /* sq_repeat */
(ssizeargfunc) 0, /* sq_item */
#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* was_sq_slice */
+ (void *) 0, /* was_sq_slice */
#else
(ssizessizeargfunc) 0, /* sq_slice */
#endif
(ssizeobjargproc) 0, /* sq_ass_item */
#if PY_VERSION_HEX >= 0x03000000
- (void*) 0, /* was_sq_ass_slice */
+ (void *) 0, /* was_sq_ass_slice */
#else
(ssizessizeobjargproc) 0, /* sq_ass_slice */
#endif
@@ -31147,8 +32796,12 @@ static PyHeapTypeObject SwigPyBuiltin___cbd_t_type = {
(releasebufferproc) 0, /* bf_releasebuffer */
#endif
},
- (PyObject*) 0, /* ht_name */
- (PyObject*) 0, /* ht_slots */
+ (PyObject *) 0, /* ht_name */
+ (PyObject *) 0, /* ht_slots */
+#if PY_VERSION_HEX >= 0x03030000
+ (PyObject *) 0, /* ht_qualname */
+ 0, /* ht_cached_keys */
+#endif
};
SWIGINTERN SwigPyClientData SwigPyBuiltin___cbd_t_clientdata = {0, 0, 0, 0, 0, 0, (PyTypeObject *)&SwigPyBuiltin___cbd_t_type};
@@ -31197,20 +32850,42 @@ static swig_type_info _swigt__p_X509_NAME_ENTRY = {"_p_X509_NAME_ENTRY", "X509_N
static swig_type_info _swigt__p_X509_REQ = {"_p_X509_REQ", "X509_REQ *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_X509_STORE = {"_p_X509_STORE", "X509_STORE *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_X509_STORE_CTX = {"_p_X509_STORE_CTX", "X509_STORE_CTX *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___INTMAX_TYPE__ = {"_p___INTMAX_TYPE__", "__INTMAX_TYPE__ *|intmax_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___INT_FAST16_TYPE__ = {"_p___INT_FAST16_TYPE__", "__INT_FAST16_TYPE__ *|int_fast16_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___INT_FAST32_TYPE__ = {"_p___INT_FAST32_TYPE__", "__INT_FAST32_TYPE__ *|int_fast32_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___INT_FAST64_TYPE__ = {"_p___INT_FAST64_TYPE__", "__INT_FAST64_TYPE__ *|int_fast64_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___INT_FAST8_TYPE__ = {"_p___INT_FAST8_TYPE__", "__INT_FAST8_TYPE__ *|int_fast8_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___INT_LEAST16_TYPE__ = {"_p___INT_LEAST16_TYPE__", "__INT_LEAST16_TYPE__ *|int_least16_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___INT_LEAST32_TYPE__ = {"_p___INT_LEAST32_TYPE__", "__INT_LEAST32_TYPE__ *|int_least32_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___INT_LEAST64_TYPE__ = {"_p___INT_LEAST64_TYPE__", "__INT_LEAST64_TYPE__ *|int_least64_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___INT_LEAST8_TYPE__ = {"_p___INT_LEAST8_TYPE__", "__INT_LEAST8_TYPE__ *|int_least8_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___UINTMAX_TYPE__ = {"_p___UINTMAX_TYPE__", "__UINTMAX_TYPE__ *|uintmax_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___UINT_FAST16_TYPE__ = {"_p___UINT_FAST16_TYPE__", "__UINT_FAST16_TYPE__ *|uint_fast16_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___UINT_FAST32_TYPE__ = {"_p___UINT_FAST32_TYPE__", "__UINT_FAST32_TYPE__ *|uint_fast32_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___UINT_FAST64_TYPE__ = {"_p___UINT_FAST64_TYPE__", "__UINT_FAST64_TYPE__ *|uint_fast64_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___UINT_FAST8_TYPE__ = {"_p___UINT_FAST8_TYPE__", "__UINT_FAST8_TYPE__ *|uint_fast8_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___UINT_LEAST16_TYPE__ = {"_p___UINT_LEAST16_TYPE__", "__UINT_LEAST16_TYPE__ *|uint_least16_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___UINT_LEAST32_TYPE__ = {"_p___UINT_LEAST32_TYPE__", "__UINT_LEAST32_TYPE__ *|uint_least32_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___UINT_LEAST64_TYPE__ = {"_p___UINT_LEAST64_TYPE__", "__UINT_LEAST64_TYPE__ *|uint_least64_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p___UINT_LEAST8_TYPE__ = {"_p___UINT_LEAST8_TYPE__", "__UINT_LEAST8_TYPE__ *|uint_least8_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p__cbd_t = {"_p__cbd_t", "_cbd_t *", 0, 0, (void*)&SwigPyBuiltin___cbd_t_clientdata, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_int_p_X509_STORE_CTX__int = {"_p_f_int_p_X509_STORE_CTX__int", "int (*)(int,X509_STORE_CTX *)", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_f_p_q_const__void_p_q_const__void__int = {"_p_f_p_q_const__void_p_q_const__void__int", "int (*)(void const *,void const *)", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_f_p_void__p_void = {"_p_f_p_void__p_void", "void *(*)(void *)", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_f_p_char__void = {"_p_f_p_char__void", "void (*)(char *)|sk_OPENSSL_STRING_freefunc|sk_OPENSSL_CSTRING_freefunc", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_f_p_q_const__char__p_char = {"_p_f_p_q_const__char__p_char", "char *(*)(char const *)|sk_OPENSSL_STRING_copyfunc|sk_OPENSSL_CSTRING_copyfunc", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int = {"_p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int", "int (*)(char const *const *,char const *const *)|sk_OPENSSL_STRING_compfunc|sk_OPENSSL_CSTRING_compfunc", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int = {"_p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int", "int (*)(void const *const *,void const *const *)|sk_OPENSSL_BLOCK_compfunc", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_f_p_q_const__void__p_void = {"_p_f_p_q_const__void__p_void", "void *(*)(void const *)|OPENSSL_sk_copyfunc|sk_OPENSSL_BLOCK_copyfunc", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_f_p_q_const__void_p_q_const__void__int = {"_p_f_p_q_const__void_p_q_const__void__int", "int (*)(void const *,void const *)|OPENSSL_sk_compfunc", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "OPENSSL_sk_freefunc|sk_OPENSSL_BLOCK_freefunc|void (*)(void *)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_ASN1_OBJECT = {"_p_p_ASN1_OBJECT", "ASN1_OBJECT **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_X509_NAME_ENTRY = {"_p_p_X509_NAME_ENTRY", "X509_NAME_ENTRY **", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_unsigned_char = {"_p_p_unsigned_char", "unsigned char **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pyfd_struct = {"_p_pyfd_struct", "BIO_PYFD_CTX *|struct pyfd_struct *|pyfd_struct *", 0, 0, (void*)&SwigPyBuiltin__pyfd_struct_clientdata, 0};
-static swig_type_info _swigt__p_stack_st = {"_p_stack_st", "struct stack_st *|stack_st *|_STACK *", 0, 0, (void*)&SwigPyBuiltin__stack_st_clientdata, 0};
-static swig_type_info _swigt__p_stack_st_OPENSSL_BLOCK = {"_p_stack_st_OPENSSL_BLOCK", "struct stack_st_OPENSSL_BLOCK *|stack_st_OPENSSL_BLOCK *", 0, 0, (void*)&SwigPyBuiltin__stack_st_OPENSSL_BLOCK_clientdata, 0};
-static swig_type_info _swigt__p_stack_st_OPENSSL_STRING = {"_p_stack_st_OPENSSL_STRING", "struct stack_st_OPENSSL_STRING *|stack_st_OPENSSL_STRING *", 0, 0, (void*)&SwigPyBuiltin__stack_st_OPENSSL_STRING_clientdata, 0};
+static swig_type_info _swigt__p_stack_st = {"_p_stack_st", "struct stack_st *|OPENSSL_STACK *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_stack_st_OPENSSL_BLOCK = {"_p_stack_st_OPENSSL_BLOCK", "struct stack_st_OPENSSL_BLOCK *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_stack_st_OPENSSL_CSTRING = {"_p_stack_st_OPENSSL_CSTRING", "struct stack_st_OPENSSL_CSTRING *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_stack_st_OPENSSL_STRING = {"_p_stack_st_OPENSSL_STRING", "struct stack_st_OPENSSL_STRING *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_stack_st_SSL_CIPHER = {"_p_stack_st_SSL_CIPHER", "struct stack_st_SSL_CIPHER *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_stack_st_X509 = {"_p_stack_st_X509", "struct stack_st_X509 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_stack_st_X509_EXTENSION = {"_p_stack_st_X509_EXTENSION", "struct stack_st_X509_EXTENSION *", 0, 0, (void*)0, 0};
@@ -31259,19 +32934,41 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_X509_REQ,
&_swigt__p_X509_STORE,
&_swigt__p_X509_STORE_CTX,
+ &_swigt__p___INTMAX_TYPE__,
+ &_swigt__p___INT_FAST16_TYPE__,
+ &_swigt__p___INT_FAST32_TYPE__,
+ &_swigt__p___INT_FAST64_TYPE__,
+ &_swigt__p___INT_FAST8_TYPE__,
+ &_swigt__p___INT_LEAST16_TYPE__,
+ &_swigt__p___INT_LEAST32_TYPE__,
+ &_swigt__p___INT_LEAST64_TYPE__,
+ &_swigt__p___INT_LEAST8_TYPE__,
+ &_swigt__p___UINTMAX_TYPE__,
+ &_swigt__p___UINT_FAST16_TYPE__,
+ &_swigt__p___UINT_FAST32_TYPE__,
+ &_swigt__p___UINT_FAST64_TYPE__,
+ &_swigt__p___UINT_FAST8_TYPE__,
+ &_swigt__p___UINT_LEAST16_TYPE__,
+ &_swigt__p___UINT_LEAST32_TYPE__,
+ &_swigt__p___UINT_LEAST64_TYPE__,
+ &_swigt__p___UINT_LEAST8_TYPE__,
&_swigt__p__cbd_t,
&_swigt__p_char,
&_swigt__p_f_int_p_X509_STORE_CTX__int,
+ &_swigt__p_f_p_char__void,
+ &_swigt__p_f_p_q_const__char__p_char,
+ &_swigt__p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int,
+ &_swigt__p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int,
+ &_swigt__p_f_p_q_const__void__p_void,
&_swigt__p_f_p_q_const__void_p_q_const__void__int,
- &_swigt__p_f_p_void__p_void,
&_swigt__p_f_p_void__void,
&_swigt__p_p_ASN1_OBJECT,
&_swigt__p_p_X509_NAME_ENTRY,
- &_swigt__p_p_char,
&_swigt__p_p_unsigned_char,
&_swigt__p_pyfd_struct,
&_swigt__p_stack_st,
&_swigt__p_stack_st_OPENSSL_BLOCK,
+ &_swigt__p_stack_st_OPENSSL_CSTRING,
&_swigt__p_stack_st_OPENSSL_STRING,
&_swigt__p_stack_st_SSL_CIPHER,
&_swigt__p_stack_st_X509,
@@ -31321,19 +33018,41 @@ static swig_cast_info _swigc__p_X509_NAME_ENTRY[] = { {&_swigt__p_X509_NAME_ENT
static swig_cast_info _swigc__p_X509_REQ[] = { {&_swigt__p_X509_REQ, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_X509_STORE[] = { {&_swigt__p_X509_STORE, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_X509_STORE_CTX[] = { {&_swigt__p_X509_STORE_CTX, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___INTMAX_TYPE__[] = { {&_swigt__p___INTMAX_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___INT_FAST16_TYPE__[] = { {&_swigt__p___INT_FAST16_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___INT_FAST32_TYPE__[] = { {&_swigt__p___INT_FAST32_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___INT_FAST64_TYPE__[] = { {&_swigt__p___INT_FAST64_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___INT_FAST8_TYPE__[] = { {&_swigt__p___INT_FAST8_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___INT_LEAST16_TYPE__[] = { {&_swigt__p___INT_LEAST16_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___INT_LEAST32_TYPE__[] = { {&_swigt__p___INT_LEAST32_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___INT_LEAST64_TYPE__[] = { {&_swigt__p___INT_LEAST64_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___INT_LEAST8_TYPE__[] = { {&_swigt__p___INT_LEAST8_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___UINTMAX_TYPE__[] = { {&_swigt__p___UINTMAX_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___UINT_FAST16_TYPE__[] = { {&_swigt__p___UINT_FAST16_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___UINT_FAST32_TYPE__[] = { {&_swigt__p___UINT_FAST32_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___UINT_FAST64_TYPE__[] = { {&_swigt__p___UINT_FAST64_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___UINT_FAST8_TYPE__[] = { {&_swigt__p___UINT_FAST8_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___UINT_LEAST16_TYPE__[] = { {&_swigt__p___UINT_LEAST16_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___UINT_LEAST32_TYPE__[] = { {&_swigt__p___UINT_LEAST32_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___UINT_LEAST64_TYPE__[] = { {&_swigt__p___UINT_LEAST64_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p___UINT_LEAST8_TYPE__[] = { {&_swigt__p___UINT_LEAST8_TYPE__, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p__cbd_t[] = { {&_swigt__p__cbd_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_int_p_X509_STORE_CTX__int[] = { {&_swigt__p_f_int_p_X509_STORE_CTX__int, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_f_p_char__void[] = { {&_swigt__p_f_p_char__void, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_f_p_q_const__char__p_char[] = { {&_swigt__p_f_p_q_const__char__p_char, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int[] = { {&_swigt__p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int[] = { {&_swigt__p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_f_p_q_const__void__p_void[] = { {&_swigt__p_f_p_q_const__void__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_q_const__void_p_q_const__void__int[] = { {&_swigt__p_f_p_q_const__void_p_q_const__void__int, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_f_p_void__p_void[] = { {&_swigt__p_f_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_ASN1_OBJECT[] = { {&_swigt__p_p_ASN1_OBJECT, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_X509_NAME_ENTRY[] = { {&_swigt__p_p_X509_NAME_ENTRY, 0, 0, 0},{0, 0, 0, 0}};
-static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_unsigned_char[] = { {&_swigt__p_p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_pyfd_struct[] = { {&_swigt__p_pyfd_struct, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_stack_st[] = { {&_swigt__p_stack_st, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_stack_st_OPENSSL_BLOCK[] = { {&_swigt__p_stack_st_OPENSSL_BLOCK, 0, 0, 0},{0, 0, 0, 0}};
+static swig_cast_info _swigc__p_stack_st_OPENSSL_CSTRING[] = { {&_swigt__p_stack_st_OPENSSL_CSTRING, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_stack_st_OPENSSL_STRING[] = { {&_swigt__p_stack_st_OPENSSL_STRING, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_stack_st_SSL_CIPHER[] = { {&_swigt__p_stack_st_SSL_CIPHER, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_stack_st_X509[] = { {&_swigt__p_stack_st_X509, 0, 0, 0},{0, 0, 0, 0}};
@@ -31383,19 +33102,41 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_X509_REQ,
_swigc__p_X509_STORE,
_swigc__p_X509_STORE_CTX,
+ _swigc__p___INTMAX_TYPE__,
+ _swigc__p___INT_FAST16_TYPE__,
+ _swigc__p___INT_FAST32_TYPE__,
+ _swigc__p___INT_FAST64_TYPE__,
+ _swigc__p___INT_FAST8_TYPE__,
+ _swigc__p___INT_LEAST16_TYPE__,
+ _swigc__p___INT_LEAST32_TYPE__,
+ _swigc__p___INT_LEAST64_TYPE__,
+ _swigc__p___INT_LEAST8_TYPE__,
+ _swigc__p___UINTMAX_TYPE__,
+ _swigc__p___UINT_FAST16_TYPE__,
+ _swigc__p___UINT_FAST32_TYPE__,
+ _swigc__p___UINT_FAST64_TYPE__,
+ _swigc__p___UINT_FAST8_TYPE__,
+ _swigc__p___UINT_LEAST16_TYPE__,
+ _swigc__p___UINT_LEAST32_TYPE__,
+ _swigc__p___UINT_LEAST64_TYPE__,
+ _swigc__p___UINT_LEAST8_TYPE__,
_swigc__p__cbd_t,
_swigc__p_char,
_swigc__p_f_int_p_X509_STORE_CTX__int,
+ _swigc__p_f_p_char__void,
+ _swigc__p_f_p_q_const__char__p_char,
+ _swigc__p_f_p_q_const__p_q_const__char_p_q_const__p_q_const__char__int,
+ _swigc__p_f_p_q_const__p_q_const__void_p_q_const__p_q_const__void__int,
+ _swigc__p_f_p_q_const__void__p_void,
_swigc__p_f_p_q_const__void_p_q_const__void__int,
- _swigc__p_f_p_void__p_void,
_swigc__p_f_p_void__void,
_swigc__p_p_ASN1_OBJECT,
_swigc__p_p_X509_NAME_ENTRY,
- _swigc__p_p_char,
_swigc__p_p_unsigned_char,
_swigc__p_pyfd_struct,
_swigc__p_stack_st,
_swigc__p_stack_st_OPENSSL_BLOCK,
+ _swigc__p_stack_st_OPENSSL_CSTRING,
_swigc__p_stack_st_OPENSSL_STRING,
_swigc__p_stack_st_SSL_CIPHER,
_swigc__p_stack_st_X509,
@@ -31417,18 +33158,18 @@ static PyTypeObject *builtin_bases[2];
/* -----------------------------------------------------------------------------
* Type initialization:
- * This problem is tough by the requirement that no dynamic
- * memory is used. Also, since swig_type_info structures store pointers to
+ * This problem is tough by the requirement that no dynamic
+ * memory is used. Also, since swig_type_info structures store pointers to
* swig_cast_info structures and swig_cast_info structures store pointers back
- * to swig_type_info structures, we need some lookup code at initialization.
- * The idea is that swig generates all the structures that are needed.
- * The runtime then collects these partially filled structures.
- * The SWIG_InitializeModule function takes these initial arrays out of
+ * to swig_type_info structures, we need some lookup code at initialization.
+ * The idea is that swig generates all the structures that are needed.
+ * The runtime then collects these partially filled structures.
+ * The SWIG_InitializeModule function takes these initial arrays out of
* swig_module, and does all the lookup, filling in the swig_module.types
* array with the correct data and linking the correct swig_cast_info
* structures together.
*
- * The generated swig_type_info structures are assigned staticly to an initial
+ * The generated swig_type_info structures are assigned statically to an initial
* array. We just loop through that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
* loaded structure instead of the generated one. Then we have to fill in the
@@ -31438,17 +33179,17 @@ static PyTypeObject *builtin_bases[2];
* a column is one of the swig_cast_info structures for that type.
* The cast_initial array is actually an array of arrays, because each row has
* a variable number of columns. So to actually build the cast linked list,
- * we find the array of casts associated with the type, and loop through it
+ * we find the array of casts associated with the type, and loop through it
* adding the casts to the list. The one last trick we need to do is making
* sure the type pointer in the swig_cast_info struct is correct.
*
- * First off, we lookup the cast->type name to see if it is already loaded.
+ * First off, we lookup the cast->type name to see if it is already loaded.
* There are three cases to handle:
* 1) If the cast->type has already been loaded AND the type we are adding
* casting info to has not been loaded (it is in this module), THEN we
* replace the cast->type pointer with the type pointer that has already
* been loaded.
- * 2) If BOTH types (the one we are adding casting info to, and the
+ * 2) If BOTH types (the one we are adding casting info to, and the
* cast->type) are loaded, THEN the cast info has already been loaded by
* the previous module so we just ignore it.
* 3) Finally, if cast->type has not already been loaded, then we add that
@@ -31472,7 +33213,7 @@ SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) {
size_t i;
swig_module_info *module_head, *iter;
- int found, init;
+ int init;
/* check to see if the circular list has been setup, if not, set it up */
if (swig_module.next==0) {
@@ -31491,27 +33232,23 @@ SWIG_InitializeModule(void *clientdata) {
/* This is the first module loaded for this interpreter */
/* so set the swig module into the interpreter */
SWIG_SetModule(clientdata, &swig_module);
- module_head = &swig_module;
} else {
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
- found=0;
iter=module_head;
do {
if (iter==&swig_module) {
- found=1;
- break;
+ /* Our module is already in the list, so there's nothing more to do. */
+ return;
}
iter=iter->next;
} while (iter!= module_head);
- /* if the is found in the list, then all is done and we may leave */
- if (found) return;
- /* otherwise we must add out module into the list */
+ /* otherwise we must add our module into the list */
swig_module.next = module_head->next;
module_head->next = &swig_module;
}
- /* When multiple interpeters are used, a module could have already been initialized in
+ /* When multiple interpreters are used, a module could have already been initialized in
a different interpreter, but not yet have a pointer in this interpreter.
In this case, we do not want to continue adding types... everything should be
set up already */
@@ -31758,7 +33495,7 @@ extern "C" {
var = var->next;
}
if (res == NULL && !PyErr_Occurred()) {
- PyErr_SetString(PyExc_NameError,"Unknown C global variable");
+ PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
}
return res;
}
@@ -31775,7 +33512,7 @@ extern "C" {
var = var->next;
}
if (res == 1 && !PyErr_Occurred()) {
- PyErr_SetString(PyExc_NameError,"Unknown C global variable");
+ PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
}
return res;
}
@@ -31787,7 +33524,6 @@ extern "C" {
static int type_init = 0;
if (!type_init) {
const PyTypeObject tmp = {
- /* PyObject header changed in Python 3 */
#if PY_VERSION_HEX >= 0x03000000
PyVarObject_HEAD_INIT(NULL, 0)
#else
@@ -31825,10 +33561,19 @@ extern "C" {
0, /* tp_del */
#endif
#if PY_VERSION_HEX >= 0x02060000
- 0, /* tp_version */
+ 0, /* tp_version_tag */
+#endif
+#if PY_VERSION_HEX >= 0x03040000
+ 0, /* tp_finalize */
#endif
#ifdef COUNT_ALLOCS
- 0,0,0,0 /* tp_alloc -> tp_next */
+ 0, /* tp_allocs */
+ 0, /* tp_frees */
+ 0, /* tp_maxalloc */
+#if PY_VERSION_HEX >= 0x02050000
+ 0, /* tp_prev */
+#endif
+ 0 /* tp_next */
#endif
};
varlink_type = tmp;
@@ -31917,7 +33662,9 @@ extern "C" {
size_t i;
for (i = 0; methods[i].ml_name; ++i) {
const char *c = methods[i].ml_doc;
- if (c && (c = strstr(c, "swig_ptr: "))) {
+ if (!c) continue;
+ c = strstr(c, "swig_ptr: ");
+ if (c) {
int j;
swig_const_info *ci = 0;
const char *name = c + 10;
@@ -31938,9 +33685,9 @@ extern "C" {
char *ndoc = (char*)malloc(ldoc + lptr + 10);
if (ndoc) {
char *buff = ndoc;
- strncpy(buff, methods[i].ml_doc, ldoc);
+ memcpy(buff, methods[i].ml_doc, ldoc);
buff += ldoc;
- strncpy(buff, "swig_ptr: ", 10);
+ memcpy(buff, "swig_ptr: ", 10);
buff += 10;
SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
methods[i].ml_doc = ndoc;
@@ -32008,17 +33755,18 @@ SWIG_init(void) {
static PyGetSetDef thisown_getset_def = {
(char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
};
- PyObject *metatype_args;
PyTypeObject *builtin_pytype;
int builtin_base_count;
swig_type_info *builtin_basetype;
PyObject *tuple;
PyGetSetDescrObject *static_getset;
PyTypeObject *metatype;
+ PyTypeObject *swigpyobject;
SwigPyClientData *cd;
PyObject *public_interface, *public_symbol;
PyObject *this_descr;
PyObject *thisown_descr;
+ PyObject *self = 0;
int i;
(void)builtin_pytype;
@@ -32026,15 +33774,11 @@ SWIG_init(void) {
(void)builtin_basetype;
(void)tuple;
(void)static_getset;
+ (void)self;
- /* metatype is used to implement static member variables. */
- metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
- assert(metatype_args);
- metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL);
+ /* Metaclass is used to implement static member variables */
+ metatype = SwigPyObjectType();
assert(metatype);
- Py_DECREF(metatype_args);
- metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
- assert(PyType_Ready(metatype) >= 0);
#endif
/* Fix SwigMethods to carry the callback ptrs when needed */
@@ -32045,19 +33789,22 @@ SWIG_init(void) {
#else
m = Py_InitModule((char *) SWIG_name, SwigMethods);
#endif
+
md = d = PyModule_GetDict(m);
(void)md;
SWIG_InitializeModule(0);
#ifdef SWIGPYTHON_BUILTIN
+ swigpyobject = SwigPyObject_TypeOnce();
+
SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
assert(SwigPyObject_stype);
cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
if (!cd) {
SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
- SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
- } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
+ SwigPyObject_clientdata.pytype = swigpyobject;
+ } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
# if PY_VERSION_HEX >= 0x03000000
return NULL;
@@ -32088,80 +33835,14 @@ SWIG_init(void) {
SWIG_InstallConstants(d,swig_const_table);
- SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_VERSION_NUMBER",SWIG_From_long((long)(0x100020bfL)));
- SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_VERSION_TEXT",SWIG_FromCharPtr("OpenSSL 1.0.2k 26 Jan 2017"));
- SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_VERSION_PTEXT",SWIG_FromCharPtr(" part of OpenSSL 1.0.2k 26 Jan 2017"));
+ SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_VERSION_NUMBER",SWIG_From_long((long)(0x1010104fL)));
+ SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_VERSION_TEXT",SWIG_FromCharPtr("OpenSSL 1.1.1d 10 Sep 2019"));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SHLIB_VERSION_HISTORY",SWIG_FromCharPtr(""));
- SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SHLIB_VERSION_NUMBER",SWIG_FromCharPtr("1.0.2k"));
-
- /* type '::stack_st' */
- builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__stack_st_type;
- builtin_pytype->tp_dict = d = PyDict_New();
- SwigPyBuiltin_SetMetaType(builtin_pytype, metatype);
- builtin_pytype->tp_new = PyType_GenericNew;
- builtin_base_count = 0;
- builtin_bases[builtin_base_count] = NULL;
- SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases);
- PyDict_SetItemString(d, "this", this_descr);
- PyDict_SetItemString(d, "thisown", thisown_descr);
- if (PyType_Ready(builtin_pytype) < 0) {
- PyErr_SetString(PyExc_TypeError, "Could not create type '_STACK'.");
-#if PY_VERSION_HEX >= 0x03000000
- return NULL;
-#else
- return;
-#endif
- }
- Py_INCREF(builtin_pytype);
- PyModule_AddObject(m, "_STACK", (PyObject*) builtin_pytype);
- SwigPyBuiltin_AddPublicSymbol(public_interface, "_STACK");
- d = md;
-
- /* type '::stack_st_OPENSSL_STRING' */
- builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__stack_st_OPENSSL_STRING_type;
- builtin_pytype->tp_dict = d = PyDict_New();
- SwigPyBuiltin_SetMetaType(builtin_pytype, metatype);
- builtin_pytype->tp_new = PyType_GenericNew;
- builtin_base_count = 0;
- builtin_bases[builtin_base_count] = NULL;
- SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases);
- PyDict_SetItemString(d, "this", this_descr);
- PyDict_SetItemString(d, "thisown", thisown_descr);
- if (PyType_Ready(builtin_pytype) < 0) {
- PyErr_SetString(PyExc_TypeError, "Could not create type 'stack_st_OPENSSL_STRING'.");
-#if PY_VERSION_HEX >= 0x03000000
- return NULL;
-#else
- return;
-#endif
- }
- Py_INCREF(builtin_pytype);
- PyModule_AddObject(m, "stack_st_OPENSSL_STRING", (PyObject*) builtin_pytype);
- SwigPyBuiltin_AddPublicSymbol(public_interface, "stack_st_OPENSSL_STRING");
- d = md;
-
- /* type '::stack_st_OPENSSL_BLOCK' */
- builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__stack_st_OPENSSL_BLOCK_type;
- builtin_pytype->tp_dict = d = PyDict_New();
- SwigPyBuiltin_SetMetaType(builtin_pytype, metatype);
- builtin_pytype->tp_new = PyType_GenericNew;
- builtin_base_count = 0;
- builtin_bases[builtin_base_count] = NULL;
- SwigPyBuiltin_InitBases(builtin_pytype, builtin_bases);
- PyDict_SetItemString(d, "this", this_descr);
- PyDict_SetItemString(d, "thisown", thisown_descr);
- if (PyType_Ready(builtin_pytype) < 0) {
- PyErr_SetString(PyExc_TypeError, "Could not create type 'stack_st_OPENSSL_BLOCK'.");
-#if PY_VERSION_HEX >= 0x03000000
- return NULL;
-#else
- return;
-#endif
- }
- Py_INCREF(builtin_pytype);
- PyModule_AddObject(m, "stack_st_OPENSSL_BLOCK", (PyObject*) builtin_pytype);
- SwigPyBuiltin_AddPublicSymbol(public_interface, "stack_st_OPENSSL_BLOCK");
- d = md;
+ SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SHLIB_VERSION_NUMBER",SWIG_FromCharPtr("1.1"));
+ SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_FILE",SWIG_FromCharPtr("/home/chaen/miniconda2/envs/m2cryptodev/include/openssl/opensslconf.h"));
+ SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_LINE",SWIG_From_int((int)(126)));
+ SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_MIN_API",SWIG_From_int((int)(0)));
+ SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_API_COMPAT",SWIG_From_int((int)(0)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "bio_noclose",SWIG_From_int((int)(BIO_NOCLOSE)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "bio_close",SWIG_From_int((int)(BIO_CLOSE)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "BIO_FLAGS_READ",SWIG_From_int((int)(0x01)));
@@ -32170,9 +33851,9 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "BIO_FLAGS_RWS",SWIG_From_int((int)((BIO_FLAGS_READ|BIO_FLAGS_WRITE|BIO_FLAGS_IO_SPECIAL))));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "BIO_FLAGS_SHOULD_RETRY",SWIG_From_int((int)(0x08)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "BIO_FLAGS_MEM_RDONLY",SWIG_From_int((int)(0x200)));
- PyDict_SetItemString(md,(char*)"cvar", SWIG_globals());
+ PyDict_SetItemString(md,(char *)"cvar", SWIG_globals());
SwigPyBuiltin_AddPublicSymbol(public_interface, "cvar");
- SWIG_addvarlink(SWIG_globals(),(char*)"_bio_err",Swig_var__bio_err_get, Swig_var__bio_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_bio_err",Swig_var__bio_err_get, Swig_var__bio_err_set);
/* type '::pyfd_struct' */
builtin_pytype = (PyTypeObject *)&SwigPyBuiltin__pyfd_struct_type;
@@ -32193,13 +33874,13 @@ SWIG_init(void) {
#endif
}
Py_INCREF(builtin_pytype);
- PyModule_AddObject(m, "BIO_PYFD_CTX", (PyObject*) builtin_pytype);
+ PyModule_AddObject(m, "BIO_PYFD_CTX", (PyObject *)builtin_pytype);
SwigPyBuiltin_AddPublicSymbol(public_interface, "BIO_PYFD_CTX");
d = md;
- SWIG_addvarlink(SWIG_globals(),(char*)"methods_fdp",Swig_var_methods_fdp_get, Swig_var_methods_fdp_set);
- SWIG_addvarlink(SWIG_globals(),(char*)"_rand_err",Swig_var__rand_err_get, Swig_var__rand_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"methods_fdp",Swig_var_methods_fdp_get, Swig_var_methods_fdp_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_rand_err",Swig_var__rand_err_get, Swig_var__rand_err_set);
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "PKCS5_SALT_LEN",SWIG_From_int((int)(8)));
- SWIG_addvarlink(SWIG_globals(),(char*)"_evp_err",Swig_var__evp_err_get, Swig_var__evp_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_evp_err",Swig_var__evp_err_get, Swig_var__evp_err_set);
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "AES_BLOCK_SIZE",SWIG_From_int((int)(AES_BLOCK_SIZE)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_NO_RC4",SWIG_From_int((int)(0)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "dh_check_ok",SWIG_From_int((int)(0)));
@@ -32209,7 +33890,7 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "dh_check_bad_g",SWIG_From_int((int)(DH_NOT_SUITABLE_GENERATOR)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "DH_GENERATOR_2",SWIG_From_int((int)(2)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "DH_GENERATOR_5",SWIG_From_int((int)(5)));
- SWIG_addvarlink(SWIG_globals(),(char*)"_dh_err",Swig_var__dh_err_get, Swig_var__dh_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_dh_err",Swig_var__dh_err_get, Swig_var__dh_err_set);
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "no_padding",SWIG_From_int((int)(RSA_NO_PADDING)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "pkcs1_padding",SWIG_From_int((int)(RSA_PKCS1_PADDING)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "sslv23_padding",SWIG_From_int((int)(RSA_SSLV23_PADDING)));
@@ -32221,8 +33902,8 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "NID_sha512",SWIG_From_int((int)(NID_sha512)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "NID_md5",SWIG_From_int((int)(NID_md5)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "NID_ripemd160",SWIG_From_int((int)(NID_ripemd160)));
- SWIG_addvarlink(SWIG_globals(),(char*)"_rsa_err",Swig_var__rsa_err_get, Swig_var__rsa_err_set);
- SWIG_addvarlink(SWIG_globals(),(char*)"_dsa_err",Swig_var__dsa_err_get, Swig_var__dsa_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_rsa_err",Swig_var__rsa_err_get, Swig_var__rsa_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_dsa_err",Swig_var__dsa_err_get, Swig_var__dsa_err_set);
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "ssl_error_none",SWIG_From_int((int)(SSL_ERROR_NONE)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "ssl_error_ssl",SWIG_From_int((int)(SSL_ERROR_SSL)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "ssl_error_want_read",SWIG_From_int((int)(SSL_ERROR_WANT_READ)));
@@ -32271,8 +33952,8 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SSL_MODE_ENABLE_PARTIAL_WRITE",SWIG_From_int((int)(SSL_MODE_ENABLE_PARTIAL_WRITE)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER",SWIG_From_int((int)(SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SSL_MODE_AUTO_RETRY",SWIG_From_int((int)(SSL_MODE_AUTO_RETRY)));
- SWIG_addvarlink(SWIG_globals(),(char*)"_ssl_err",Swig_var__ssl_err_get, Swig_var__ssl_err_set);
- SWIG_addvarlink(SWIG_globals(),(char*)"_ssl_timeout_err",Swig_var__ssl_timeout_err_get, Swig_var__ssl_timeout_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_ssl_err",Swig_var__ssl_err_get, Swig_var__ssl_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_ssl_timeout_err",Swig_var__ssl_timeout_err_get, Swig_var__ssl_timeout_err_set);
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "X509_TRUST_DEFAULT",SWIG_From_int((int)(-1)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "X509_TRUST_COMPAT",SWIG_From_int((int)(1)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "X509_TRUST_SSL_CLIENT",SWIG_From_int((int)(2)));
@@ -32338,6 +34019,7 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "X509_V_ERR_CERT_UNTRUSTED",SWIG_From_int((int)(27)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "X509_V_ERR_CERT_REJECTED",SWIG_From_int((int)(28)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "X509_V_ERR_APPLICATION_VERIFICATION",SWIG_From_int((int)(50)));
+ SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "VERIFY_ALLOW_PROXY_CERTS",SWIG_From_int((int)(X509_V_FLAG_ALLOW_PROXY_CERTS)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "XN_FLAG_COMPAT",SWIG_From_int((int)(0)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "XN_FLAG_SEP_COMMA_PLUS",SWIG_From_int((int)((1 << 16))));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "XN_FLAG_SEP_CPLUS_SPC",SWIG_From_int((int)((2 << 16))));
@@ -32352,7 +34034,7 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "XN_FLAG_RFC2253",SWIG_From_int((int)((ASN1_STRFLGS_RFC2253|XN_FLAG_SEP_COMMA_PLUS|XN_FLAG_DN_REV|XN_FLAG_DUMP_UNKNOWN_FIELDS))));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "RSA_3",SWIG_From_int((int)(0x3L)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "RSA_F4",SWIG_From_int((int)(0x10001L)));
- SWIG_addvarlink(SWIG_globals(),(char*)"_x509_err",Swig_var__x509_err_get, Swig_var__x509_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_x509_err",Swig_var__x509_err_get, Swig_var__x509_err_set);
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "ASN1_STRFLGS_ESC_2253",SWIG_From_int((int)(1)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "ASN1_STRFLGS_ESC_CTRL",SWIG_From_int((int)(2)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "ASN1_STRFLGS_ESC_MSB",SWIG_From_int((int)(4)));
@@ -32377,9 +34059,9 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "PKCS7_ENVELOPED",SWIG_From_int((int)(NID_pkcs7_enveloped)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "PKCS7_SIGNED_ENVELOPED",SWIG_From_int((int)(NID_pkcs7_signedAndEnveloped)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "PKCS7_DATA",SWIG_From_int((int)(NID_pkcs7_data)));
- SWIG_addvarlink(SWIG_globals(),(char*)"_pkcs7_err",Swig_var__pkcs7_err_get, Swig_var__pkcs7_err_set);
- SWIG_addvarlink(SWIG_globals(),(char*)"_smime_err",Swig_var__smime_err_get, Swig_var__smime_err_set);
- SWIG_addvarlink(SWIG_globals(),(char*)"_util_err",Swig_var__util_err_get, Swig_var__util_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_pkcs7_err",Swig_var__pkcs7_err_get, Swig_var__pkcs7_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_smime_err",Swig_var__smime_err_get, Swig_var__smime_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_util_err",Swig_var__util_err_get, Swig_var__util_err_set);
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "OPENSSL_NO_EC",SWIG_From_int((int)(0)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "NID_secp112r1",SWIG_From_int((int)(NID_secp112r1)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "NID_secp112r2",SWIG_From_int((int)(NID_secp112r2)));
@@ -32448,7 +34130,7 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "NID_wap_wsg_idm_ecid_wtls12",SWIG_From_int((int)(NID_wap_wsg_idm_ecid_wtls12)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "NID_ipsec3",SWIG_From_int((int)(NID_ipsec3)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "NID_ipsec4",SWIG_From_int((int)(NID_ipsec4)));
- SWIG_addvarlink(SWIG_globals(),(char*)"_ec_err",Swig_var__ec_err_get, Swig_var__ec_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_ec_err",Swig_var__ec_err_get, Swig_var__ec_err_set);
/* type '::_cbd_t' */
builtin_pytype = (PyTypeObject *)&SwigPyBuiltin___cbd_t_type;
@@ -32469,10 +34151,10 @@ SWIG_init(void) {
#endif
}
Py_INCREF(builtin_pytype);
- PyModule_AddObject(m, "_cbd_t", (PyObject*) builtin_pytype);
+ PyModule_AddObject(m, "_cbd_t", (PyObject *)builtin_pytype);
SwigPyBuiltin_AddPublicSymbol(public_interface, "_cbd_t");
d = md;
- SWIG_addvarlink(SWIG_globals(),(char*)"_engine_err",Swig_var__engine_err_get, Swig_var__engine_err_set);
+ SWIG_addvarlink(SWIG_globals(),(char *)"_engine_err",Swig_var__engine_err_get, Swig_var__engine_err_set);
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "ENGINE_METHOD_RSA",SWIG_From_int((int)(0x0001)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "ENGINE_METHOD_DSA",SWIG_From_int((int)(0x0002)));
SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "ENGINE_METHOD_DH",SWIG_From_int((int)(0x0004)));
diff --git a/SWIG/_x509.i b/SWIG/_x509.i
index 3c3e83e..740bb7e 100644
--- a/SWIG/_x509.i
+++ b/SWIG/_x509.i
@@ -268,6 +268,11 @@ extern int X509_EXTENSION_get_critical(X509_EXTENSION *);
%rename(x509_extension_set_critical) X509_EXTENSION_set_critical;
extern int X509_EXTENSION_set_critical(X509_EXTENSION *, int);
+
+%rename(x509_store_set_flags) X509_STORE_set_flags;
+extern int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags);
+
+
%typemap(out) X509 * {
PyObject *self = NULL; /* bug in SWIG_NewPointerObj as of 3.0.5 */
@@ -340,6 +345,10 @@ X509 *d2i_x509(BIO *bio) {
%constant int X509_V_ERR_CERT_REJECTED = 28;
%constant int X509_V_ERR_APPLICATION_VERIFICATION = 50;
+/* Enable proxy certificate validation */
+%constant int VERIFY_ALLOW_PROXY_CERTS = X509_V_FLAG_ALLOW_PROXY_CERTS;
+
+
/* x509.h */
%constant int XN_FLAG_COMPAT = 0;
%constant int XN_FLAG_SEP_COMMA_PLUS = (1 << 16);