"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/openssl/privkey.c" between
honggfuzz-2.4.tar.gz and honggfuzz-2.5.tar.gz

About: honggfuzz is a security oriented, feedback-driven, evolutionary, easy-to-use fuzzer with powerful analysis options.

privkey.c  (honggfuzz-2.4):privkey.c  (honggfuzz-2.5)
skipping to change at line 24 skipping to change at line 24
HFInit(); HFInit();
HFResetRand(); HFResetRand();
return 1; return 1;
} }
int LLVMFuzzerTestOneInput(const uint8_t* buf, size_t len) { int LLVMFuzzerTestOneInput(const uint8_t* buf, size_t len) {
EVP_PKEY* key = d2i_AutoPrivateKey(NULL, &buf, len); EVP_PKEY* key = d2i_AutoPrivateKey(NULL, &buf, len);
if (key == NULL) { if (key == NULL) {
fprintf(stderr, "%s", ERR_error_string(ERR_get_error(), NULL)); fprintf(stderr, "%s", ERR_error_string(ERR_get_error(), NULL));
} else {
BIO* out = BIO_new_fp(stdout, BIO_NOCLOSE);
EVP_PKEY_print_private(out, key, 4, NULL);
BIO_free(out);
} }
EVP_PKEY_free(key); EVP_PKEY_free(key);
return 0; return 0;
} }
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)