summaryrefslogtreecommitdiff
path: root/src/gmrequest.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-28 17:19:24 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-28 17:19:24 +0300
commit43dabe97bb845ef8bc8c8ae8e0370be0f4587951 (patch)
treea2b5131484d623265ad83e921070b44150bc3829 /src/gmrequest.c
parent1fb519c053ba24fa76a2a527b4d2c74b0f198e66 (diff)
GmRequest: Use selected identity for request
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r--src/gmrequest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gmrequest.c b/src/gmrequest.c
index c2c94888..b2022609 100644
--- a/src/gmrequest.c
+++ b/src/gmrequest.c
@@ -490,6 +490,10 @@ void submit_GmRequest(iGmRequest *d) {
490 } 490 }
491 d->state = receivingHeader_GmRequestState; 491 d->state = receivingHeader_GmRequestState;
492 d->req = new_TlsRequest(); 492 d->req = new_TlsRequest();
493 const iGmIdentity *identity = identityForUrl_GmCerts(d->certs, &d->url);
494 if (identity) {
495 setCertificate_TlsRequest(d->req, identity->cert);
496 }
493 iConnect(TlsRequest, d->req, readyRead, d, readIncoming_GmRequest_); 497 iConnect(TlsRequest, d->req, readyRead, d, readIncoming_GmRequest_);
494 iConnect(TlsRequest, d->req, finished, d, requestFinished_GmRequest_); 498 iConnect(TlsRequest, d->req, finished, d, requestFinished_GmRequest_);
495 uint16_t port = toInt_String(collect_String(newRange_String(url.port))); 499 uint16_t port = toInt_String(collect_String(newRange_String(url.port)));