diff options
Diffstat (limited to 'src/gmcerts.c')
-rw-r--r-- | src/gmcerts.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gmcerts.c b/src/gmcerts.c index f86712ac..bf0f3924 100644 --- a/src/gmcerts.c +++ b/src/gmcerts.c | |||
@@ -161,6 +161,16 @@ iBool isUsedOn_GmIdentity(const iGmIdentity *d, const iString *url) { | |||
161 | return iFalse; | 161 | return iFalse; |
162 | } | 162 | } |
163 | 163 | ||
164 | iBool isUsedOnDomain_GmIdentity(const iGmIdentity *d, const iRangecc domain) { | ||
165 | iConstForEach(StringSet, i, d->useUrls) { | ||
166 | const iRangecc host = urlHost_String(i.value); | ||
167 | if (equalRangeCase_Rangecc(host, domain)) { | ||
168 | return iTrue; | ||
169 | } | ||
170 | } | ||
171 | return iFalse; | ||
172 | } | ||
173 | |||
164 | void setUse_GmIdentity(iGmIdentity *d, const iString *url, iBool use) { | 174 | void setUse_GmIdentity(iGmIdentity *d, const iString *url, iBool use) { |
165 | if (use && isUsedOn_GmIdentity(d, url)) { | 175 | if (use && isUsedOn_GmIdentity(d, url)) { |
166 | return; /* Redudant. */ | 176 | return; /* Redudant. */ |