kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit dcdfce5763d230b854099f84aaf6654fddf44698
parent 8969c145752b83a42aa0de806c3e04d6708a7b69
Author: Joris Vink <joris@coders.se>
Date:   Wed, 20 Apr 2022 11:06:10 +0200

Unbreak x509dict.

I accidentally swapped issuer and subject while constructing it.

Diffstat:
src/python.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/python.c b/src/python.c @@ -2971,7 +2971,8 @@ pyconnection_get_peer_x509dict(struct pyconnection *pyc, void *closure) goto out; } - if (!kore_tls_x509name_foreach(name, 0, issuer, pyconnection_x509_cb)) { + if (!kore_tls_x509name_foreach(name, 0, subject, + pyconnection_x509_cb)) { if (PyErr_Occurred() == NULL) { PyErr_Format(PyExc_RuntimeError, "failed to add issuer name to dictionary"); @@ -2985,8 +2986,7 @@ pyconnection_get_peer_x509dict(struct pyconnection *pyc, void *closure) goto out; } - if (!kore_tls_x509name_foreach(name, 0, subject, - pyconnection_x509_cb)) { + if (!kore_tls_x509name_foreach(name, 0, issuer, pyconnection_x509_cb)) { if (PyErr_Occurred() == NULL) { PyErr_Format(PyExc_RuntimeError, "failed to add subject name to dictionary");