Also commit other berval converters which are not yet called by anything. In places where bervals are returned as objects, PyString_FromStringAndSize() was being used. In some rare cases, a NULL berval pointer (not NULL data) is returned as None (not a string). This factors that out to the berval.c compilation unit.
16 lines
429 B
C
16 lines
429 B
C
/* See http://www.python-ldap.org/ for details.
|
|
* $Id: berval.h,v 1.1 2009/08/17 01:49:47 leonard Exp $ */
|
|
|
|
#ifndef __h_berval
|
|
#define __h_berval
|
|
|
|
#include "common.h"
|
|
#include "lber.h"
|
|
|
|
int LDAPberval_from_object(PyObject *obj, struct berval *bv);
|
|
int LDAPberval_from_object_check(PyObject *obj);
|
|
void LDAPberval_release(struct berval *bv);
|
|
PyObject *LDAPberval_to_object(const struct berval *bv);
|
|
|
|
#endif /* __h_berval_ */
|