Displaying 1 result from an estimated 1 matches for "cert_verify".
2006 Nov 15
11
OpenSSH Certkey (PKI)
...tatic 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_char *cert, const Key *ca_key, const Key *key,
+ const u_char *identity)
+{
+ u_char ca_fp[128], ca_name[128], ca_id[128], ca_opts[512];
+ u_char ca_vf[16], ca_vt[16], ca_alg[64], ca_sig[1024];
+ u_char sigbuf[1024], datbuf[2048], c, *fp;
+ unsigned long vf, vt, now = time(NULL);
+ u_int...