Lines Matching refs:result
1452 int i, result;
1481 result = PyList_Append(lst, ostr);
1483 if (result < 0) {
1577 int len, result;
1694 result = PyDict_SetItemString(retval, "OCSP", obj);
1696 if (result < 0) {
1705 result = PyDict_SetItemString(retval, "caIssuers", obj);
1707 if (result < 0) {
1717 result = PyDict_SetItemString(retval, "crlDistributionPoints", obj);
1719 if (result < 0) {
1824 PyObject *result;
1837 result = _certificate_to_der(get_state_sock(self), peer_cert);
1841 result = PyDict_New();
1843 result = _decode_certificate(get_state_sock(self), peer_cert);
1846 return result;
2868 int result;
2895 result = SSL_set_session(self->ssl, session);
2898 if (result == 0) {
3025 int result;
3154 result = 1;
3156 result = SSL_CTX_set_cipher_list(ctx, PY_SSL_DEFAULT_CIPHER_STRING);
3160 result = SSL_CTX_set_cipher_list(ctx, "HIGH:!aNULL:!eNULL");
3162 if (result == 0) {
3174 result = SSL_CTX_set_min_proto_version(ctx, PY_SSL_MIN_PROTOCOL);
3175 if (result == 0) {
3286 PyObject *result = NULL, *dct;
3295 result = PyList_New(sk_SSL_CIPHER_num(sk));
3296 if (result == NULL) {
3304 Py_CLEAR(result);
3307 PyList_SET_ITEM(result, i, dct);
3313 return result;
3462 int result;
3520 result = SSL_CTX_set_min_proto_version(self->ctx, v);
3534 result = SSL_CTX_set_max_proto_version(self->ctx, v);
3536 if (result == 0) {
4391 PyObject *result;
4427 result = PyObject_CallFunctionObjArgs(sslctx->set_sni_cb, ssl_socket,
4449 result = PyObject_CallFunctionObjArgs(
4456 if (result == NULL) {
4465 if (result == Py_None) {
4468 *al = (int) PyLong_AsLong(result);
4470 PyErr_WriteUnraisable(result);
4475 Py_DECREF(result);
4868 PyObject *result;
4874 result = PyBytes_FromStringAndSize(NULL, len);
4875 if ((result == NULL) || (len == 0))
4876 return result;
4878 nbytes = BIO_read(self->bio, PyBytes_AS_STRING(result), len);
4881 Py_DECREF(result);
4888 _PyBytes_Resize(&result, nbytes);
4891 return result;
5009 int result;
5022 result = 0;
5031 result = memcmp(left_id, right_id, left_len);
5033 result = 1;
5039 if (result == 0) {
5046 if (result != 0) {
5359 PyObject *result = NULL;
5367 result = asn1obj2py(get_ssl_state(module), obj);
5369 return result;
5384 PyObject *result = NULL;
5396 result = asn1obj2py(get_ssl_state(module), obj);
5398 return result;
5505 BOOL result;
5519 result = CertAddStoreToCollection(hCollectionStore, hSystemStore,
5521 if (result) {
5555 PyObject *result = NULL;
5557 result = PySet_New(NULL);
5558 if (result == NULL) {
5563 Py_DECREF(result);
5571 Py_CLEAR(result);
5575 Py_CLEAR(result);
5584 Py_CLEAR(result);
5588 Py_CLEAR(result);
5597 if (PySet_Add(result, tup) == -1) {
5598 Py_CLEAR(result);
5620 Py_XDECREF(result);
5625 if (result == NULL) {
5628 PyObject *lst = PySequence_List(result);
5629 Py_DECREF(result);
5653 PyObject *result = NULL;
5655 result = PySet_New(NULL);
5656 if (result == NULL) {
5661 Py_DECREF(result);
5669 Py_CLEAR(result);
5673 Py_CLEAR(result);
5677 Py_CLEAR(result);
5685 if (PySet_Add(result, tup) == -1) {
5686 Py_CLEAR(result);
5707 Py_XDECREF(result);
5711 if (result == NULL) {
5714 PyObject *lst = PySequence_List(result);
5715 Py_DECREF(result);