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 662399 Details for
Bug 852023
FIPS mode detection does not work
[?]
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.
test FIPS mode switch in NSS
nss-fips.c (text/plain), 851 bytes, created by
Kamil Dudka
on 2012-12-12 15:03:33 UTC
(
hide
)
Description:
test FIPS mode switch in NSS
Filename:
MIME Type:
Creator:
Kamil Dudka
Created:
2012-12-12 15:03:33 UTC
Size:
851 bytes
patch
obsolete
>#if 0 >set -x >gcc nss-fips.c `pkg-config nss --cflags --libs` || exit $? >setup-nsssysinit.sh status >KFIPS=/proc/sys/crypto/fips_enabled >printf "%s = %s\n" $KFIPS $(<$KFIPS) >./a.out sql:/etc/pki/nssdb >PASSWD=$(mktemp) >DB=$(mktemp -d) >certutil -N -d $DB -f $PASSWD >echo | modutil -dbdir $DB -fips true > /dev/null >./a.out $DB >./a.out sql:/$DB >exit $? >#endif >#include <pk11pub.h> > >#include <stdio.h> >#include <stdlib.h> > >int usage() >{ > fprintf(stderr, "Usage: %s NSS_DB_DIR\n"); > return EXIT_FAILURE; >} > >int main(int argc, char *argv[]) >{ > if (2 != argc) > return usage(argv[0]); > > const char *configdir = argv[1]; > > const int nss_initialize = NSS_Init(configdir); > printf("NSS_Init(\"%s\") = %i\n", configdir, nss_initialize); > > const int is_fips = PK11_IsFIPS(); > printf("PK11_IsFIPS() = %i\n\n", is_fips); > return 0; >}
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 852023
:
607184
| 662399 |
662578
|
771970
|
781788
|
811443
|
852443