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
*/
+6 -2
View File
@@ -1,6 +1,5 @@
/*
* Copyright (C) 2001-2008 Andreas Steffen
*
* Copyright (C) 2001-2022 Andreas Steffen
*
* Copyright (C) secunet Security Networks AG
*
@@ -35,6 +34,11 @@ bool eat_whitespace(chunk_t *src);
*/
bool match(const char *pattern, const chunk_t *ch);
/**
* Compare null-terminated pattern with chunk ignoring the case of the characters
*/
bool matchcase(const char *pattern, const chunk_t *ch);
/**
* Extracts a token ending with the first occurrence of a given termination symbol
*/