~bmonty/python-krb5/main

« back to all changes in this revision

Viewing changes to python-krb5.h

  • Committer: Benjamin Montgomery
  • Date: 2006-05-19 02:33:18 UTC
  • Revision ID: bmontgom@montynet.org-20060519023318-74503e404fffe41d
- added Principal_change_password
- added a tp_str method to the Credential object

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
/* module kerberos context */
28
28
extern krb5_context module_context;
29
29
 
30
 
/* hack for python 2.3 compat.. */
 
30
/* hack for python 2.3 compat */
31
31
#if (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 4)
32
32
#elif (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 3)
33
 
#define Py_RETURN_FALSE return Py_False
34
 
#define Py_RETURN_TRUE return Py_True
 
33
#define Py_RETURN_FALSE Py_INCREF(Py_False); return Py_False
 
34
#define Py_RETURN_TRUE Py_INCREF(Py_True); return Py_True
35
35
#else
36
36
#error "Python version not supported"
37
37
#endif