pki: Created pki --est man page

This commit is contained in:
Andreas Steffen
2022-08-25 07:02:29 +02:00
parent ba1d8aba32
commit c2dc5f69ca
5 changed files with 200 additions and 3 deletions
+8
View File
@@ -36,6 +36,14 @@ bool match(const char *pattern, const chunk_t *ch)
return ch->len == strlen(pattern) && strncmp(pattern, ch->ptr, ch->len) == 0;
}
/**
* compare string with chunk ignoring the case of the characters
*/
bool matchcase(const char *pattern, const chunk_t *ch)
{
return ch->len == strlen(pattern) && strncasecmp(pattern, ch->ptr, ch->len) == 0;
}
/**
* extracts a token ending with the first occurrence of a given termination symbol
*/