Example #1
0
PyObject *xmlsec_BufferCreate(PyObject *self, PyObject *args) {
  xmlSecSize size;
  xmlSecBufferPtr buf;
  
  if (CheckArgs(args, "I:bufferCreate")) {
    if(!PyArg_ParseTuple(args, (char *) "i:bufferCreate", &size))
      return NULL;
  }
  else return NULL;

  buf = xmlSecBufferCreate(size);

  return (wrap_xmlSecBufferPtr(buf));
}
Example #2
0
/**
 * xmlSecBnCreate:
 * @size:	the initial allocated BN size.
 *
 * Creates a new BN object. Caller is responsible for destroying it
 * by calling @xmlSecBnDestroy function.
 *
 * Returns the newly BN or a NULL if an error occurs.
 */
EXPORT_C
xmlSecBnPtr 
xmlSecBnCreate(xmlSecSize size) {
    return(xmlSecBufferCreate(size));
}