// this is a good time to load our private key :-)
{
unsigned char *buf = (unsigned char *)malloc(1024);
- unsigned char *ptr = buf;
+ const unsigned char *ptr = buf;
memcpy(buf, private_key, sizeof(private_key));
privkey = d2i_RSAPrivateKey(NULL, &ptr, sizeof(private_key));
free(buf);
+
+ printf("Loaded private key (%u bytes)\n", sizeof(private_key));
}
}