diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-28 07:38:20 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-28 07:38:20 +0200 |
commit | 6b2bba06b433fb75979ab6daf7bbe8bc76c53875 (patch) | |
tree | 75803b4683889e6e0d2a3faef30415db3ff7b3ba /security/nss/cmd/listsuites/listsuites.c | |
parent | 72def35cd0cf3649b6d7ab72b66117df3e1c33fc (diff) | |
parent | c75dae3ed21bfa5a8ae46cd83d18329af5bea05a (diff) | |
download | UXP-6b2bba06b433fb75979ab6daf7bbe8bc76c53875.tar UXP-6b2bba06b433fb75979ab6daf7bbe8bc76c53875.tar.gz UXP-6b2bba06b433fb75979ab6daf7bbe8bc76c53875.tar.lz UXP-6b2bba06b433fb75979ab6daf7bbe8bc76c53875.tar.xz UXP-6b2bba06b433fb75979ab6daf7bbe8bc76c53875.zip |
Merge branch 'master' of https://github.com/MoonchildProductions/UXP into pm_url_1
Diffstat (limited to 'security/nss/cmd/listsuites/listsuites.c')
-rw-r--r-- | security/nss/cmd/listsuites/listsuites.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/security/nss/cmd/listsuites/listsuites.c b/security/nss/cmd/listsuites/listsuites.c index 8eb2c3553..458130e5e 100644 --- a/security/nss/cmd/listsuites/listsuites.c +++ b/security/nss/cmd/listsuites/listsuites.c @@ -10,9 +10,7 @@ #include <errno.h> #include <stdio.h> -#include "nss.h" #include "secport.h" -#include "secutil.h" #include "ssl.h" int @@ -21,43 +19,6 @@ main(int argc, char **argv) const PRUint16 *cipherSuites = SSL_ImplementedCiphers; int i; int errCount = 0; - SECStatus rv; - PRErrorCode err; - char *certDir = NULL; - - /* load policy from $SSL_DIR/pkcs11.txt, for testing */ - certDir = SECU_DefaultSSLDir(); - if (certDir) { - rv = NSS_Init(certDir); - } else { - rv = NSS_NoDB_Init(NULL); - } - if (rv != SECSuccess) { - err = PR_GetError(); - ++errCount; - fprintf(stderr, "NSS_Init failed: %s\n", PORT_ErrorToString(err)); - goto out; - } - - /* apply policy */ - rv = NSS_SetAlgorithmPolicy(SEC_OID_APPLY_SSL_POLICY, NSS_USE_POLICY_IN_SSL, 0); - if (rv != SECSuccess) { - err = PR_GetError(); - ++errCount; - fprintf(stderr, "NSS_SetAlgorithmPolicy failed: %s\n", - PORT_ErrorToString(err)); - goto out; - } - - /* update the default cipher suites according to the policy */ - rv = SSL_OptionSetDefault(SSL_SECURITY, PR_TRUE); - if (rv != SECSuccess) { - err = PR_GetError(); - ++errCount; - fprintf(stderr, "SSL_OptionSetDefault failed: %s\n", - PORT_ErrorToString(err)); - goto out; - } fputs("This version of libSSL supports these cipher suites:\n\n", stdout); @@ -97,14 +58,5 @@ main(int argc, char **argv) info.isFIPS ? "FIPS" : "", info.nonStandard ? "nonStandard" : ""); } - -out: - rv = NSS_Shutdown(); - if (rv != SECSuccess) { - err = PR_GetError(); - ++errCount; - fprintf(stderr, "NSS_Shutdown failed: %s\n", PORT_ErrorToString(err)); - } - return errCount; } |