search for: cert_token

Displaying 1 result from an estimated 1 matches for "cert_token".

2006 Nov 15
11
OpenSSH Certkey (PKI)
...;cert); + k->cert = NULL; xfree(k); } @@ -833,6 +837,7 @@ pk->flags = k->flags; pk->dsa = NULL; pk->rsa = NULL; + pk->cert = k->cert ? xstrdup(k->cert) : NULL; switch (k->type) { case KEY_RSA1: @@ -862,4 +867,100 @@ } return (pk); +} + +static void +cert_token(const u_char **c, u_char *buf, int len) +{ + int i = 0; + + while (**c && **c != ';' && i + 1 < len) + buf[i++] = *(*c)++; + if (**c == ';') + (*c)++; + buf[i] = 0; +} + +/* check whether certificate is valid and signature correct */ +int +cert_verify(const u_ch...