81 unsigned char sig_buf [4096];
82 static char certfile[] =
"cert.pem";
83 static char keyfile[] =
"key.pem";
84 static char data[] =
"I owe you...";
97 fp = fopen (keyfile,
"r");
98 if (fp == NULL)
exit (1);
111 sig_len =
sizeof(sig_buf);
123 fp = fopen (certfile,
"r");
124 if (fp == NULL)
exit (1);
125 x509 = PEM_read_X509(fp, NULL, NULL, NULL);
151 printf (
"Signature Verified Ok.\n");