diff options
Diffstat (limited to 'src/gmrequest.c')
-rw-r--r-- | src/gmrequest.c | 4 |
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))); |