diff options
Diffstat (limited to 'src/gmrequest.h')
-rw-r--r-- | src/gmrequest.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/gmrequest.h b/src/gmrequest.h index 37f324eb..500ed71b 100644 --- a/src/gmrequest.h +++ b/src/gmrequest.h | |||
@@ -1,9 +1,9 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include <the_Foundation/audience.h> | 3 | #include <the_Foundation/audience.h> |
4 | #include <the_Foundation/object.h> | 4 | #include <the_Foundation/tlsrequest.h> |
5 | 5 | ||
6 | #include "gemini.h" | 6 | #include "gmutil.h" |
7 | 7 | ||
8 | iDeclareClass(GmRequest) | 8 | iDeclareClass(GmRequest) |
9 | iDeclareObjectConstruction(GmRequest) | 9 | iDeclareObjectConstruction(GmRequest) |
@@ -16,11 +16,11 @@ iDeclareAudienceGetter(GmRequest, finished) | |||
16 | void setUrl_GmRequest (iGmRequest *, const iString *url); | 16 | void setUrl_GmRequest (iGmRequest *, const iString *url); |
17 | void submit_GmRequest (iGmRequest *); | 17 | void submit_GmRequest (iGmRequest *); |
18 | 18 | ||
19 | enum iGmRequestCertification { | 19 | enum iGmRequestCertFlags { |
20 | notApplicable_GmRequestCertification, | 20 | available_GmRequestCertFlag = iBit(1), /* certificate provided by server */ |
21 | invalid_GmRequestCertification, | 21 | trusted_GmRequestCertFlag = iBit(2), /* TOFU status */ |
22 | valid_GmRequestCertification, | 22 | timeVerified_GmRequestCertFlag = iBit(3), /* has not expired */ |
23 | expired_GmRequestCertification, | 23 | domainVerified_GmRequestCertFlag = iBit(4), /* cert matches server domain */ |
24 | }; | 24 | }; |
25 | 25 | ||
26 | iBool isFinished_GmRequest (const iGmRequest *); | 26 | iBool isFinished_GmRequest (const iGmRequest *); |
@@ -28,3 +28,6 @@ enum iGmStatusCode status_GmRequest (const iGmRequest *); | |||
28 | const iString * meta_GmRequest (const iGmRequest *); | 28 | const iString * meta_GmRequest (const iGmRequest *); |
29 | const iBlock * body_GmRequest (const iGmRequest *); | 29 | const iBlock * body_GmRequest (const iGmRequest *); |
30 | const iString * url_GmRequest (const iGmRequest *); | 30 | const iString * url_GmRequest (const iGmRequest *); |
31 | |||
32 | int certFlags_GmRequest (const iGmRequest *); | ||
33 | iDate certExpirationDate_GmRequest(const iGmRequest *); | ||