Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 653634 Details for
Bug 881336
X509_issuer_and_serial_hash() segfaults in FIPS mode
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Reproducer
test.c (text/plain), 1.05 KB, created by
Petr Pisar
on 2012-11-28 18:21:22 UTC
(
hide
)
Description:
Reproducer
Filename:
MIME Type:
Creator:
Petr Pisar
Created:
2012-11-28 18:21:22 UTC
Size:
1.05 KB
patch
obsolete
>#include <stdlib.h> >#include <stdio.h> >#include <openssl/bio.h> >#include <openssl/pem.h> >#include <openssl/x509.h> >#include <openssl/fips.h> > >int main(int argc, char **argv) { > const char *filename = "/dev/stdin"; > BIO *bio = NULL; > X509 *cert = NULL; > unsigned long hash; > > if (argc == 2 || argv[1] != NULL) { > filename = argv[1]; > } > > if (!FIPS_mode_set(NULL != getenv("OPENSSL_FIPS"))) { > printf("Could not set FIPS mode\n"); > exit(EXIT_FAILURE); > } > if (FIPS_mode()) { > printf("FIPS mode is enabled\n"); > } else { > printf("FIPS mode is not enabled\n"); > } > > bio = BIO_new_file(filename, "rb"); > if (NULL == bio) { > printf("Could not open certificate file\n"); > exit(EXIT_FAILURE); > } > > cert = PEM_read_bio_X509(bio, NULL, 0, NULL); > if (NULL == cert) { > printf("Could not load certificate\n"); > exit(EXIT_FAILURE); > } > > hash = X509_issuer_and_serial_hash(cert); > > printf("Issuer and serial number hash is %lu\n", hash); > > exit(EXIT_SUCCESS); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 881336
: 653634