Patch #488073: AtheOS port.

This commit is contained in:
Martin v. Löwis 2002-06-11 06:22:31 +00:00
parent 7981ce576c
commit f90ae20354
23 changed files with 1782 additions and 17 deletions

View file

@ -17,7 +17,9 @@ static PyObject *crypt_crypt(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "ss:crypt", &word, &salt)) {
return NULL;
}
return PyString_FromString( crypt( word, salt ) );
/* On some platforms (AtheOS) crypt returns NULL for an invalid
salt. Return None in that case. XXX Maybe raise an exception? */
return Py_BuildValue("s", crypt(word, salt));
}