?? testprog.c
字號:
#include <string.h>#include <openssl/pem.h>#include <openssl/rsa.h>#include <openssl/pkcs7.h>#include "opensc-support.h"#include "opensc-crypto.h"#include "signer.h"int test(void){ BIO *in; PKCS7 *p7; in = BIO_new_file("sample.pem", "r"); p7 = PEM_read_bio_PKCS7(in, NULL, NULL, NULL); if (p7 == NULL) { goto err; }#if 0 return prp7(p7);#endif return 0;err: ERR_load_crypto_strings(); ERR_print_errors_fp(stderr); return 1;}int main(void){ PluginInstance pl; u8 *data; int datalen, r;#if 0 test(); return 0;#endif pl.signdata = strdup("12345\nMoro moro, mit
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -