65 static PyObject *getServerPrincipalDetails(PyObject *self, PyObject *args)
66 {
67 const char *service;
68 const char *hostname;
69 char* result;
70
71 if (!PyArg_ParseTuple(args, "ss", &service, &hostname))
72 return NULL;
when PyArg_ParseTuple() succeeds
taking False path
73
74 result = server_principal_details(service, hostname);
75
76 if (result != NULL)
77 {
when treating unknown char * from src/kerberos.c:75 as NULL
taking False path
78 PyObject* pyresult = Py_BuildValue("s", result);
79 free(result);
80 return pyresult;
81 }
82 else
83 return NULL;
84 }
85