Lines Matching defs:retval
720 int retval = -1;
737 return retval;
775 retval = 0;
780 return retval;
1567 PyObject *retval = NULL;
1581 retval = PyDict_New();
1582 if (retval == NULL)
1590 if (PyDict_SetItemString(retval, (const char *) "subject", peer) < 0) {
1601 if (PyDict_SetItemString(retval, (const char *)"issuer", issuer) < 0) {
1610 if (PyDict_SetItemString(retval, "version", version) < 0) {
1635 if (PyDict_SetItemString(retval, "serialNumber", sn_obj) < 0) {
1652 if (PyDict_SetItemString(retval, "notBefore", pnotBefore) < 0) {
1669 if (PyDict_SetItemString(retval, "notAfter", pnotAfter) < 0) {
1681 if (PyDict_SetItemString(retval, "subjectAltName",
1694 result = PyDict_SetItemString(retval, "OCSP", obj);
1705 result = PyDict_SetItemString(retval, "caIssuers", obj);
1717 result = PyDict_SetItemString(retval, "crlDistributionPoints", obj);
1725 return retval;
1731 Py_XDECREF(retval);
1740 PyObject *retval;
1749 retval = PyBytes_FromStringAndSize((const char *) bytes_buf, len);
1751 return retval;
1768 PyObject *retval = NULL;
1792 retval = _decode_certificate(state, x);
1798 return retval;
1875 PyObject *retval;
1882 retval = _PySSL_CertificateFromX509Stack(self->ctx->state, chain, 1);
1883 if (retval == NULL) {
1899 Py_DECREF(retval);
1903 int res = PyList_Insert(retval, 0, peerobj);
1906 Py_DECREF(retval);
1910 return retval;
1917 PyObject *v, *retval = PyTuple_New(3);
1918 if (retval == NULL)
1924 PyTuple_SET_ITEM(retval, 0, Py_None);
1929 PyTuple_SET_ITEM(retval, 0, v);
1935 PyTuple_SET_ITEM(retval, 1, Py_None);
1940 PyTuple_SET_ITEM(retval, 1, v);
1946 PyTuple_SET_ITEM(retval, 2, v);
1948 return retval;
1951 Py_DECREF(retval);
2339 int retval;
2387 retval = SSL_write_ex(self->ssl, b->buf, (size_t)b->len, &count);
2388 err = _PySSL_errno(retval == 0, self->ssl, retval);
2422 if (retval == 0)
2423 return PySSL_SetError(self, retval, __FILE__, __LINE__);
2477 int retval;
2540 retval = SSL_read_ex(self->ssl, mem, (size_t)len, &count);
2541 err = _PySSL_errno(retval == 0, self->ssl, retval);
2575 if (retval == 0) {
2576 PySSL_SetError(self, retval, __FILE__, __LINE__);
3954 int retval = -1, err, loaded = 0;
4016 retval = -1;
4022 retval = 0;
4028 retval = 0;
4031 retval = -1;
4033 retval = 0;
4037 return retval;
5436 PyObject *retval;
5460 retval = PyFrozenSet_New(NULL);
5461 if (retval == NULL) {
5470 Py_CLEAR(retval);
5473 err = PySet_Add(retval, oid);
5476 Py_CLEAR(retval);
5483 return retval;