From 541146613521a54f0d392f017fafd653759dab19 Mon Sep 17 00:00:00 2001
From: cvs2hg
Date: Thu, 3 Sep 2009 04:57:01 +0000
Subject: [PATCH] fixup commit for tag 'JSS_4_3_1_BETA'
---
dbm/.cvsignore | 1 -
dbm/Makefile.in | 0
dbm/include/.cvsignore | 1 -
dbm/include/Makefile.in | 71 -
dbm/include/Makefile.win | 77 -
dbm/include/cdefs.h | 126 -
dbm/include/extern.h | 63 -
dbm/include/hash.h | 335 -
dbm/include/hsearch.h | 49 -
dbm/include/mcom_db.h | 413 -
dbm/include/mpool.h | 97 -
dbm/include/ncompat.h | 230 -
dbm/include/page.h | 94 -
dbm/include/queue.h | 243 -
dbm/include/search.h | 49 -
dbm/include/winfile.h | 112 -
dbm/src/.cvsignore | 1 -
dbm/src/Makefile.in | 95 -
dbm/src/Makefile.win | 113 -
dbm/src/db.c | 136 -
dbm/src/h_bigkey.c | 709 -
dbm/src/h_func.c | 207 -
dbm/src/h_log2.c | 52 -
dbm/src/h_page.c | 1286 -
dbm/src/hash.c | 1175 -
dbm/src/hash_buf.c | 410 -
dbm/src/memmove.c | 146 -
dbm/src/mktemp.c | 160 -
dbm/src/snprintf.c | 73 -
dbm/src/strerror.c | 74 -
dbm/tests/.cvsignore | 3 -
dbm/tests/Makefile.in | 62 -
dbm/tests/dbmtest.pkg | 2 -
dbm/tests/lots.c | 638 -
security/dbm/Makefile | 88 -
security/dbm/config/config.mk | 71 -
security/dbm/include/Makefile | 80 -
security/dbm/include/manifest.mn | 59 -
security/dbm/manifest.mn | 49 -
security/dbm/src/Makefile | 80 -
security/dbm/src/config.mk | 67 -
security/dbm/src/dirent.c | 348 -
security/dbm/src/dirent.h | 97 -
security/dbm/src/manifest.mn | 62 -
security/dbm/tests/Makefile | 73 -
security/nss/Makefile | 185 -
security/nss/cmd/.cvsignore | 1 -
security/nss/cmd/Makefile | 61 -
security/nss/cmd/addbuiltin/Makefile | 80 -
security/nss/cmd/addbuiltin/addbuiltin.c | 391 -
security/nss/cmd/addbuiltin/manifest.mn | 52 -
security/nss/cmd/atob/Makefile | 80 -
security/nss/cmd/atob/atob.c | 180 -
security/nss/cmd/atob/manifest.mn | 54 -
security/nss/cmd/bltest/Makefile | 86 -
security/nss/cmd/bltest/blapitest.c | 3745 -
security/nss/cmd/bltest/manifest.mn | 58 -
security/nss/cmd/bltest/tests/README | 49 -
.../nss/cmd/bltest/tests/aes_cbc/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/aes_cbc/iv0 | 1 -
security/nss/cmd/bltest/tests/aes_cbc/key0 | 1 -
.../nss/cmd/bltest/tests/aes_cbc/numtests | 1 -
.../nss/cmd/bltest/tests/aes_cbc/plaintext0 | 1 -
.../nss/cmd/bltest/tests/aes_ecb/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/aes_ecb/key0 | 1 -
.../nss/cmd/bltest/tests/aes_ecb/numtests | 1 -
.../nss/cmd/bltest/tests/aes_ecb/plaintext0 | 1 -
.../cmd/bltest/tests/camellia_cbc/ciphertext0 | 1 -
.../cmd/bltest/tests/camellia_cbc/ciphertext1 | 1 -
.../cmd/bltest/tests/camellia_cbc/ciphertext2 | 1 -
.../nss/cmd/bltest/tests/camellia_cbc/iv0 | 1 -
.../nss/cmd/bltest/tests/camellia_cbc/key0 | 1 -
.../nss/cmd/bltest/tests/camellia_cbc/key1 | 1 -
.../nss/cmd/bltest/tests/camellia_cbc/key2 | 1 -
.../cmd/bltest/tests/camellia_cbc/numtests | 1 -
.../cmd/bltest/tests/camellia_cbc/plaintext0 | 1 -
.../cmd/bltest/tests/camellia_ecb/ciphertext0 | 1 -
.../cmd/bltest/tests/camellia_ecb/ciphertext1 | 1 -
.../cmd/bltest/tests/camellia_ecb/ciphertext2 | 1 -
.../nss/cmd/bltest/tests/camellia_ecb/key0 | 1 -
.../nss/cmd/bltest/tests/camellia_ecb/key1 | 1 -
.../nss/cmd/bltest/tests/camellia_ecb/key2 | 1 -
.../cmd/bltest/tests/camellia_ecb/numtests | 1 -
.../cmd/bltest/tests/camellia_ecb/plaintext0 | 1 -
.../nss/cmd/bltest/tests/des3_cbc/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/des3_cbc/iv0 | 1 -
security/nss/cmd/bltest/tests/des3_cbc/key0 | 1 -
.../nss/cmd/bltest/tests/des3_cbc/numtests | 1 -
.../nss/cmd/bltest/tests/des3_cbc/plaintext0 | 1 -
.../nss/cmd/bltest/tests/des3_ecb/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/des3_ecb/key0 | 1 -
.../nss/cmd/bltest/tests/des3_ecb/numtests | 1 -
.../nss/cmd/bltest/tests/des3_ecb/plaintext0 | 1 -
.../nss/cmd/bltest/tests/des_cbc/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/des_cbc/iv0 | 1 -
security/nss/cmd/bltest/tests/des_cbc/key0 | 1 -
.../nss/cmd/bltest/tests/des_cbc/numtests | 1 -
.../nss/cmd/bltest/tests/des_cbc/plaintext0 | 1 -
.../nss/cmd/bltest/tests/des_ecb/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/des_ecb/key0 | 1 -
.../nss/cmd/bltest/tests/des_ecb/numtests | 1 -
.../nss/cmd/bltest/tests/des_ecb/plaintext0 | 1 -
security/nss/cmd/bltest/tests/dsa/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/dsa/key0 | 6 -
security/nss/cmd/bltest/tests/dsa/keyseed0 | 1 -
security/nss/cmd/bltest/tests/dsa/numtests | 1 -
security/nss/cmd/bltest/tests/dsa/plaintext0 | 1 -
security/nss/cmd/bltest/tests/dsa/pqg0 | 4 -
security/nss/cmd/bltest/tests/dsa/sigseed0 | 1 -
security/nss/cmd/bltest/tests/ecdsa/README | 22 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext0 | 1 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext1 | 1 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext10 | 2 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext11 | 2 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext12 | 2 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext13 | 2 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext14 | 2 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext15 | 2 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext16 | 3 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext17 | 3 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext18 | 3 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext19 | 3 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext2 | 1 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext20 | 3 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext3 | 1 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext4 | 1 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext5 | 1 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext6 | 1 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext7 | 1 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext8 | 2 -
.../nss/cmd/bltest/tests/ecdsa/ciphertext9 | 2 -
security/nss/cmd/bltest/tests/ecdsa/key0 | 2 -
security/nss/cmd/bltest/tests/ecdsa/key1 | 2 -
security/nss/cmd/bltest/tests/ecdsa/key10 | 3 -
security/nss/cmd/bltest/tests/ecdsa/key11 | 3 -
security/nss/cmd/bltest/tests/ecdsa/key12 | 3 -
security/nss/cmd/bltest/tests/ecdsa/key13 | 3 -
security/nss/cmd/bltest/tests/ecdsa/key14 | 3 -
security/nss/cmd/bltest/tests/ecdsa/key15 | 4 -
security/nss/cmd/bltest/tests/ecdsa/key16 | 4 -
security/nss/cmd/bltest/tests/ecdsa/key17 | 4 -
security/nss/cmd/bltest/tests/ecdsa/key18 | 5 -
security/nss/cmd/bltest/tests/ecdsa/key19 | 5 -
security/nss/cmd/bltest/tests/ecdsa/key2 | 2 -
security/nss/cmd/bltest/tests/ecdsa/key20 | 5 -
security/nss/cmd/bltest/tests/ecdsa/key3 | 2 -
security/nss/cmd/bltest/tests/ecdsa/key4 | 2 -
security/nss/cmd/bltest/tests/ecdsa/key5 | 2 -
security/nss/cmd/bltest/tests/ecdsa/key6 | 2 -
security/nss/cmd/bltest/tests/ecdsa/key7 | 2 -
security/nss/cmd/bltest/tests/ecdsa/key8 | 3 -
security/nss/cmd/bltest/tests/ecdsa/key9 | 3 -
security/nss/cmd/bltest/tests/ecdsa/numtests | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext0 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext1 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext10 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext11 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext12 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext13 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext14 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext15 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext16 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext17 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext18 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext19 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext2 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext20 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext3 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext4 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext5 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext6 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext7 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext8 | 1 -
.../nss/cmd/bltest/tests/ecdsa/plaintext9 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed0 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed1 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed10 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed11 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed12 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed13 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed14 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed15 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed16 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed17 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed18 | 2 -
security/nss/cmd/bltest/tests/ecdsa/sigseed19 | 2 -
security/nss/cmd/bltest/tests/ecdsa/sigseed2 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed20 | 2 -
security/nss/cmd/bltest/tests/ecdsa/sigseed3 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed4 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed5 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed6 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed7 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed8 | 1 -
security/nss/cmd/bltest/tests/ecdsa/sigseed9 | 1 -
security/nss/cmd/bltest/tests/md2/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/md2/numtests | 1 -
security/nss/cmd/bltest/tests/md2/plaintext0 | 1 -
security/nss/cmd/bltest/tests/md5/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/md5/numtests | 1 -
security/nss/cmd/bltest/tests/md5/plaintext0 | 1 -
.../nss/cmd/bltest/tests/rc2_cbc/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/rc2_cbc/iv0 | 1 -
security/nss/cmd/bltest/tests/rc2_cbc/key0 | 1 -
.../nss/cmd/bltest/tests/rc2_cbc/numtests | 1 -
.../nss/cmd/bltest/tests/rc2_cbc/plaintext0 | 1 -
.../nss/cmd/bltest/tests/rc2_ecb/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/rc2_ecb/key0 | 1 -
.../nss/cmd/bltest/tests/rc2_ecb/numtests | 1 -
.../nss/cmd/bltest/tests/rc2_ecb/plaintext0 | 1 -
security/nss/cmd/bltest/tests/rc4/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/rc4/ciphertext1 | 1 -
security/nss/cmd/bltest/tests/rc4/key0 | 1 -
security/nss/cmd/bltest/tests/rc4/key1 | 1 -
security/nss/cmd/bltest/tests/rc4/numtests | 1 -
security/nss/cmd/bltest/tests/rc4/plaintext0 | 1 -
security/nss/cmd/bltest/tests/rc4/plaintext1 | 1 -
.../nss/cmd/bltest/tests/rc5_cbc/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/rc5_cbc/iv0 | 1 -
security/nss/cmd/bltest/tests/rc5_cbc/key0 | 1 -
.../nss/cmd/bltest/tests/rc5_cbc/numtests | 1 -
security/nss/cmd/bltest/tests/rc5_cbc/params0 | 2 -
.../nss/cmd/bltest/tests/rc5_cbc/plaintext0 | 1 -
.../nss/cmd/bltest/tests/rc5_ecb/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/rc5_ecb/key0 | 1 -
.../nss/cmd/bltest/tests/rc5_ecb/numtests | 1 -
security/nss/cmd/bltest/tests/rc5_ecb/params0 | 2 -
.../nss/cmd/bltest/tests/rc5_ecb/plaintext0 | 1 -
security/nss/cmd/bltest/tests/rsa/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/rsa/key0 | 4 -
security/nss/cmd/bltest/tests/rsa/numtests | 1 -
security/nss/cmd/bltest/tests/rsa/plaintext0 | 1 -
.../nss/cmd/bltest/tests/seed_cbc/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/seed_cbc/iv0 | 1 -
security/nss/cmd/bltest/tests/seed_cbc/key0 | 1 -
.../nss/cmd/bltest/tests/seed_cbc/numtests | 1 -
.../nss/cmd/bltest/tests/seed_cbc/plaintext0 | 1 -
.../nss/cmd/bltest/tests/seed_ecb/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/seed_ecb/iv0 | 1 -
security/nss/cmd/bltest/tests/seed_ecb/key0 | 1 -
.../nss/cmd/bltest/tests/seed_ecb/numtests | 1 -
.../nss/cmd/bltest/tests/seed_ecb/plaintext0 | 1 -
.../nss/cmd/bltest/tests/sha1/ciphertext0 | 1 -
security/nss/cmd/bltest/tests/sha1/numtests | 1 -
security/nss/cmd/bltest/tests/sha1/plaintext0 | 1 -
.../nss/cmd/bltest/tests/sha256/ciphertext0 | 1 -
.../nss/cmd/bltest/tests/sha256/ciphertext1 | 1 -
security/nss/cmd/bltest/tests/sha256/numtests | 1 -
.../nss/cmd/bltest/tests/sha256/plaintext0 | 1 -
.../nss/cmd/bltest/tests/sha256/plaintext1 | 1 -
.../nss/cmd/bltest/tests/sha384/ciphertext0 | 1 -
.../nss/cmd/bltest/tests/sha384/ciphertext1 | 1 -
security/nss/cmd/bltest/tests/sha384/numtests | 1 -
.../nss/cmd/bltest/tests/sha384/plaintext0 | 1 -
.../nss/cmd/bltest/tests/sha384/plaintext1 | 1 -
.../nss/cmd/bltest/tests/sha512/ciphertext0 | 2 -
.../nss/cmd/bltest/tests/sha512/ciphertext1 | 2 -
security/nss/cmd/bltest/tests/sha512/numtests | 1 -
.../nss/cmd/bltest/tests/sha512/plaintext0 | 1 -
.../nss/cmd/bltest/tests/sha512/plaintext1 | 1 -
security/nss/cmd/btoa/Makefile | 79 -
security/nss/cmd/btoa/btoa.c | 213 -
security/nss/cmd/btoa/manifest.mn | 53 -
security/nss/cmd/certcgi/HOWTO.txt | 168 -
security/nss/cmd/certcgi/Makefile | 80 -
security/nss/cmd/certcgi/ca.html | 51 -
security/nss/cmd/certcgi/ca_form.html | 388 -
security/nss/cmd/certcgi/certcgi.c | 2408 -
security/nss/cmd/certcgi/index.html | 821 -
security/nss/cmd/certcgi/main.html | 108 -
security/nss/cmd/certcgi/manifest.mn | 54 -
security/nss/cmd/certcgi/nscp_ext_form.html | 116 -
security/nss/cmd/certcgi/stnd_ext_form.html | 250 -
security/nss/cmd/certutil/Makefile | 80 -
security/nss/cmd/certutil/certext.c | 1817 -
security/nss/cmd/certutil/certutil.c | 2985 -
security/nss/cmd/certutil/certutil.h | 82 -
security/nss/cmd/certutil/keystuff.c | 610 -
security/nss/cmd/certutil/manifest.mn | 57 -
security/nss/cmd/checkcert/Makefile | 80 -
security/nss/cmd/checkcert/checkcert.c | 591 -
security/nss/cmd/checkcert/manifest.mn | 51 -
security/nss/cmd/crlutil/Makefile | 85 -
security/nss/cmd/crlutil/crlgen.c | 1630 -
security/nss/cmd/crlutil/crlgen.h | 182 -
security/nss/cmd/crlutil/crlgen_lex.c | 1783 -
security/nss/cmd/crlutil/crlgen_lex_fix.sed | 6 -
security/nss/cmd/crlutil/crlgen_lex_orig.l | 177 -
security/nss/cmd/crlutil/crlutil.c | 1089 -
security/nss/cmd/crlutil/manifest.mn | 57 -
security/nss/cmd/crmf-cgi/Makefile | 85 -
security/nss/cmd/crmf-cgi/config.mk | 48 -
security/nss/cmd/crmf-cgi/crmfcgi.c | 1122 -
security/nss/cmd/crmf-cgi/crmfcgi.html | 168 -
security/nss/cmd/crmf-cgi/manifest.mn | 65 -
security/nss/cmd/crmftest/Makefile | 96 -
security/nss/cmd/crmftest/config.mk | 47 -
security/nss/cmd/crmftest/manifest.mn | 57 -
security/nss/cmd/crmftest/testcrmf.c | 1710 -
security/nss/cmd/dbck/Makefile | 79 -
security/nss/cmd/dbck/dbck.c | 1385 -
security/nss/cmd/dbck/dbrecover.c | 702 -
security/nss/cmd/dbck/manifest.mn | 54 -
security/nss/cmd/dbtest/Makefile | 78 -
security/nss/cmd/dbtest/dbtest.c | 266 -
security/nss/cmd/dbtest/manifest.mn | 54 -
security/nss/cmd/derdump/Makefile | 80 -
security/nss/cmd/derdump/derdump.c | 137 -
security/nss/cmd/derdump/manifest.mn | 53 -
security/nss/cmd/digest/Makefile | 80 -
security/nss/cmd/digest/digest.c | 256 -
security/nss/cmd/digest/manifest.mn | 54 -
security/nss/cmd/ecperf/Makefile | 78 -
security/nss/cmd/ecperf/ecperf.c | 760 -
security/nss/cmd/ecperf/manifest.mn | 56 -
security/nss/cmd/fipstest/Makefile | 81 -
security/nss/cmd/fipstest/aes.sh | 94 -
security/nss/cmd/fipstest/dsa.sh | 34 -
security/nss/cmd/fipstest/ecdsa.sh | 29 -
security/nss/cmd/fipstest/fipstest.c | 5071 --
security/nss/cmd/fipstest/hmac.sh | 20 -
security/nss/cmd/fipstest/manifest.mn | 55 -
security/nss/cmd/fipstest/rng.sh | 19 -
security/nss/cmd/fipstest/rsa.sh | 20 -
security/nss/cmd/fipstest/sha.sh | 46 -
security/nss/cmd/fipstest/tdea.sh | 87 -
security/nss/cmd/lib/Makefile | 82 -
security/nss/cmd/lib/NSPRerrs.h | 153 -
security/nss/cmd/lib/SECerrs.h | 564 -
security/nss/cmd/lib/SSLerrs.h | 392 -
security/nss/cmd/lib/berparse.c | 407 -
security/nss/cmd/lib/config.mk | 51 -
security/nss/cmd/lib/derprint.c | 622 -
security/nss/cmd/lib/ffs.c | 51 -
security/nss/cmd/lib/manifest.mn | 65 -
security/nss/cmd/lib/moreoids.c | 180 -
security/nss/cmd/lib/pk11table.c | 1449 -
security/nss/cmd/lib/pk11table.h | 212 -
security/nss/cmd/lib/pppolicy.c | 299 -
security/nss/cmd/lib/secerror.c | 110 -
security/nss/cmd/lib/secpwd.c | 199 -
security/nss/cmd/lib/secutil.c | 4165 -
security/nss/cmd/lib/secutil.h | 460 -
security/nss/cmd/lib/wincemain.c | 65 -
security/nss/cmd/libpkix/Makefile | 79 -
security/nss/cmd/libpkix/config.mk | 42 -
security/nss/cmd/libpkix/manifest.mn | 44 -
security/nss/cmd/libpkix/perf/Makefile | 79 -
.../cmd/libpkix/perf/libpkix_buildthreads.c | 382 -
security/nss/cmd/libpkix/perf/manifest.mn | 54 -
security/nss/cmd/libpkix/perf/nss_threads.c | 197 -
security/nss/cmd/libpkix/pkix/Makefile | 81 -
.../nss/cmd/libpkix/pkix/certsel/Makefile | 80 -
.../nss/cmd/libpkix/pkix/certsel/manifest.mn | 54 -
.../libpkix/pkix/certsel/test_certselector.c | 1992 -
.../pkix/certsel/test_comcertselparams.c | 953 -
.../nss/cmd/libpkix/pkix/checker/Makefile | 80 -
.../nss/cmd/libpkix/pkix/checker/manifest.mn | 52 -
.../pkix/checker/test_certchainchecker.c | 255 -
security/nss/cmd/libpkix/pkix/crlsel/Makefile | 80 -
.../nss/cmd/libpkix/pkix/crlsel/manifest.mn | 54 -
.../pkix/crlsel/test_comcrlselparams.c | 474 -
.../libpkix/pkix/crlsel/test_crlselector.c | 206 -
security/nss/cmd/libpkix/pkix/manifest.mn | 44 -
security/nss/cmd/libpkix/pkix/params/Makefile | 80 -
.../nss/cmd/libpkix/pkix/params/manifest.mn | 56 -
.../libpkix/pkix/params/test_buildparams.c | 212 -
.../cmd/libpkix/pkix/params/test_procparams.c | 552 -
.../libpkix/pkix/params/test_resourcelimits.c | 147 -
.../libpkix/pkix/params/test_trustanchor.c | 295 -
.../cmd/libpkix/pkix/params/test_valparams.c | 301 -
.../nss/cmd/libpkix/pkix/results/Makefile | 80 -
.../nss/cmd/libpkix/pkix/results/manifest.mn | 56 -
.../libpkix/pkix/results/test_buildresult.c | 251 -
.../libpkix/pkix/results/test_policynode.c | 712 -
.../cmd/libpkix/pkix/results/test_valresult.c | 240 -
.../libpkix/pkix/results/test_verifynode.c | 153 -
security/nss/cmd/libpkix/pkix/store/Makefile | 80 -
.../nss/cmd/libpkix/pkix/store/manifest.mn | 52 -
.../nss/cmd/libpkix/pkix/store/test_store.c | 229 -
security/nss/cmd/libpkix/pkix/top/Makefile | 80 -
security/nss/cmd/libpkix/pkix/top/manifest.mn | 66 -
.../cmd/libpkix/pkix/top/test_basicchecker.c | 276 -
.../pkix/top/test_basicconstraintschecker.c | 177 -
.../cmd/libpkix/pkix/top/test_buildchain.c | 504 -
.../pkix/top/test_buildchain_partialchain.c | 854 -
.../pkix/top/test_buildchain_resourcelimits.c | 530 -
.../pkix/top/test_buildchain_uchecker.c | 406 -
.../libpkix/pkix/top/test_customcrlchecker.c | 497 -
.../pkix/top/test_defaultcrlchecker2stores.c | 274 -
security/nss/cmd/libpkix/pkix/top/test_ocsp.c | 349 -
.../cmd/libpkix/pkix/top/test_policychecker.c | 595 -
.../pkix/top/test_subjaltnamechecker.c | 299 -
.../cmd/libpkix/pkix/top/test_validatechain.c | 265 -
.../libpkix/pkix/top/test_validatechain_NB.c | 402 -
.../libpkix/pkix/top/test_validatechain_bc.c | 289 -
security/nss/cmd/libpkix/pkix/util/Makefile | 80 -
.../nss/cmd/libpkix/pkix/util/manifest.mn | 56 -
.../nss/cmd/libpkix/pkix/util/test_error.c | 450 -
.../nss/cmd/libpkix/pkix/util/test_list.c | 878 -
.../nss/cmd/libpkix/pkix/util/test_list2.c | 154 -
.../nss/cmd/libpkix/pkix/util/test_logger.c | 366 -
security/nss/cmd/libpkix/pkix_pl/Makefile | 81 -
security/nss/cmd/libpkix/pkix_pl/manifest.mn | 44 -
.../nss/cmd/libpkix/pkix_pl/module/Makefile | 80 -
.../cmd/libpkix/pkix_pl/module/manifest.mn | 57 -
.../pkix_pl/module/test_colcertstore.c | 285 -
.../libpkix/pkix_pl/module/test_ekuchecker.c | 321 -
.../pkix_pl/module/test_httpcertstore.c | 324 -
.../pkix_pl/module/test_pk11certstore.c | 664 -
.../cmd/libpkix/pkix_pl/module/test_socket.c | 600 -
security/nss/cmd/libpkix/pkix_pl/pki/Makefile | 80 -
.../nss/cmd/libpkix/pkix_pl/pki/manifest.mn | 61 -
.../pkix_pl/pki/test_authorityinfoaccess.c | 148 -
.../nss/cmd/libpkix/pkix_pl/pki/test_cert.c | 2360 -
.../nss/cmd/libpkix/pkix_pl/pki/test_crl.c | 341 -
.../cmd/libpkix/pkix_pl/pki/test_crlentry.c | 244 -
.../nss/cmd/libpkix/pkix_pl/pki/test_date.c | 141 -
.../libpkix/pkix_pl/pki/test_generalname.c | 155 -
.../pkix_pl/pki/test_nameconstraints.c | 157 -
.../pkix_pl/pki/test_subjectinfoaccess.c | 166 -
.../cmd/libpkix/pkix_pl/pki/test_x500name.c | 210 -
.../nss/cmd/libpkix/pkix_pl/system/Makefile | 80 -
.../cmd/libpkix/pkix_pl/system/manifest.mn | 71 -
.../cmd/libpkix/pkix_pl/system/stress_test.c | 188 -
.../cmd/libpkix/pkix_pl/system/test_bigint.c | 227 -
.../libpkix/pkix_pl/system/test_bytearray.c | 274 -
.../libpkix/pkix_pl/system/test_hashtable.c | 458 -
.../nss/cmd/libpkix/pkix_pl/system/test_mem.c | 164 -
.../libpkix/pkix_pl/system/test_monitorlock.c | 144 -
.../cmd/libpkix/pkix_pl/system/test_mutex.c | 136 -
.../cmd/libpkix/pkix_pl/system/test_mutex2.c | 193 -
.../cmd/libpkix/pkix_pl/system/test_mutex3.c | 127 -
.../cmd/libpkix/pkix_pl/system/test_object.c | 322 -
.../nss/cmd/libpkix/pkix_pl/system/test_oid.c | 246 -
.../cmd/libpkix/pkix_pl/system/test_rwlock.c | 227 -
.../cmd/libpkix/pkix_pl/system/test_string.c | 479 -
.../cmd/libpkix/pkix_pl/system/test_string2.c | 375 -
security/nss/cmd/libpkix/pkixlibs.mk | 60 -
security/nss/cmd/libpkix/pkixrules.mk | 40 -
security/nss/cmd/libpkix/pkixutil/Makefile | 75 -
security/nss/cmd/libpkix/pkixutil/manifest.mn | 73 -
security/nss/cmd/libpkix/pkixutil/pkixutil.c | 335 -
security/nss/cmd/libpkix/sample_apps/Makefile | 79 -
.../nss/cmd/libpkix/sample_apps/build_chain.c | 298 -
.../nss/cmd/libpkix/sample_apps/dumpcert.c | 217 -
.../nss/cmd/libpkix/sample_apps/dumpcrl.c | 220 -
.../nss/cmd/libpkix/sample_apps/manifest.mn | 56 -
.../cmd/libpkix/sample_apps/validate_chain.c | 267 -
security/nss/cmd/libpkix/testutil/Makefile | 84 -
security/nss/cmd/libpkix/testutil/config.mk | 48 -
security/nss/cmd/libpkix/testutil/manifest.mn | 59 -
.../nss/cmd/libpkix/testutil/pkixutil.def | 81 -
security/nss/cmd/libpkix/testutil/testutil.c | 619 -
security/nss/cmd/libpkix/testutil/testutil.h | 337 -
.../nss/cmd/libpkix/testutil/testutil_nss.c | 663 -
.../nss/cmd/libpkix/testutil/testutil_nss.h | 153 -
security/nss/cmd/makepqg/Makefile | 81 -
security/nss/cmd/makepqg/makepqg.c | 363 -
security/nss/cmd/makepqg/manifest.mn | 51 -
security/nss/cmd/makepqg/testit.ksh | 45 -
security/nss/cmd/manifest.mn | 98 -
security/nss/cmd/modutil/Makefile | 84 -
security/nss/cmd/modutil/README | 7 -
security/nss/cmd/modutil/error.h | 189 -
security/nss/cmd/modutil/install-ds.c | 1544 -
security/nss/cmd/modutil/install-ds.h | 293 -
security/nss/cmd/modutil/install.c | 988 -
security/nss/cmd/modutil/install.h | 133 -
security/nss/cmd/modutil/installparse.c | 429 -
security/nss/cmd/modutil/installparse.h | 3 -
security/nss/cmd/modutil/installparse.l | 169 -
security/nss/cmd/modutil/installparse.y | 136 -
security/nss/cmd/modutil/instsec.c | 181 -
security/nss/cmd/modutil/lex.Pk11Install_yy.c | 1694 -
security/nss/cmd/modutil/manifest.mn | 66 -
security/nss/cmd/modutil/modutil.c | 979 -
security/nss/cmd/modutil/modutil.h | 70 -
security/nss/cmd/modutil/pk11.c | 983 -
security/nss/cmd/modutil/pk11jar.html | 311 -
security/nss/cmd/modutil/rules.mk | 58 -
security/nss/cmd/modutil/specification.html | 354 -
security/nss/cmd/ocspclnt/Makefile | 77 -
security/nss/cmd/ocspclnt/manifest.mn | 58 -
security/nss/cmd/ocspclnt/ocspclnt.c | 1293 -
security/nss/cmd/oidcalc/Makefile | 80 -
security/nss/cmd/oidcalc/manifest.mn | 51 -
security/nss/cmd/oidcalc/oidcalc.c | 120 -
security/nss/cmd/p7content/Makefile | 79 -
security/nss/cmd/p7content/manifest.mn | 47 -
security/nss/cmd/p7content/p7content.c | 287 -
security/nss/cmd/p7env/Makefile | 79 -
security/nss/cmd/p7env/manifest.mn | 47 -
security/nss/cmd/p7env/p7env.c | 275 -
security/nss/cmd/p7sign/Makefile | 79 -
security/nss/cmd/p7sign/manifest.mn | 47 -
security/nss/cmd/p7sign/p7sign.c | 309 -
security/nss/cmd/p7verify/Makefile | 79 -
security/nss/cmd/p7verify/manifest.mn | 47 -
security/nss/cmd/p7verify/p7verify.c | 308 -
security/nss/cmd/pk11mode/Makefile | 97 -
security/nss/cmd/pk11mode/manifest.mn | 48 -
security/nss/cmd/pk11mode/pk11mode.c | 5336 --
security/nss/cmd/pk11util/Makefile | 80 -
security/nss/cmd/pk11util/manifest.mn | 55 -
security/nss/cmd/pk11util/pk11util.c | 2192 -
security/nss/cmd/pk11util/scripts/dosign | 162 -
security/nss/cmd/pk11util/scripts/hssign | 48 -
security/nss/cmd/pk11util/scripts/lcert | 35 -
security/nss/cmd/pk11util/scripts/mechanisms | 11 -
security/nss/cmd/pk11util/scripts/pLabel1 | 6 -
security/nss/cmd/pk11util/scripts/pMechanisms | 8 -
security/nss/cmd/pk11util/scripts/pcert | 30 -
security/nss/cmd/pk12util/Makefile | 80 -
security/nss/cmd/pk12util/manifest.mn | 55 -
security/nss/cmd/pk12util/pk12util.c | 1128 -
security/nss/cmd/pk12util/pk12util.h | 73 -
security/nss/cmd/platlibs.mk | 271 -
security/nss/cmd/platrules.mk | 51 -
security/nss/cmd/pp/Makefile | 79 -
security/nss/cmd/pp/manifest.mn | 51 -
security/nss/cmd/pp/pp.c | 190 -
security/nss/cmd/pwdecrypt/Makefile | 77 -
security/nss/cmd/pwdecrypt/manifest.mn | 58 -
security/nss/cmd/pwdecrypt/pwdecrypt.c | 368 -
security/nss/cmd/rsaperf/Makefile | 78 -
security/nss/cmd/rsaperf/defkey.c | 325 -
security/nss/cmd/rsaperf/manifest.mn | 56 -
security/nss/cmd/rsaperf/rsaperf.c | 714 -
security/nss/cmd/samples/cert | 15 -
security/nss/cmd/samples/cert0 | Bin 505 -> 0 bytes
security/nss/cmd/samples/cert1 | Bin 515 -> 0 bytes
security/nss/cmd/samples/cert2 | Bin 528 -> 0 bytes
security/nss/cmd/samples/pkcs7.ber | Bin 1771 -> 0 bytes
security/nss/cmd/samples/pkcs7bday.ber | Bin 1881 -> 0 bytes
security/nss/cmd/samples/pkcs7cnet.ber | Bin 3330 -> 0 bytes
security/nss/cmd/samples/pkcs7news.ber | Bin 255328 -> 0 bytes
security/nss/cmd/samples/x509v3.der | Bin 463 -> 0 bytes
security/nss/cmd/samples/x509v3.txt | 10 -
security/nss/cmd/sdrtest/Makefile | 77 -
security/nss/cmd/sdrtest/manifest.mn | 58 -
security/nss/cmd/sdrtest/sdrtest.c | 451 -
security/nss/cmd/selfserv/Makefile | 78 -
security/nss/cmd/selfserv/manifest.mn | 52 -
security/nss/cmd/selfserv/selfserv.c | 2293 -
security/nss/cmd/shlibsign/Makefile | 124 -
security/nss/cmd/shlibsign/mangle/Makefile | 97 -
security/nss/cmd/shlibsign/mangle/mangle.c | 175 -
security/nss/cmd/shlibsign/mangle/manifest.mn | 56 -
security/nss/cmd/shlibsign/manifest.mn | 62 -
security/nss/cmd/shlibsign/shlibsign.c | 1123 -
security/nss/cmd/shlibsign/sign.cmd | 21 -
security/nss/cmd/shlibsign/sign.sh | 40 -
security/nss/cmd/signtool/Makefile | 75 -
security/nss/cmd/signtool/README | 128 -
security/nss/cmd/signtool/certgen.c | 738 -
security/nss/cmd/signtool/javascript.c | 1867 -
security/nss/cmd/signtool/list.c | 251 -
security/nss/cmd/signtool/manifest.mn | 57 -
security/nss/cmd/signtool/sign.c | 869 -
security/nss/cmd/signtool/signtool.c | 1108 -
security/nss/cmd/signtool/signtool.h | 146 -
security/nss/cmd/signtool/util.c | 1131 -
security/nss/cmd/signtool/verify.c | 371 -
security/nss/cmd/signtool/zip.c | 721 -
security/nss/cmd/signtool/zip.h | 103 -
security/nss/cmd/signver/Makefile | 75 -
security/nss/cmd/signver/examples/1/form.pl | 54 -
.../cmd/signver/examples/1/signedForm.html | 87 -
.../cmd/signver/examples/1/signedForm.nt.html | 87 -
.../nss/cmd/signver/examples/1/signedForm.pl | 92 -
security/nss/cmd/signver/manifest.mn | 56 -
security/nss/cmd/signver/pk7print.c | 900 -
security/nss/cmd/signver/signver.c | 347 -
security/nss/cmd/smimetools/Makefile | 81 -
security/nss/cmd/smimetools/cmsutil.c | 1651 -
security/nss/cmd/smimetools/manifest.mn | 49 -
security/nss/cmd/smimetools/rules.mk | 40 -
security/nss/cmd/smimetools/smime | 581 -
security/nss/cmd/ssltap/Makefile | 83 -
security/nss/cmd/ssltap/manifest.mn | 55 -
security/nss/cmd/ssltap/ssltap-manual.html | 202 -
security/nss/cmd/ssltap/ssltap.c | 1773 -
security/nss/cmd/strsclnt/Makefile | 79 -
security/nss/cmd/strsclnt/manifest.mn | 51 -
security/nss/cmd/strsclnt/strsclnt.c | 1540 -
security/nss/cmd/symkeyutil/Makefile | 80 -
security/nss/cmd/symkeyutil/manifest.mn | 55 -
security/nss/cmd/symkeyutil/symkey.man | 182 -
security/nss/cmd/symkeyutil/symkeyutil.c | 1135 -
security/nss/cmd/tests/Makefile | 77 -
security/nss/cmd/tests/baddbdir.c | 68 -
security/nss/cmd/tests/conflict.c | 58 -
security/nss/cmd/tests/manifest.mn | 58 -
security/nss/cmd/tests/nonspr10.c | 121 -
security/nss/cmd/tests/remtest.c | 167 -
security/nss/cmd/tstclnt/Makefile | 78 -
security/nss/cmd/tstclnt/manifest.mn | 54 -
security/nss/cmd/tstclnt/tstclnt.c | 1065 -
security/nss/cmd/vfychain/Makefile | 78 -
security/nss/cmd/vfychain/manifest.mn | 55 -
security/nss/cmd/vfychain/vfychain.c | 794 -
security/nss/cmd/vfyserv/Makefile | 78 -
security/nss/cmd/vfyserv/manifest.mn | 55 -
security/nss/cmd/vfyserv/vfyserv.c | 594 -
security/nss/cmd/vfyserv/vfyserv.h | 180 -
security/nss/cmd/vfyserv/vfyutil.c | 665 -
security/nss/cmd/zlib/Makefile | 88 -
security/nss/cmd/zlib/README | 125 -
security/nss/cmd/zlib/adler32.c | 149 -
security/nss/cmd/zlib/compress.c | 79 -
security/nss/cmd/zlib/config.mk | 48 -
security/nss/cmd/zlib/crc32.c | 423 -
security/nss/cmd/zlib/crc32.h | 441 -
security/nss/cmd/zlib/deflate.c | 1736 -
security/nss/cmd/zlib/deflate.h | 331 -
security/nss/cmd/zlib/example.c | 565 -
security/nss/cmd/zlib/gzio.c | 1026 -
security/nss/cmd/zlib/infback.c | 623 -
security/nss/cmd/zlib/inffast.c | 318 -
security/nss/cmd/zlib/inffast.h | 11 -
security/nss/cmd/zlib/inffixed.h | 94 -
security/nss/cmd/zlib/inflate.c | 1368 -
security/nss/cmd/zlib/inflate.h | 115 -
security/nss/cmd/zlib/inftrees.c | 329 -
security/nss/cmd/zlib/inftrees.h | 55 -
security/nss/cmd/zlib/manifest.mn | 68 -
security/nss/cmd/zlib/minigzip.c | 318 -
security/nss/cmd/zlib/trees.c | 1219 -
security/nss/cmd/zlib/trees.h | 128 -
security/nss/cmd/zlib/uncompr.c | 61 -
security/nss/cmd/zlib/zconf.h | 324 -
security/nss/cmd/zlib/zlib.h | 1357 -
security/nss/cmd/zlib/zutil.c | 318 -
security/nss/cmd/zlib/zutil.h | 267 -
security/nss/lib/Makefile | 86 -
security/nss/lib/base/Makefile | 44 -
security/nss/lib/base/arena.c | 1156 -
security/nss/lib/base/base.h | 1430 -
security/nss/lib/base/baset.h | 161 -
security/nss/lib/base/config.mk | 52 -
security/nss/lib/base/error.c | 305 -
security/nss/lib/base/errorval.c | 98 -
security/nss/lib/base/hash.c | 409 -
security/nss/lib/base/hashops.c | 120 -
security/nss/lib/base/item.c | 244 -
security/nss/lib/base/libc.c | 200 -
security/nss/lib/base/list.c | 437 -
security/nss/lib/base/manifest.mn | 71 -
security/nss/lib/base/nssbase.h | 170 -
security/nss/lib/base/nssbaset.h | 155 -
security/nss/lib/base/tracker.c | 447 -
security/nss/lib/base/utf8.c | 762 -
security/nss/lib/certdb/.cvsignore | 1 -
security/nss/lib/certdb/Makefile | 80 -
security/nss/lib/certdb/alg1485.c | 1578 -
security/nss/lib/certdb/cert.h | 1669 -
security/nss/lib/certdb/certdb.c | 3244 -
security/nss/lib/certdb/certdb.h | 97 -
security/nss/lib/certdb/certi.h | 395 -
security/nss/lib/certdb/certt.h | 1320 -
security/nss/lib/certdb/certv3.c | 399 -
security/nss/lib/certdb/certxutl.c | 531 -
security/nss/lib/certdb/certxutl.h | 82 -
security/nss/lib/certdb/config.mk | 47 -
security/nss/lib/certdb/crl.c | 3560 -
security/nss/lib/certdb/genname.c | 1974 -
security/nss/lib/certdb/genname.h | 138 -
security/nss/lib/certdb/manifest.mn | 74 -
security/nss/lib/certdb/polcyxtn.c | 860 -
security/nss/lib/certdb/secname.c | 742 -
security/nss/lib/certdb/stanpcertdb.c | 1031 -
security/nss/lib/certdb/xauthkid.c | 160 -
security/nss/lib/certdb/xbsconst.c | 177 -
security/nss/lib/certdb/xconst.c | 318 -
security/nss/lib/certdb/xconst.h | 68 -
security/nss/lib/certhigh/Makefile | 80 -
security/nss/lib/certhigh/certhigh.c | 1130 -
security/nss/lib/certhigh/certhtml.c | 312 -
security/nss/lib/certhigh/certreq.c | 352 -
security/nss/lib/certhigh/certvfy.c | 1996 -
security/nss/lib/certhigh/certvfypkix.c | 2276 -
security/nss/lib/certhigh/certvfypkixprint.c | 239 -
security/nss/lib/certhigh/config.mk | 47 -
security/nss/lib/certhigh/crlv2.c | 194 -
security/nss/lib/certhigh/manifest.mn | 68 -
security/nss/lib/certhigh/ocsp.c | 5548 --
security/nss/lib/certhigh/ocsp.h | 634 -
security/nss/lib/certhigh/ocspi.h | 172 -
security/nss/lib/certhigh/ocspt.h | 316 -
security/nss/lib/certhigh/ocspti.h | 409 -
security/nss/lib/certhigh/xcrldist.c | 249 -
security/nss/lib/ckfw/Makefile | 72 -
security/nss/lib/ckfw/builtins/Makefile | 102 -
security/nss/lib/ckfw/builtins/README | 48 -
security/nss/lib/ckfw/builtins/anchor.c | 53 -
security/nss/lib/ckfw/builtins/bfind.c | 286 -
security/nss/lib/ckfw/builtins/binst.c | 138 -
security/nss/lib/ckfw/builtins/bobject.c | 258 -
security/nss/lib/ckfw/builtins/bsession.c | 111 -
security/nss/lib/ckfw/builtins/bslot.c | 127 -
security/nss/lib/ckfw/builtins/btoken.c | 187 -
security/nss/lib/ckfw/builtins/builtins.h | 108 -
security/nss/lib/ckfw/builtins/certdata.c | 19965 -----
security/nss/lib/ckfw/builtins/certdata.perl | 299 -
security/nss/lib/ckfw/builtins/certdata.txt | 20264 -----
security/nss/lib/ckfw/builtins/ckbiver.c | 58 -
security/nss/lib/ckfw/builtins/config.mk | 67 -
security/nss/lib/ckfw/builtins/constants.c | 97 -
security/nss/lib/ckfw/builtins/manifest.mn | 65 -
security/nss/lib/ckfw/builtins/nssckbi.def | 58 -
security/nss/lib/ckfw/builtins/nssckbi.h | 90 -
security/nss/lib/ckfw/builtins/nssckbi.rc | 96 -
security/nss/lib/ckfw/capi/Makefile | 108 -
security/nss/lib/ckfw/capi/README | 7 -
security/nss/lib/ckfw/capi/anchor.c | 55 -
security/nss/lib/ckfw/capi/cfind.c | 618 -
security/nss/lib/ckfw/capi/cinst.c | 148 -
security/nss/lib/ckfw/capi/ckcapi.h | 309 -
security/nss/lib/ckfw/capi/ckcapiver.c | 59 -
security/nss/lib/ckfw/capi/cobject.c | 2346 -
security/nss/lib/ckfw/capi/config.mk | 67 -
security/nss/lib/ckfw/capi/constants.c | 98 -
security/nss/lib/ckfw/capi/crsa.c | 748 -
security/nss/lib/ckfw/capi/csession.c | 131 -
security/nss/lib/ckfw/capi/cslot.c | 129 -
security/nss/lib/ckfw/capi/ctoken.c | 246 -
security/nss/lib/ckfw/capi/manifest.mn | 66 -
security/nss/lib/ckfw/capi/nsscapi.def | 58 -
security/nss/lib/ckfw/capi/nsscapi.h | 75 -
security/nss/lib/ckfw/capi/nsscapi.rc | 96 -
security/nss/lib/ckfw/capi/staticobj.c | 77 -
security/nss/lib/ckfw/ck.api | 575 -
security/nss/lib/ckfw/ck.h | 124 -
security/nss/lib/ckfw/ckapi.perl | 515 -
security/nss/lib/ckfw/ckfw.h | 2462 -
security/nss/lib/ckfw/ckfwm.h | 164 -
security/nss/lib/ckfw/ckfwtm.h | 59 -
security/nss/lib/ckfw/ckmd.h | 68 -
security/nss/lib/ckfw/ckt.h | 40 -
security/nss/lib/ckfw/config.mk | 58 -
security/nss/lib/ckfw/crypto.c | 377 -
security/nss/lib/ckfw/dbm/Makefile | 42 -
security/nss/lib/ckfw/dbm/anchor.c | 53 -
security/nss/lib/ckfw/dbm/ckdbm.h | 284 -
security/nss/lib/ckfw/dbm/config.mk | 41 -
security/nss/lib/ckfw/dbm/db.c | 1068 -
security/nss/lib/ckfw/dbm/find.c | 169 -
security/nss/lib/ckfw/dbm/instance.c | 199 -
security/nss/lib/ckfw/dbm/manifest.mn | 58 -
security/nss/lib/ckfw/dbm/object.c | 207 -
security/nss/lib/ckfw/dbm/session.c | 301 -
security/nss/lib/ckfw/dbm/slot.c | 217 -
security/nss/lib/ckfw/dbm/token.c | 318 -
security/nss/lib/ckfw/find.c | 415 -
security/nss/lib/ckfw/hash.c | 337 -
security/nss/lib/ckfw/instance.c | 1372 -
security/nss/lib/ckfw/manifest.mn | 86 -
security/nss/lib/ckfw/mechanism.c | 1218 -
security/nss/lib/ckfw/mutex.c | 305 -
security/nss/lib/ckfw/nssck.api | 1890 -
security/nss/lib/ckfw/nssckepv.h | 42 -
security/nss/lib/ckfw/nssckft.h | 43 -
security/nss/lib/ckfw/nssckfw.h | 526 -
security/nss/lib/ckfw/nssckfwc.h | 1049 -
security/nss/lib/ckfw/nssckfwt.h | 146 -
security/nss/lib/ckfw/nssckg.h | 42 -
security/nss/lib/ckfw/nssckmdt.h | 1981 -
security/nss/lib/ckfw/nssckt.h | 45 -
security/nss/lib/ckfw/nssmkey/Makefile | 105 -
security/nss/lib/ckfw/nssmkey/README | 21 -
security/nss/lib/ckfw/nssmkey/ckmk.h | 236 -
security/nss/lib/ckfw/nssmkey/ckmkver.c | 59 -
security/nss/lib/ckfw/nssmkey/config.mk | 57 -
security/nss/lib/ckfw/nssmkey/manchor.c | 55 -
security/nss/lib/ckfw/nssmkey/manifest.mn | 66 -
security/nss/lib/ckfw/nssmkey/mconstants.c | 96 -
security/nss/lib/ckfw/nssmkey/mfind.c | 404 -
security/nss/lib/ckfw/nssmkey/minst.c | 148 -
security/nss/lib/ckfw/nssmkey/mobject.c | 1961 -
security/nss/lib/ckfw/nssmkey/mrsa.c | 547 -
security/nss/lib/ckfw/nssmkey/msession.c | 131 -
security/nss/lib/ckfw/nssmkey/mslot.c | 129 -
security/nss/lib/ckfw/nssmkey/mtoken.c | 246 -
security/nss/lib/ckfw/nssmkey/nssmkey.def | 58 -
security/nss/lib/ckfw/nssmkey/nssmkey.h | 75 -
security/nss/lib/ckfw/nssmkey/staticobj.c | 74 -
security/nss/lib/ckfw/object.c | 1059 -
security/nss/lib/ckfw/session.c | 2496 -
security/nss/lib/ckfw/sessobj.c | 1111 -
security/nss/lib/ckfw/slot.c | 759 -
security/nss/lib/ckfw/token.c | 1928 -
security/nss/lib/ckfw/wrap.c | 5705 --
security/nss/lib/crmf/Makefile | 81 -
security/nss/lib/crmf/asn1cmn.c | 252 -
security/nss/lib/crmf/challcli.c | 274 -
security/nss/lib/crmf/cmmf.h | 1122 -
security/nss/lib/crmf/cmmfasn1.c | 164 -
security/nss/lib/crmf/cmmfchal.c | 322 -
security/nss/lib/crmf/cmmfi.h | 130 -
security/nss/lib/crmf/cmmfit.h | 148 -
security/nss/lib/crmf/cmmfrec.c | 350 -
security/nss/lib/crmf/cmmfresp.c | 315 -
security/nss/lib/crmf/cmmft.h | 105 -
security/nss/lib/crmf/config.mk | 48 -
security/nss/lib/crmf/crmf.h | 1782 -
security/nss/lib/crmf/crmfcont.c | 1190 -
security/nss/lib/crmf/crmfdec.c | 393 -
security/nss/lib/crmf/crmfenc.c | 87 -
security/nss/lib/crmf/crmffut.h | 393 -
security/nss/lib/crmf/crmfget.c | 482 -
security/nss/lib/crmf/crmfi.h | 190 -
security/nss/lib/crmf/crmfit.h | 219 -
security/nss/lib/crmf/crmfpop.c | 632 -
security/nss/lib/crmf/crmfreq.c | 702 -
security/nss/lib/crmf/crmft.h | 220 -
security/nss/lib/crmf/crmftmpl.c | 302 -
security/nss/lib/crmf/encutil.c | 66 -
security/nss/lib/crmf/manifest.mn | 78 -
security/nss/lib/crmf/respcli.c | 169 -
security/nss/lib/crmf/respcmn.c | 438 -
security/nss/lib/crmf/servget.c | 1009 -
security/nss/lib/cryptohi/Makefile | 81 -
security/nss/lib/cryptohi/config.mk | 47 -
security/nss/lib/cryptohi/cryptohi.h | 401 -
security/nss/lib/cryptohi/cryptoht.h | 48 -
security/nss/lib/cryptohi/dsautil.c | 300 -
security/nss/lib/cryptohi/key.h | 43 -
security/nss/lib/cryptohi/keyhi.h | 311 -
security/nss/lib/cryptohi/keyi.h | 57 -
security/nss/lib/cryptohi/keyt.h | 43 -
security/nss/lib/cryptohi/keythi.h | 255 -
security/nss/lib/cryptohi/manifest.mn | 68 -
security/nss/lib/cryptohi/sechash.c | 422 -
security/nss/lib/cryptohi/seckey.c | 2530 -
security/nss/lib/cryptohi/secsign.c | 518 -
security/nss/lib/cryptohi/secvfy.c | 750 -
security/nss/lib/dev/Makefile | 57 -
security/nss/lib/dev/ckhelper.c | 620 -
security/nss/lib/dev/ckhelper.h | 197 -
security/nss/lib/dev/config.mk | 52 -
security/nss/lib/dev/dev.h | 978 -
security/nss/lib/dev/devm.h | 245 -
security/nss/lib/dev/devslot.c | 298 -
security/nss/lib/dev/devt.h | 196 -
security/nss/lib/dev/devtm.h | 61 -
security/nss/lib/dev/devtoken.c | 1602 -
security/nss/lib/dev/devutil.c | 1043 -
security/nss/lib/dev/manifest.mn | 68 -
security/nss/lib/dev/nssdev.h | 75 -
security/nss/lib/dev/nssdevt.h | 72 -
security/nss/lib/freebl/Makefile | 614 -
security/nss/lib/freebl/aeskeywrap.c | 417 -
security/nss/lib/freebl/alg2268.c | 519 -
security/nss/lib/freebl/alghmac.c | 197 -
security/nss/lib/freebl/alghmac.h | 96 -
security/nss/lib/freebl/arcfive.c | 121 -
security/nss/lib/freebl/arcfour-amd64-gas.s | 120 -
.../nss/lib/freebl/arcfour-amd64-masm.asm | 139 -
security/nss/lib/freebl/arcfour-amd64-sun.s | 116 -
security/nss/lib/freebl/arcfour.c | 646 -
security/nss/lib/freebl/blapi.h | 1209 -
security/nss/lib/freebl/blapii.h | 60 -
security/nss/lib/freebl/blapit.h | 389 -
security/nss/lib/freebl/camellia.c | 1795 -
security/nss/lib/freebl/camellia.h | 79 -
security/nss/lib/freebl/config.mk | 126 -
security/nss/lib/freebl/des.c | 699 -
security/nss/lib/freebl/des.h | 75 -
security/nss/lib/freebl/desblapi.c | 305 -
security/nss/lib/freebl/dh.c | 391 -
security/nss/lib/freebl/drbg.c | 729 -
security/nss/lib/freebl/dsa.c | 553 -
security/nss/lib/freebl/ec.c | 1089 -
security/nss/lib/freebl/ec.h | 52 -
security/nss/lib/freebl/ecl/Makefile | 230 -
security/nss/lib/freebl/ecl/README | 330 -
security/nss/lib/freebl/ecl/README.FP | 317 -
security/nss/lib/freebl/ecl/ec2.h | 126 -
security/nss/lib/freebl/ecl/ec2_163.c | 259 -
security/nss/lib/freebl/ecl/ec2_193.c | 276 -
security/nss/lib/freebl/ecl/ec2_233.c | 299 -
security/nss/lib/freebl/ecl/ec2_aff.c | 346 -
security/nss/lib/freebl/ecl/ec2_mont.c | 274 -
security/nss/lib/freebl/ecl/ec2_proj.c | 369 -
security/nss/lib/freebl/ecl/ec_naf.c | 103 -
security/nss/lib/freebl/ecl/ecl-curve.h | 144 -
security/nss/lib/freebl/ecl/ecl-exp.h | 196 -
security/nss/lib/freebl/ecl/ecl-priv.h | 281 -
security/nss/lib/freebl/ecl/ecl.c | 429 -
security/nss/lib/freebl/ecl/ecl.h | 91 -
security/nss/lib/freebl/ecl/ecl_curve.c | 123 -
security/nss/lib/freebl/ecl/ecl_gf.c | 1032 -
security/nss/lib/freebl/ecl/ecl_mult.c | 356 -
security/nss/lib/freebl/ecl/ecp.h | 140 -
security/nss/lib/freebl/ecl/ecp_192.c | 516 -
security/nss/lib/freebl/ecl/ecp_224.c | 372 -
security/nss/lib/freebl/ecl/ecp_256.c | 429 -
security/nss/lib/freebl/ecl/ecp_384.c | 293 -
security/nss/lib/freebl/ecl/ecp_521.c | 170 -
security/nss/lib/freebl/ecl/ecp_aff.c | 357 -
security/nss/lib/freebl/ecl/ecp_fp.c | 568 -
security/nss/lib/freebl/ecl/ecp_fp.h | 406 -
security/nss/lib/freebl/ecl/ecp_fp160.c | 179 -
security/nss/lib/freebl/ecl/ecp_fp192.c | 177 -
security/nss/lib/freebl/ecl/ecp_fp224.c | 190 -
security/nss/lib/freebl/ecl/ecp_fpinc.c | 855 -
security/nss/lib/freebl/ecl/ecp_jac.c | 553 -
security/nss/lib/freebl/ecl/ecp_jm.c | 323 -
security/nss/lib/freebl/ecl/ecp_mont.c | 192 -
security/nss/lib/freebl/ecl/tests/ec2_test.c | 516 -
security/nss/lib/freebl/ecl/tests/ec_naft.c | 151 -
security/nss/lib/freebl/ecl/tests/ecp_fpt.c | 1123 -
security/nss/lib/freebl/ecl/tests/ecp_test.c | 460 -
security/nss/lib/freebl/freebl.def | 58 -
security/nss/lib/freebl/freebl.rc | 100 -
security/nss/lib/freebl/freebl_hash.def | 71 -
security/nss/lib/freebl/freeblver.c | 56 -
security/nss/lib/freebl/genload.c | 191 -
security/nss/lib/freebl/hasht.h | 102 -
security/nss/lib/freebl/intel-aes.h | 156 -
security/nss/lib/freebl/intel-aes.s | 1636 -
security/nss/lib/freebl/ldvector.c | 284 -
security/nss/lib/freebl/loader.c | 1699 -
security/nss/lib/freebl/loader.h | 555 -
security/nss/lib/freebl/manifest.mn | 198 -
security/nss/lib/freebl/md2.c | 300 -
security/nss/lib/freebl/md5.c | 599 -
security/nss/lib/freebl/mknewpc2.c | 242 -
security/nss/lib/freebl/mksp.c | 159 -
security/nss/lib/freebl/mpi/Makefile | 281 -
security/nss/lib/freebl/mpi/Makefile.os2 | 280 -
security/nss/lib/freebl/mpi/Makefile.win | 291 -
security/nss/lib/freebl/mpi/README | 799 -
security/nss/lib/freebl/mpi/all-tests | 115 -
security/nss/lib/freebl/mpi/doc/LICENSE | 11 -
security/nss/lib/freebl/mpi/doc/LICENSE-MPL | 35 -
security/nss/lib/freebl/mpi/doc/basecvt.pod | 63 -
security/nss/lib/freebl/mpi/doc/build | 66 -
security/nss/lib/freebl/mpi/doc/div.txt | 101 -
security/nss/lib/freebl/mpi/doc/expt.txt | 132 -
security/nss/lib/freebl/mpi/doc/gcd.pod | 27 -
security/nss/lib/freebl/mpi/doc/invmod.pod | 33 -
security/nss/lib/freebl/mpi/doc/isprime.pod | 62 -
security/nss/lib/freebl/mpi/doc/lap.pod | 35 -
security/nss/lib/freebl/mpi/doc/mpi-test.pod | 49 -
security/nss/lib/freebl/mpi/doc/mul.txt | 114 -
security/nss/lib/freebl/mpi/doc/pi.txt | 90 -
security/nss/lib/freebl/mpi/doc/prime.txt | 6542 --
security/nss/lib/freebl/mpi/doc/prng.pod | 41 -
security/nss/lib/freebl/mpi/doc/redux.txt | 121 -
security/nss/lib/freebl/mpi/doc/sqrt.txt | 87 -
security/nss/lib/freebl/mpi/doc/square.txt | 109 -
security/nss/lib/freebl/mpi/doc/timing.txt | 250 -
security/nss/lib/freebl/mpi/hpma512.s | 646 -
security/nss/lib/freebl/mpi/hppa20.s | 935 -
security/nss/lib/freebl/mpi/hppatch.adb | 54 -
security/nss/lib/freebl/mpi/logtab.h | 62 -
security/nss/lib/freebl/mpi/make-logtab | 64 -
security/nss/lib/freebl/mpi/make-test-arrays | 133 -
security/nss/lib/freebl/mpi/mdxptest.c | 342 -
security/nss/lib/freebl/mpi/montmulf.c | 329 -
security/nss/lib/freebl/mpi/montmulf.h | 103 -
security/nss/lib/freebl/mpi/montmulf.il | 141 -
security/nss/lib/freebl/mpi/montmulf.s | 1970 -
security/nss/lib/freebl/mpi/montmulfv8.il | 141 -
security/nss/lib/freebl/mpi/montmulfv8.s | 1850 -
security/nss/lib/freebl/mpi/montmulfv9.il | 126 -
security/nss/lib/freebl/mpi/montmulfv9.s | 2380 -
security/nss/lib/freebl/mpi/mp_comba.c | 1298 -
.../lib/freebl/mpi/mp_comba_amd64_masm.asm | 13100 ----
.../nss/lib/freebl/mpi/mp_comba_amd64_sun.s | 16097 ----
security/nss/lib/freebl/mpi/mp_gf2m-priv.h | 102 -
security/nss/lib/freebl/mpi/mp_gf2m.c | 603 -
security/nss/lib/freebl/mpi/mp_gf2m.h | 63 -
security/nss/lib/freebl/mpi/mpcpucache.c | 838 -
.../nss/lib/freebl/mpi/mpcpucache_amd64.s | 894 -
security/nss/lib/freebl/mpi/mpcpucache_x86.s | 934 -
security/nss/lib/freebl/mpi/mpi-config.h | 112 -
security/nss/lib/freebl/mpi/mpi-priv.h | 319 -
security/nss/lib/freebl/mpi/mpi-test.c | 1986 -
security/nss/lib/freebl/mpi/mpi.c | 4850 --
security/nss/lib/freebl/mpi/mpi.h | 340 -
security/nss/lib/freebl/mpi/mpi_amd64.c | 65 -
security/nss/lib/freebl/mpi/mpi_amd64_gas.s | 422 -
.../nss/lib/freebl/mpi/mpi_amd64_masm.asm | 422 -
security/nss/lib/freebl/mpi/mpi_amd64_sun.s | 418 -
security/nss/lib/freebl/mpi/mpi_hp.c | 115 -
security/nss/lib/freebl/mpi/mpi_i86pc.s | 348 -
security/nss/lib/freebl/mpi/mpi_mips.s | 504 -
security/nss/lib/freebl/mpi/mpi_sparc.c | 257 -
security/nss/lib/freebl/mpi/mpi_x86.s | 576 -
security/nss/lib/freebl/mpi/mpi_x86_asm.c | 568 -
security/nss/lib/freebl/mpi/mpi_x86_os2.s | 573 -
security/nss/lib/freebl/mpi/mplogic.c | 465 -
security/nss/lib/freebl/mpi/mplogic.h | 85 -
security/nss/lib/freebl/mpi/mpmontg.c | 1209 -
security/nss/lib/freebl/mpi/mpprime.c | 617 -
security/nss/lib/freebl/mpi/mpprime.h | 70 -
security/nss/lib/freebl/mpi/mpv_sparc.c | 253 -
security/nss/lib/freebl/mpi/mpv_sparcv8.s | 1639 -
security/nss/lib/freebl/mpi/mpv_sparcv8x.s | 175 -
security/nss/lib/freebl/mpi/mpv_sparcv9.s | 1680 -
security/nss/lib/freebl/mpi/mpvalpha.c | 214 -
security/nss/lib/freebl/mpi/mulsqr.c | 115 -
security/nss/lib/freebl/mpi/multest | 111 -
security/nss/lib/freebl/mpi/primes.c | 874 -
security/nss/lib/freebl/mpi/stats | 74 -
security/nss/lib/freebl/mpi/target.mk | 262 -
security/nss/lib/freebl/mpi/test-arrays.txt | 90 -
security/nss/lib/freebl/mpi/test-info.c | 194 -
security/nss/lib/freebl/mpi/tests/LICENSE | 6 -
security/nss/lib/freebl/mpi/tests/LICENSE-MPL | 35 -
security/nss/lib/freebl/mpi/tests/mptest-1.c | 75 -
security/nss/lib/freebl/mpi/tests/mptest-2.c | 86 -
security/nss/lib/freebl/mpi/tests/mptest-3.c | 131 -
security/nss/lib/freebl/mpi/tests/mptest-3a.c | 144 -
security/nss/lib/freebl/mpi/tests/mptest-4.c | 126 -
security/nss/lib/freebl/mpi/tests/mptest-4a.c | 138 -
security/nss/lib/freebl/mpi/tests/mptest-4b.c | 135 -
security/nss/lib/freebl/mpi/tests/mptest-5.c | 103 -
security/nss/lib/freebl/mpi/tests/mptest-5a.c | 165 -
security/nss/lib/freebl/mpi/tests/mptest-6.c | 111 -
security/nss/lib/freebl/mpi/tests/mptest-7.c | 107 -
security/nss/lib/freebl/mpi/tests/mptest-8.c | 98 -
security/nss/lib/freebl/mpi/tests/mptest-9.c | 116 -
security/nss/lib/freebl/mpi/tests/mptest-b.c | 220 -
security/nss/lib/freebl/mpi/tests/pi1k.txt | 1 -
security/nss/lib/freebl/mpi/tests/pi2k.txt | 1 -
security/nss/lib/freebl/mpi/tests/pi5k.txt | 1 -
security/nss/lib/freebl/mpi/timetest | 136 -
security/nss/lib/freebl/mpi/types.pl | 162 -
security/nss/lib/freebl/mpi/utils/LICENSE | 4 -
security/nss/lib/freebl/mpi/utils/LICENSE-MPL | 35 -
security/nss/lib/freebl/mpi/utils/PRIMES | 41 -
security/nss/lib/freebl/mpi/utils/README | 241 -
security/nss/lib/freebl/mpi/utils/basecvt.c | 100 -
security/nss/lib/freebl/mpi/utils/bbs_rand.c | 96 -
security/nss/lib/freebl/mpi/utils/bbs_rand.h | 57 -
security/nss/lib/freebl/mpi/utils/bbsrand.c | 67 -
security/nss/lib/freebl/mpi/utils/dec2hex.c | 71 -
security/nss/lib/freebl/mpi/utils/exptmod.c | 83 -
security/nss/lib/freebl/mpi/utils/fact.c | 115 -
security/nss/lib/freebl/mpi/utils/gcd.c | 119 -
security/nss/lib/freebl/mpi/utils/hex2dec.c | 71 -
security/nss/lib/freebl/mpi/utils/identest.c | 79 -
security/nss/lib/freebl/mpi/utils/invmod.c | 92 -
security/nss/lib/freebl/mpi/utils/isprime.c | 121 -
security/nss/lib/freebl/mpi/utils/lap.c | 121 -
security/nss/lib/freebl/mpi/utils/makeprime.c | 147 -
security/nss/lib/freebl/mpi/utils/metime.c | 136 -
security/nss/lib/freebl/mpi/utils/pi.c | 197 -
security/nss/lib/freebl/mpi/utils/primegen.c | 201 -
security/nss/lib/freebl/mpi/utils/prng.c | 90 -
security/nss/lib/freebl/mpi/utils/ptab.pl | 61 -
security/nss/lib/freebl/mpi/utils/sieve.c | 268 -
security/nss/lib/freebl/mpi/vis_32.il | 1324 -
security/nss/lib/freebl/mpi/vis_64.il | 1030 -
security/nss/lib/freebl/mpi/vis_proto.h | 267 -
security/nss/lib/freebl/nsslowhash.c | 406 -
security/nss/lib/freebl/nsslowhash.h | 60 -
security/nss/lib/freebl/os2_rand.c | 373 -
security/nss/lib/freebl/pqg.c | 717 -
security/nss/lib/freebl/rawhash.c | 168 -
security/nss/lib/freebl/ret_cr16.s | 57 -
security/nss/lib/freebl/rijndael.c | 1193 -
security/nss/lib/freebl/rijndael.h | 95 -
security/nss/lib/freebl/rijndael32.tab | 1215 -
security/nss/lib/freebl/rijndael_tables.c | 246 -
security/nss/lib/freebl/rsa.c | 984 -
security/nss/lib/freebl/sechash.h | 90 -
security/nss/lib/freebl/secmpi.h | 61 -
security/nss/lib/freebl/secrng.h | 99 -
security/nss/lib/freebl/seed.c | 678 -
security/nss/lib/freebl/seed.h | 160 -
security/nss/lib/freebl/sha-fast-amd64-sun.s | 2142 -
security/nss/lib/freebl/sha256.h | 51 -
security/nss/lib/freebl/sha512.c | 1411 -
security/nss/lib/freebl/sha_fast.c | 477 -
security/nss/lib/freebl/sha_fast.h | 184 -
security/nss/lib/freebl/shsign.h | 47 -
security/nss/lib/freebl/shvfy.c | 300 -
security/nss/lib/freebl/stubs.c | 591 -
security/nss/lib/freebl/stubs.h | 88 -
security/nss/lib/freebl/sysrand.c | 78 -
security/nss/lib/freebl/tlsprfalg.c | 169 -
security/nss/lib/freebl/unix_rand.c | 1180 -
security/nss/lib/freebl/win_rand.c | 577 -
security/nss/lib/jar/Makefile | 43 -
security/nss/lib/jar/config.mk | 58 -
security/nss/lib/jar/jar-ds.c | 68 -
security/nss/lib/jar/jar-ds.h | 110 -
security/nss/lib/jar/jar.c | 710 -
security/nss/lib/jar/jar.h | 418 -
security/nss/lib/jar/jarfile.c | 998 -
security/nss/lib/jar/jarfile.h | 108 -
security/nss/lib/jar/jarint.c | 84 -
security/nss/lib/jar/jarint.h | 87 -
security/nss/lib/jar/jarnav.c | 94 -
security/nss/lib/jar/jarsign.c | 270 -
security/nss/lib/jar/jarver.c | 1629 -
security/nss/lib/jar/jzconf.h | 190 -
security/nss/lib/jar/jzlib.h | 896 -
security/nss/lib/jar/manifest.mn | 59 -
security/nss/lib/libpkix/Makefile | 81 -
security/nss/lib/libpkix/config.mk | 49 -
security/nss/lib/libpkix/include/Makefile | 81 -
security/nss/lib/libpkix/include/config.mk | 48 -
security/nss/lib/libpkix/include/manifest.mn | 65 -
security/nss/lib/libpkix/include/pkix.h | 334 -
.../nss/lib/libpkix/include/pkix_certsel.h | 1859 -
.../nss/lib/libpkix/include/pkix_certstore.h | 746 -
.../nss/lib/libpkix/include/pkix_checker.h | 427 -
.../nss/lib/libpkix/include/pkix_crlsel.h | 792 -
.../lib/libpkix/include/pkix_errorstrings.h | 1128 -
.../nss/lib/libpkix/include/pkix_params.h | 1759 -
.../nss/lib/libpkix/include/pkix_pl_pki.h | 2695 -
.../nss/lib/libpkix/include/pkix_pl_system.h | 1578 -
.../nss/lib/libpkix/include/pkix_results.h | 458 -
.../nss/lib/libpkix/include/pkix_revchecker.h | 250 -
.../lib/libpkix/include/pkix_sample_modules.h | 451 -
security/nss/lib/libpkix/include/pkix_util.h | 974 -
security/nss/lib/libpkix/include/pkixt.h | 518 -
security/nss/lib/libpkix/manifest.mn | 46 -
security/nss/lib/libpkix/pkix/Makefile | 81 -
.../nss/lib/libpkix/pkix/certsel/Makefile | 81 -
.../nss/lib/libpkix/pkix/certsel/config.mk | 48 -
.../nss/lib/libpkix/pkix/certsel/manifest.mn | 58 -
.../libpkix/pkix/certsel/pkix_certselector.c | 1666 -
.../libpkix/pkix/certsel/pkix_certselector.h | 74 -
.../pkix/certsel/pkix_comcertselparams.c | 1221 -
.../pkix/certsel/pkix_comcertselparams.h | 90 -
.../nss/lib/libpkix/pkix/checker/Makefile | 81 -
.../nss/lib/libpkix/pkix/checker/config.mk | 48 -
.../nss/lib/libpkix/pkix/checker/manifest.mn | 80 -
.../checker/pkix_basicconstraintschecker.c | 339 -
.../checker/pkix_basicconstraintschecker.h | 75 -
.../pkix/checker/pkix_certchainchecker.c | 355 -
.../pkix/checker/pkix_certchainchecker.h | 69 -
.../libpkix/pkix/checker/pkix_crlchecker.c | 470 -
.../libpkix/pkix/checker/pkix_crlchecker.h | 101 -
.../libpkix/pkix/checker/pkix_ekuchecker.c | 361 -
.../libpkix/pkix/checker/pkix_ekuchecker.h | 125 -
.../pkix/checker/pkix_expirationchecker.c | 146 -
.../pkix/checker/pkix_expirationchecker.h | 63 -
.../pkix/checker/pkix_namechainingchecker.c | 154 -
.../pkix/checker/pkix_namechainingchecker.h | 63 -
.../checker/pkix_nameconstraintschecker.c | 338 -
.../checker/pkix_nameconstraintschecker.h | 76 -
.../libpkix/pkix/checker/pkix_ocspchecker.c | 366 -
.../libpkix/pkix/checker/pkix_ocspchecker.h | 100 -
.../libpkix/pkix/checker/pkix_policychecker.c | 2795 -
.../libpkix/pkix/checker/pkix_policychecker.h | 106 -
.../pkix/checker/pkix_revocationchecker.c | 502 -
.../pkix/checker/pkix_revocationchecker.h | 183 -
.../pkix/checker/pkix_revocationmethod.c | 99 -
.../pkix/checker/pkix_revocationmethod.h | 113 -
.../pkix/checker/pkix_signaturechecker.c | 475 -
.../pkix/checker/pkix_signaturechecker.h | 77 -
.../pkix/checker/pkix_targetcertchecker.c | 549 -
.../pkix/checker/pkix_targetcertchecker.h | 80 -
security/nss/lib/libpkix/pkix/config.mk | 48 -
security/nss/lib/libpkix/pkix/crlsel/Makefile | 81 -
.../nss/lib/libpkix/pkix/crlsel/config.mk | 48 -
.../nss/lib/libpkix/pkix/crlsel/manifest.mn | 58 -
.../pkix/crlsel/pkix_comcrlselparams.c | 859 -
.../pkix/crlsel/pkix_comcrlselparams.h | 71 -
.../libpkix/pkix/crlsel/pkix_crlselector.c | 903 -
.../libpkix/pkix/crlsel/pkix_crlselector.h | 73 -
security/nss/lib/libpkix/pkix/manifest.mn | 44 -
security/nss/lib/libpkix/pkix/params/Makefile | 81 -
.../nss/lib/libpkix/pkix/params/config.mk | 48 -
.../nss/lib/libpkix/pkix/params/manifest.mn | 62 -
.../libpkix/pkix/params/pkix_buildparams.c | 317 -
.../libpkix/pkix/params/pkix_buildparams.h | 65 -
.../lib/libpkix/pkix/params/pkix_procparams.c | 1411 -
.../lib/libpkix/pkix/params/pkix_procparams.h | 82 -
.../libpkix/pkix/params/pkix_resourcelimits.c | 466 -
.../libpkix/pkix/params/pkix_resourcelimits.h | 69 -
.../libpkix/pkix/params/pkix_trustanchor.c | 554 -
.../libpkix/pkix/params/pkix_trustanchor.h | 68 -
.../lib/libpkix/pkix/params/pkix_valparams.c | 368 -
.../lib/libpkix/pkix/params/pkix_valparams.h | 66 -
.../nss/lib/libpkix/pkix/results/Makefile | 81 -
.../nss/lib/libpkix/pkix/results/config.mk | 48 -
.../nss/lib/libpkix/pkix/results/manifest.mn | 62 -
.../libpkix/pkix/results/pkix_buildresult.c | 395 -
.../libpkix/pkix/results/pkix_buildresult.h | 73 -
.../libpkix/pkix/results/pkix_policynode.c | 1410 -
.../libpkix/pkix/results/pkix_policynode.h | 107 -
.../lib/libpkix/pkix/results/pkix_valresult.c | 465 -
.../lib/libpkix/pkix/results/pkix_valresult.h | 76 -
.../libpkix/pkix/results/pkix_verifynode.c | 1215 -
.../libpkix/pkix/results/pkix_verifynode.h | 108 -
security/nss/lib/libpkix/pkix/store/Makefile | 81 -
security/nss/lib/libpkix/pkix/store/config.mk | 48 -
.../nss/lib/libpkix/pkix/store/manifest.mn | 56 -
.../nss/lib/libpkix/pkix/store/pkix_store.c | 448 -
.../nss/lib/libpkix/pkix/store/pkix_store.h | 74 -
security/nss/lib/libpkix/pkix/top/Makefile | 81 -
security/nss/lib/libpkix/pkix/top/config.mk | 48 -
security/nss/lib/libpkix/pkix/top/manifest.mn | 60 -
.../nss/lib/libpkix/pkix/top/pkix_build.c | 3790 -
.../nss/lib/libpkix/pkix/top/pkix_build.h | 155 -
.../nss/lib/libpkix/pkix/top/pkix_lifecycle.c | 243 -
.../nss/lib/libpkix/pkix/top/pkix_lifecycle.h | 56 -
.../nss/lib/libpkix/pkix/top/pkix_validate.c | 1404 -
.../nss/lib/libpkix/pkix/top/pkix_validate.h | 75 -
security/nss/lib/libpkix/pkix/util/Makefile | 81 -
security/nss/lib/libpkix/pkix/util/config.mk | 48 -
.../nss/lib/libpkix/pkix/util/manifest.mn | 63 -
.../nss/lib/libpkix/pkix/util/pkix_error.c | 598 -
.../nss/lib/libpkix/pkix/util/pkix_error.h | 69 -
.../nss/lib/libpkix/pkix/util/pkix_errpaths.c | 136 -
.../nss/lib/libpkix/pkix/util/pkix_list.c | 1734 -
.../nss/lib/libpkix/pkix/util/pkix_list.h | 128 -
.../nss/lib/libpkix/pkix/util/pkix_logger.c | 1121 -
.../nss/lib/libpkix/pkix/util/pkix_logger.h | 90 -
.../nss/lib/libpkix/pkix/util/pkix_tools.c | 1549 -
.../nss/lib/libpkix/pkix/util/pkix_tools.h | 1611 -
security/nss/lib/libpkix/pkix_pl_nss/Makefile | 81 -
.../nss/lib/libpkix/pkix_pl_nss/config.mk | 48 -
.../nss/lib/libpkix/pkix_pl_nss/manifest.mn | 44 -
.../lib/libpkix/pkix_pl_nss/module/Makefile | 81 -
.../lib/libpkix/pkix_pl_nss/module/config.mk | 48 -
.../libpkix/pkix_pl_nss/module/manifest.mn | 81 -
.../pkix_pl_nss/module/pkix_pl_aiamgr.c | 706 -
.../pkix_pl_nss/module/pkix_pl_aiamgr.h | 94 -
.../pkix_pl_nss/module/pkix_pl_colcertstore.c | 1315 -
.../pkix_pl_nss/module/pkix_pl_colcertstore.h | 67 -
.../module/pkix_pl_httpcertstore.c | 1180 -
.../module/pkix_pl_httpcertstore.h | 95 -
.../module/pkix_pl_httpdefaultclient.c | 1688 -
.../module/pkix_pl_httpdefaultclient.h | 172 -
.../module/pkix_pl_ldapcertstore.c | 1149 -
.../module/pkix_pl_ldapcertstore.h | 108 -
.../module/pkix_pl_ldapdefaultclient.c | 2526 -
.../module/pkix_pl_ldapdefaultclient.h | 115 -
.../pkix_pl_nss/module/pkix_pl_ldaprequest.c | 794 -
.../pkix_pl_nss/module/pkix_pl_ldaprequest.h | 119 -
.../pkix_pl_nss/module/pkix_pl_ldapresponse.c | 819 -
.../pkix_pl_nss/module/pkix_pl_ldapresponse.h | 129 -
.../pkix_pl_nss/module/pkix_pl_ldapt.h | 348 -
.../module/pkix_pl_ldaptemplates.c | 451 -
.../pkix_pl_nss/module/pkix_pl_nsscontext.c | 350 -
.../pkix_pl_nss/module/pkix_pl_nsscontext.h | 84 -
.../module/pkix_pl_pk11certstore.c | 1077 -
.../module/pkix_pl_pk11certstore.h | 64 -
.../pkix_pl_nss/module/pkix_pl_socket.c | 1723 -
.../pkix_pl_nss/module/pkix_pl_socket.h | 242 -
.../nss/lib/libpkix/pkix_pl_nss/pki/Makefile | 82 -
.../nss/lib/libpkix/pkix_pl_nss/pki/config.mk | 48 -
.../lib/libpkix/pkix_pl_nss/pki/manifest.mn | 89 -
.../pki/pkix_pl_basicconstraints.c | 440 -
.../pki/pkix_pl_basicconstraints.h | 80 -
.../libpkix/pkix_pl_nss/pki/pkix_pl_cert.c | 3656 -
.../libpkix/pkix_pl_nss/pki/pkix_pl_cert.h | 137 -
.../pkix_pl_nss/pki/pkix_pl_certpolicyinfo.c | 404 -
.../pkix_pl_nss/pki/pkix_pl_certpolicyinfo.h | 83 -
.../pkix_pl_nss/pki/pkix_pl_certpolicymap.c | 419 -
.../pkix_pl_nss/pki/pkix_pl_certpolicymap.h | 82 -
.../pki/pkix_pl_certpolicyqualifier.c | 398 -
.../pki/pkix_pl_certpolicyqualifier.h | 85 -
.../lib/libpkix/pkix_pl_nss/pki/pkix_pl_crl.c | 1098 -
.../lib/libpkix/pkix_pl_nss/pki/pkix_pl_crl.h | 81 -
.../libpkix/pkix_pl_nss/pki/pkix_pl_crldp.c | 184 -
.../libpkix/pkix_pl_nss/pki/pkix_pl_crldp.h | 81 -
.../pkix_pl_nss/pki/pkix_pl_crlentry.c | 913 -
.../pkix_pl_nss/pki/pkix_pl_crlentry.h | 79 -
.../libpkix/pkix_pl_nss/pki/pkix_pl_date.c | 499 -
.../libpkix/pkix_pl_nss/pki/pkix_pl_date.h | 88 -
.../pkix_pl_nss/pki/pkix_pl_generalname.c | 906 -
.../pkix_pl_nss/pki/pkix_pl_generalname.h | 82 -
.../pkix_pl_nss/pki/pkix_pl_infoaccess.c | 887 -
.../pkix_pl_nss/pki/pkix_pl_infoaccess.h | 80 -
.../pkix_pl_nss/pki/pkix_pl_nameconstraints.c | 1307 -
.../pkix_pl_nss/pki/pkix_pl_nameconstraints.h | 101 -
.../pkix_pl_nss/pki/pkix_pl_ocspcertid.c | 283 -
.../pkix_pl_nss/pki/pkix_pl_ocspcertid.h | 86 -
.../pkix_pl_nss/pki/pkix_pl_ocsprequest.c | 474 -
.../pkix_pl_nss/pki/pkix_pl_ocsprequest.h | 94 -
.../pkix_pl_nss/pki/pkix_pl_ocspresponse.c | 1022 -
.../pkix_pl_nss/pki/pkix_pl_ocspresponse.h | 136 -
.../pkix_pl_nss/pki/pkix_pl_publickey.c | 525 -
.../pkix_pl_nss/pki/pkix_pl_publickey.h | 71 -
.../pkix_pl_nss/pki/pkix_pl_x500name.c | 755 -
.../pkix_pl_nss/pki/pkix_pl_x500name.h | 107 -
.../lib/libpkix/pkix_pl_nss/system/Makefile | 82 -
.../lib/libpkix/pkix_pl_nss/system/config.mk | 48 -
.../libpkix/pkix_pl_nss/system/manifest.mn | 81 -
.../pkix_pl_nss/system/pkix_pl_bigint.c | 431 -
.../pkix_pl_nss/system/pkix_pl_bigint.h | 73 -
.../pkix_pl_nss/system/pkix_pl_bytearray.c | 537 -
.../pkix_pl_nss/system/pkix_pl_bytearray.h | 73 -
.../pkix_pl_nss/system/pkix_pl_common.c | 1106 -
.../pkix_pl_nss/system/pkix_pl_common.h | 188 -
.../pkix_pl_nss/system/pkix_pl_error.c | 59 -
.../pkix_pl_nss/system/pkix_pl_hashtable.c | 416 -
.../pkix_pl_nss/system/pkix_pl_hashtable.h | 62 -
.../pkix_pl_nss/system/pkix_pl_lifecycle.c | 304 -
.../pkix_pl_nss/system/pkix_pl_lifecycle.h | 122 -
.../libpkix/pkix_pl_nss/system/pkix_pl_mem.c | 201 -
.../libpkix/pkix_pl_nss/system/pkix_pl_mem.h | 57 -
.../pkix_pl_nss/system/pkix_pl_monitorlock.c | 169 -
.../pkix_pl_nss/system/pkix_pl_monitorlock.h | 66 -
.../pkix_pl_nss/system/pkix_pl_mutex.c | 196 -
.../pkix_pl_nss/system/pkix_pl_mutex.h | 66 -
.../pkix_pl_nss/system/pkix_pl_object.c | 1473 -
.../pkix_pl_nss/system/pkix_pl_object.h | 109 -
.../libpkix/pkix_pl_nss/system/pkix_pl_oid.c | 365 -
.../libpkix/pkix_pl_nss/system/pkix_pl_oid.h | 72 -
.../pkix_pl_nss/system/pkix_pl_primhash.c | 617 -
.../pkix_pl_nss/system/pkix_pl_primhash.h | 135 -
.../pkix_pl_nss/system/pkix_pl_rwlock.c | 250 -
.../pkix_pl_nss/system/pkix_pl_rwlock.h | 68 -
.../pkix_pl_nss/system/pkix_pl_string.c | 654 -
.../pkix_pl_nss/system/pkix_pl_string.h | 70 -
security/nss/lib/manifest.mn | 66 -
security/nss/lib/nss/Makefile | 78 -
security/nss/lib/nss/config.mk | 139 -
security/nss/lib/nss/manifest.mn | 63 -
security/nss/lib/nss/nss.def | 988 -
security/nss/lib/nss/nss.h | 268 -
security/nss/lib/nss/nss.rc | 100 -
security/nss/lib/nss/nssinit.c | 979 -
security/nss/lib/nss/nssrenam.h | 47 -
security/nss/lib/nss/nssver.c | 56 -
security/nss/lib/nss/pkixpriv.def | 318 -
security/nss/lib/nss/utilwrap.c | 826 -
security/nss/lib/pk11wrap/Makefile | 92 -
security/nss/lib/pk11wrap/config.mk | 47 -
security/nss/lib/pk11wrap/debug_module.c | 2743 -
security/nss/lib/pk11wrap/dev3hack.c | 339 -
security/nss/lib/pk11wrap/dev3hack.h | 66 -
security/nss/lib/pk11wrap/manifest.mn | 96 -
security/nss/lib/pk11wrap/pk11akey.c | 2405 -
security/nss/lib/pk11wrap/pk11auth.c | 792 -
security/nss/lib/pk11wrap/pk11cert.c | 2514 -
security/nss/lib/pk11wrap/pk11cxt.c | 1068 -
security/nss/lib/pk11wrap/pk11err.c | 161 -
security/nss/lib/pk11wrap/pk11func.h | 46 -
security/nss/lib/pk11wrap/pk11kea.c | 163 -
security/nss/lib/pk11wrap/pk11list.c | 127 -
security/nss/lib/pk11wrap/pk11load.c | 507 -
security/nss/lib/pk11wrap/pk11mech.c | 1900 -
security/nss/lib/pk11wrap/pk11merge.c | 1416 -
security/nss/lib/pk11wrap/pk11nobj.c | 817 -
security/nss/lib/pk11wrap/pk11obj.c | 1821 -
security/nss/lib/pk11wrap/pk11pars.c | 501 -
security/nss/lib/pk11wrap/pk11pbe.c | 1460 -
security/nss/lib/pk11wrap/pk11pk12.c | 565 -
security/nss/lib/pk11wrap/pk11pqg.c | 470 -
security/nss/lib/pk11wrap/pk11pqg.h | 155 -
security/nss/lib/pk11wrap/pk11priv.h | 218 -
security/nss/lib/pk11wrap/pk11pub.h | 821 -
security/nss/lib/pk11wrap/pk11sdr.c | 410 -
security/nss/lib/pk11wrap/pk11sdr.h | 60 -
security/nss/lib/pk11wrap/pk11skey.c | 2311 -
security/nss/lib/pk11wrap/pk11slot.c | 2247 -
security/nss/lib/pk11wrap/pk11util.c | 1530 -
security/nss/lib/pk11wrap/secmod.h | 184 -
security/nss/lib/pk11wrap/secmodi.h | 176 -
security/nss/lib/pk11wrap/secmodti.h | 220 -
security/nss/lib/pk11wrap/secpkcs5.h | 94 -
security/nss/lib/pkcs12/Makefile | 81 -
security/nss/lib/pkcs12/config.mk | 48 -
security/nss/lib/pkcs12/manifest.mn | 65 -
security/nss/lib/pkcs12/p12.h | 212 -
security/nss/lib/pkcs12/p12creat.c | 254 -
security/nss/lib/pkcs12/p12d.c | 3555 -
security/nss/lib/pkcs12/p12dec.c | 696 -
security/nss/lib/pkcs12/p12e.c | 2075 -
security/nss/lib/pkcs12/p12exp.c | 1410 -
security/nss/lib/pkcs12/p12local.c | 1372 -
security/nss/lib/pkcs12/p12local.h | 91 -
security/nss/lib/pkcs12/p12plcy.c | 157 -
security/nss/lib/pkcs12/p12plcy.h | 57 -
security/nss/lib/pkcs12/p12t.h | 187 -
security/nss/lib/pkcs12/p12tmpl.c | 323 -
security/nss/lib/pkcs12/pkcs12.h | 74 -
security/nss/lib/pkcs12/pkcs12t.h | 398 -
security/nss/lib/pkcs7/Makefile | 80 -
security/nss/lib/pkcs7/certread.c | 456 -
security/nss/lib/pkcs7/config.mk | 46 -
security/nss/lib/pkcs7/manifest.mn | 67 -
security/nss/lib/pkcs7/p7common.c | 724 -
security/nss/lib/pkcs7/p7create.c | 1321 -
security/nss/lib/pkcs7/p7decode.c | 2055 -
security/nss/lib/pkcs7/p7encode.c | 1297 -
security/nss/lib/pkcs7/p7local.c | 1408 -
security/nss/lib/pkcs7/p7local.h | 179 -
security/nss/lib/pkcs7/pkcs7t.h | 299 -
security/nss/lib/pkcs7/secmime.c | 904 -
security/nss/lib/pkcs7/secmime.h | 195 -
security/nss/lib/pkcs7/secpkcs7.h | 626 -
security/nss/lib/pki/Makefile | 44 -
security/nss/lib/pki/asymmkey.c | 434 -
security/nss/lib/pki/certdecode.c | 101 -
security/nss/lib/pki/certificate.c | 1157 -
security/nss/lib/pki/config.mk | 52 -
security/nss/lib/pki/cryptocontext.c | 1020 -
security/nss/lib/pki/doc/standiag.png | Bin 20475 -> 0 bytes
security/nss/lib/pki/doc/standoc.html | 474 -
security/nss/lib/pki/manifest.mn | 78 -
security/nss/lib/pki/nsspki.h | 3204 -
security/nss/lib/pki/nsspkit.h | 274 -
security/nss/lib/pki/pki.h | 248 -
security/nss/lib/pki/pki3hack.c | 1289 -
security/nss/lib/pki/pki3hack.h | 197 -
security/nss/lib/pki/pkibase.c | 1261 -
security/nss/lib/pki/pkim.h | 731 -
security/nss/lib/pki/pkistore.c | 766 -
security/nss/lib/pki/pkistore.h | 204 -
security/nss/lib/pki/pkit.h | 224 -
security/nss/lib/pki/pkitm.h | 121 -
security/nss/lib/pki/symmkey.c | 300 -
security/nss/lib/pki/tdcache.c | 1178 -
security/nss/lib/pki/trustdomain.c | 1294 -
security/nss/lib/pki1/Makefile | 50 -
security/nss/lib/pki1/atav.c | 1824 -
security/nss/lib/pki1/config.mk | 51 -
security/nss/lib/pki1/genname.c | 97 -
security/nss/lib/pki1/gnseq.c | 74 -
security/nss/lib/pki1/manifest.mn | 72 -
security/nss/lib/pki1/name.c | 80 -
security/nss/lib/pki1/nsspki1.h | 2872 -
security/nss/lib/pki1/nsspki1t.h | 205 -
security/nss/lib/pki1/oid.c | 1618 -
security/nss/lib/pki1/oiddata.c | 2937 -
security/nss/lib/pki1/oiddata.h | 214 -
security/nss/lib/pki1/oidgen.perl | 318 -
security/nss/lib/pki1/oids.txt | 2119 -
security/nss/lib/pki1/pki1.h | 3037 -
security/nss/lib/pki1/pki1t.h | 107 -
security/nss/lib/pki1/rdn.c | 76 -
security/nss/lib/pki1/rdnseq.c | 74 -
security/nss/lib/smime/Makefile | 80 -
security/nss/lib/smime/cms.h | 1134 -
security/nss/lib/smime/cmsarray.c | 219 -
security/nss/lib/smime/cmsasn1.c | 578 -
security/nss/lib/smime/cmsattr.c | 461 -
security/nss/lib/smime/cmscinfo.c | 360 -
security/nss/lib/smime/cmscipher.c | 747 -
security/nss/lib/smime/cmsdecode.c | 743 -
security/nss/lib/smime/cmsdigdata.c | 231 -
security/nss/lib/smime/cmsdigest.c | 294 -
security/nss/lib/smime/cmsencdata.c | 283 -
security/nss/lib/smime/cmsencode.c | 747 -
security/nss/lib/smime/cmsenvdata.c | 421 -
security/nss/lib/smime/cmslocal.h | 346 -
security/nss/lib/smime/cmsmessage.c | 321 -
security/nss/lib/smime/cmspubkey.c | 565 -
security/nss/lib/smime/cmsrecinfo.c | 717 -
security/nss/lib/smime/cmsreclist.c | 201 -
security/nss/lib/smime/cmsreclist.h | 62 -
security/nss/lib/smime/cmssigdata.c | 1146 -
security/nss/lib/smime/cmssiginfo.c | 1036 -
security/nss/lib/smime/cmst.h | 534 -
security/nss/lib/smime/cmsutil.c | 351 -
security/nss/lib/smime/config.mk | 95 -
security/nss/lib/smime/manifest.mn | 84 -
security/nss/lib/smime/smime.def | 275 -
security/nss/lib/smime/smime.h | 156 -
security/nss/lib/smime/smime.rc | 100 -
security/nss/lib/smime/smimemessage.c | 218 -
security/nss/lib/smime/smimesym.c | 8 -
security/nss/lib/smime/smimeutil.c | 795 -
security/nss/lib/smime/smimever.c | 56 -
security/nss/lib/softoken/Makefile | 100 -
security/nss/lib/softoken/config.mk | 104 -
security/nss/lib/softoken/ecdecode.c | 641 -
security/nss/lib/softoken/fipsaudt.c | 351 -
security/nss/lib/softoken/fipstest.c | 2155 -
security/nss/lib/softoken/fipstokn.c | 1607 -
security/nss/lib/softoken/legacydb/Makefile | 82 -
security/nss/lib/softoken/legacydb/cdbhdl.h | 85 -
security/nss/lib/softoken/legacydb/config.mk | 98 -
security/nss/lib/softoken/legacydb/dbmshim.c | 647 -
security/nss/lib/softoken/legacydb/keydb.c | 2277 -
security/nss/lib/softoken/legacydb/keydbi.h | 86 -
security/nss/lib/softoken/legacydb/lgattr.c | 1824 -
security/nss/lib/softoken/legacydb/lgcreate.c | 1011 -
security/nss/lib/softoken/legacydb/lgdb.h | 216 -
.../nss/lib/softoken/legacydb/lgdestroy.c | 144 -
security/nss/lib/softoken/legacydb/lgfind.c | 940 -
security/nss/lib/softoken/legacydb/lginit.c | 672 -
security/nss/lib/softoken/legacydb/lgutil.c | 424 -
security/nss/lib/softoken/legacydb/lowcert.c | 831 -
security/nss/lib/softoken/legacydb/lowkey.c | 468 -
security/nss/lib/softoken/legacydb/lowkeyi.h | 198 -
security/nss/lib/softoken/legacydb/lowkeyti.h | 170 -
.../nss/lib/softoken/legacydb/manifest.mn | 67 -
security/nss/lib/softoken/legacydb/nssdbm.def | 64 -
security/nss/lib/softoken/legacydb/nssdbm.rc | 100 -
security/nss/lib/softoken/legacydb/pcert.h | 261 -
security/nss/lib/softoken/legacydb/pcertdb.c | 5389 --
security/nss/lib/softoken/legacydb/pcertt.h | 452 -
security/nss/lib/softoken/legacydb/pk11db.c | 773 -
security/nss/lib/softoken/lgglue.c | 468 -
security/nss/lib/softoken/lgglue.h | 92 -
security/nss/lib/softoken/lowkey.c | 525 -
security/nss/lib/softoken/lowkeyi.h | 108 -
security/nss/lib/softoken/lowkeyti.h | 127 -
security/nss/lib/softoken/lowpbe.c | 1410 -
security/nss/lib/softoken/lowpbe.h | 140 -
security/nss/lib/softoken/manifest.mn | 99 -
security/nss/lib/softoken/padbuf.c | 81 -
security/nss/lib/softoken/pk11init.h | 55 -
security/nss/lib/softoken/pk11pars.h | 872 -
security/nss/lib/softoken/pkcs11.c | 4420 --
security/nss/lib/softoken/pkcs11c.c | 6276 --
security/nss/lib/softoken/pkcs11i.h | 716 -
security/nss/lib/softoken/pkcs11ni.h | 52 -
security/nss/lib/softoken/pkcs11u.c | 2012 -
security/nss/lib/softoken/rsawrapr.c | 917 -
security/nss/lib/softoken/sdb.c | 2063 -
security/nss/lib/softoken/sdb.h | 112 -
security/nss/lib/softoken/secmodt.h | 503 -
security/nss/lib/softoken/sftkdb.c | 2720 -
security/nss/lib/softoken/sftkdb.h | 118 -
security/nss/lib/softoken/sftkdbt.h | 51 -
security/nss/lib/softoken/sftkdbti.h | 92 -
security/nss/lib/softoken/sftkmod.c | 734 -
security/nss/lib/softoken/sftkpars.c | 648 -
security/nss/lib/softoken/sftkpars.h | 49 -
security/nss/lib/softoken/sftkpwd.c | 1309 -
security/nss/lib/softoken/softkver.c | 56 -
security/nss/lib/softoken/softkver.h | 66 -
security/nss/lib/softoken/softoken.h | 385 -
security/nss/lib/softoken/softokn.def | 61 -
security/nss/lib/softoken/softokn.rc | 100 -
security/nss/lib/softoken/softoknt.h | 94 -
security/nss/lib/softoken/tlsprf.c | 215 -
security/nss/lib/sqlite/Makefile | 80 -
security/nss/lib/sqlite/config.mk | 60 -
security/nss/lib/sqlite/manifest.mn | 66 -
security/nss/lib/sqlite/sqlite.def | 141 -
security/nss/lib/sqlite/sqlite3.c | 64897 ----------------
security/nss/lib/sqlite/sqlite3.h | 1885 -
security/nss/lib/ssl/Makefile | 93 -
security/nss/lib/ssl/authcert.c | 122 -
security/nss/lib/ssl/cmpcert.c | 123 -
security/nss/lib/ssl/config.mk | 110 -
security/nss/lib/ssl/derive.c | 853 -
security/nss/lib/ssl/manifest.mn | 83 -
security/nss/lib/ssl/notes.txt | 166 -
security/nss/lib/ssl/nsskea.c | 78 -
security/nss/lib/ssl/os2_err.c | 313 -
security/nss/lib/ssl/os2_err.h | 86 -
security/nss/lib/ssl/preenc.h | 146 -
security/nss/lib/ssl/prelib.c | 67 -
security/nss/lib/ssl/ssl.def | 141 -
security/nss/lib/ssl/ssl.h | 512 -
security/nss/lib/ssl/ssl.rc | 100 -
security/nss/lib/ssl/ssl3con.c | 8764 ---
security/nss/lib/ssl/ssl3ecc.c | 1193 -
security/nss/lib/ssl/ssl3ext.c | 1268 -
security/nss/lib/ssl/ssl3gthr.c | 239 -
security/nss/lib/ssl/ssl3prot.h | 363 -
security/nss/lib/ssl/sslauth.c | 273 -
security/nss/lib/ssl/sslcon.c | 3832 -
security/nss/lib/ssl/ssldef.c | 238 -
security/nss/lib/ssl/sslenum.c | 151 -
security/nss/lib/ssl/sslerr.c | 74 -
security/nss/lib/ssl/sslerr.h | 202 -
security/nss/lib/ssl/sslgathr.c | 483 -
security/nss/lib/ssl/sslimpl.h | 1577 -
security/nss/lib/ssl/sslinfo.c | 285 -
security/nss/lib/ssl/sslmutex.c | 663 -
security/nss/lib/ssl/sslmutex.h | 155 -
security/nss/lib/ssl/sslnonce.c | 530 -
security/nss/lib/ssl/sslproto.h | 222 -
security/nss/lib/ssl/sslreveal.c | 100 -
security/nss/lib/ssl/sslsecur.c | 1442 -
security/nss/lib/ssl/sslsnce.c | 1952 -
security/nss/lib/ssl/sslsock.c | 2200 -
security/nss/lib/ssl/sslt.h | 181 -
security/nss/lib/ssl/ssltrace.c | 276 -
security/nss/lib/ssl/sslver.c | 56 -
security/nss/lib/ssl/unix_err.c | 550 -
security/nss/lib/ssl/unix_err.h | 90 -
security/nss/lib/ssl/win32err.c | 376 -
security/nss/lib/ssl/win32err.h | 84 -
security/nss/lib/util/Makefile | 88 -
security/nss/lib/util/base64.h | 75 -
security/nss/lib/util/ciferfam.h | 92 -
security/nss/lib/util/config.mk | 82 -
security/nss/lib/util/derdec.c | 221 -
security/nss/lib/util/derenc.c | 505 -
security/nss/lib/util/dersubr.c | 266 -
security/nss/lib/util/dertime.c | 317 -
security/nss/lib/util/manifest.mn | 111 -
security/nss/lib/util/nssb64.h | 128 -
security/nss/lib/util/nssb64d.c | 864 -
security/nss/lib/util/nssb64e.c | 765 -
security/nss/lib/util/nssb64t.h | 49 -
security/nss/lib/util/nssilckt.h | 223 -
security/nss/lib/util/nssilock.c | 530 -
security/nss/lib/util/nssilock.h | 320 -
security/nss/lib/util/nsslocks.h | 45 -
security/nss/lib/util/nssrwlk.c | 479 -
security/nss/lib/util/nssrwlk.h | 164 -
security/nss/lib/util/nssrwlkt.h | 52 -
security/nss/lib/util/nssutil.def | 243 -
security/nss/lib/util/nssutil.h | 60 -
security/nss/lib/util/nssutil.rc | 100 -
security/nss/lib/util/oidstring.c | 145 -
security/nss/lib/util/pkcs11.h | 290 -
security/nss/lib/util/pkcs11f.h | 937 -
security/nss/lib/util/pkcs11n.h | 289 -
security/nss/lib/util/pkcs11p.h | 54 -
security/nss/lib/util/pkcs11t.h | 1785 -
security/nss/lib/util/pkcs11u.h | 52 -
security/nss/lib/util/portreg.c | 412 -
security/nss/lib/util/portreg.h | 117 -
security/nss/lib/util/quickder.c | 912 -
security/nss/lib/util/secalgid.c | 157 -
security/nss/lib/util/secasn1.h | 320 -
security/nss/lib/util/secasn1d.c | 3269 -
security/nss/lib/util/secasn1e.c | 1647 -
security/nss/lib/util/secasn1t.h | 302 -
security/nss/lib/util/secasn1u.c | 131 -
security/nss/lib/util/seccomon.h | 119 -
security/nss/lib/util/secder.h | 211 -
security/nss/lib/util/secdert.h | 163 -
security/nss/lib/util/secdig.c | 212 -
security/nss/lib/util/secdig.h | 136 -
security/nss/lib/util/secdigt.h | 61 -
security/nss/lib/util/secerr.h | 236 -
security/nss/lib/util/secinit.c | 53 -
security/nss/lib/util/secitem.c | 324 -
security/nss/lib/util/secitem.h | 128 -
security/nss/lib/util/secoid.c | 2129 -
security/nss/lib/util/secoid.h | 175 -
security/nss/lib/util/secoidt.h | 494 -
security/nss/lib/util/secplcy.c | 117 -
security/nss/lib/util/secplcy.h | 138 -
security/nss/lib/util/secport.c | 669 -
security/nss/lib/util/secport.h | 245 -
security/nss/lib/util/sectime.c | 194 -
security/nss/lib/util/templates.c | 168 -
security/nss/lib/util/utf8.c | 1833 -
security/nss/lib/util/utilrename.h | 194 -
security/nss/manifest.mn | 47 -
security/nss/pkg/Makefile | 59 -
security/nss/pkg/linux/Makefile | 122 -
security/nss/pkg/linux/sun-nss.spec | 84 -
security/nss/pkg/solaris/Makefile | 125 -
security/nss/pkg/solaris/Makefile-devl.com | 71 -
security/nss/pkg/solaris/Makefile-devl.targ | 62 -
security/nss/pkg/solaris/Makefile-tlsu.com | 71 -
security/nss/pkg/solaris/Makefile-tlsu.targ | 70 -
security/nss/pkg/solaris/Makefile.com | 71 -
security/nss/pkg/solaris/Makefile.targ | 70 -
security/nss/pkg/solaris/SUNWtls/Makefile | 52 -
security/nss/pkg/solaris/SUNWtls/pkgdepend | 64 -
security/nss/pkg/solaris/SUNWtls/pkginfo.tmpl | 70 -
.../nss/pkg/solaris/SUNWtls/prototype_com | 77 -
.../nss/pkg/solaris/SUNWtls/prototype_i386 | 90 -
.../nss/pkg/solaris/SUNWtls/prototype_sparc | 103 -
security/nss/pkg/solaris/SUNWtlsd/Makefile | 52 -
security/nss/pkg/solaris/SUNWtlsd/pkgdepend | 59 -
.../nss/pkg/solaris/SUNWtlsd/pkginfo.tmpl | 70 -
security/nss/pkg/solaris/SUNWtlsd/prototype | 162 -
security/nss/pkg/solaris/SUNWtlsu/Makefile | 52 -
security/nss/pkg/solaris/SUNWtlsu/pkgdepend | 58 -
.../nss/pkg/solaris/SUNWtlsu/pkginfo.tmpl | 70 -
.../nss/pkg/solaris/SUNWtlsu/prototype_com | 73 -
.../nss/pkg/solaris/SUNWtlsu/prototype_i386 | 78 -
.../nss/pkg/solaris/SUNWtlsu/prototype_sparc | 78 -
security/nss/pkg/solaris/bld_awk_pkginfo.ksh | 141 -
.../nss/pkg/solaris/common_files/copyright | 38 -
security/nss/pkg/solaris/proto64.mk | 50 -
security/nss/tests/README.txt | 6 -
security/nss/tests/all.sh | 359 -
security/nss/tests/cert/cert.sh | 1430 -
security/nss/tests/cert/certext.txt | 126 -
security/nss/tests/chains/chains.sh | 1072 -
.../tests/chains/ocspd-config/ocspd-certs.sh | 109 -
.../chains/ocspd-config/ocspd.conf.template | 45 -
security/nss/tests/chains/ocspd-config/readme | 16 -
security/nss/tests/chains/scenarios/aia.cfg | 31 -
.../nss/tests/chains/scenarios/anypolicy.cfg | 73 -
.../chains/scenarios/anypolicywithlevel.cfg | 371 -
.../nss/tests/chains/scenarios/bridge.cfg | 102 -
.../tests/chains/scenarios/bridgewithaia.cfg | 50 -
.../chains/scenarios/bridgewithhalfaia.cfg | 85 -
.../bridgewithpolicyextensionandmapping.cfg | 183 -
security/nss/tests/chains/scenarios/crldp.cfg | 97 -
security/nss/tests/chains/scenarios/dsa.cfg | 68 -
.../tests/chains/scenarios/explicitPolicy.cfg | 74 -
.../nss/tests/chains/scenarios/extension.cfg | 98 -
.../nss/tests/chains/scenarios/extension2.cfg | 136 -
.../nss/tests/chains/scenarios/mapping.cfg | 59 -
.../nss/tests/chains/scenarios/mapping2.cfg | 67 -
.../tests/chains/scenarios/megabridge_3_2.cfg | 126 -
security/nss/tests/chains/scenarios/ocsp.cfg | 147 -
security/nss/tests/chains/scenarios/ocspd.cfg | 92 -
.../nss/tests/chains/scenarios/realcerts.cfg | 25 -
security/nss/tests/chains/scenarios/revoc.cfg | 82 -
security/nss/tests/chains/scenarios/scenarios | 17 -
security/nss/tests/cipher/cipher.sh | 138 -
security/nss/tests/cipher/cipher.txt | 43 -
security/nss/tests/cipher/dsa.txt | 8 -
security/nss/tests/cipher/hash.txt | 8 -
security/nss/tests/cipher/performance.sh | 151 -
security/nss/tests/cipher/rsa.txt | 8 -
security/nss/tests/cipher/symmkey.txt | 29 -
security/nss/tests/clean_tbx | 172 -
security/nss/tests/cmdtests/cmdtests.sh | 133 -
security/nss/tests/common/Makefile | 53 -
security/nss/tests/common/cleanup.sh | 78 -
security/nss/tests/common/init.sh | 657 -
security/nss/tests/common/results_header.html | 6 -
security/nss/tests/core_watch | 45 -
security/nss/tests/crmf/crmf.sh | 121 -
security/nss/tests/dbtests/dbtests.sh | 285 -
security/nss/tests/dbupgrade/dbupgrade.sh | 138 -
security/nss/tests/dll_version.sh | 50 -
security/nss/tests/doc/clean.gif | Bin 5503 -> 0 bytes
security/nss/tests/doc/nssqa.txt | 108 -
.../nss/tests/doc/platform_specific_problems | 110 -
security/nss/tests/doc/qa_wrapper.html | 269 -
security/nss/tests/fips/fips.sh | 319 -
security/nss/tests/header | 1636 -
security/nss/tests/iopr/cert_iopr.sh | 437 -
security/nss/tests/iopr/ocsp_iopr.sh | 263 -
.../nss/tests/iopr/server_scr/apache_unix.cfg | 43 -
.../nss/tests/iopr/server_scr/cert_gen.sh | 363 -
.../nss/tests/iopr/server_scr/cipher.list | 131 -
security/nss/tests/iopr/server_scr/client.cgi | 522 -
security/nss/tests/iopr/server_scr/config | 13 -
.../nss/tests/iopr/server_scr/iis_windows.cfg | 29 -
.../nss/tests/iopr/server_scr/iopr_server.cfg | 63 -
security/nss/tests/iopr/server_scr/sslreq.dat | 2 -
security/nss/tests/iopr/ssl_iopr.sh | 672 -
security/nss/tests/jss_dll_version.sh | 22 -
security/nss/tests/jssdir | 28 -
security/nss/tests/jssqa | 220 -
security/nss/tests/libpkix/cert_trust.map | 6 -
.../tests/libpkix/certs/BrAirWaysBadSig.cert | Bin 1647 -> 0 bytes
.../certs/CertificatePoliciesCritical.crt | Bin 805 -> 0 bytes
.../nss/tests/libpkix/certs/GoodCACert.crt | Bin 625 -> 0 bytes
security/nss/tests/libpkix/certs/OCSPCA1.cert | Bin 585 -> 0 bytes
security/nss/tests/libpkix/certs/OCSPCA1.p12 | Bin 1700 -> 0 bytes
security/nss/tests/libpkix/certs/OCSPCA2.cert | Bin 585 -> 0 bytes
security/nss/tests/libpkix/certs/OCSPCA3.cert | Bin 585 -> 0 bytes
.../nss/tests/libpkix/certs/OCSPEE11.cert | Bin 563 -> 0 bytes
.../nss/tests/libpkix/certs/OCSPEE12.cert | Bin 563 -> 0 bytes
.../nss/tests/libpkix/certs/OCSPEE13.cert | Bin 563 -> 0 bytes
.../nss/tests/libpkix/certs/OCSPEE14.cert | Bin 563 -> 0 bytes
.../nss/tests/libpkix/certs/OCSPEE15.cert | Bin 563 -> 0 bytes
.../nss/tests/libpkix/certs/OCSPEE21.cert | Bin 563 -> 0 bytes
.../nss/tests/libpkix/certs/OCSPEE31.cert | Bin 563 -> 0 bytes
.../nss/tests/libpkix/certs/OCSPRoot.cert | Bin 549 -> 0 bytes
.../nss/tests/libpkix/certs/PayPalEE.cert | Bin 1483 -> 0 bytes
.../nss/tests/libpkix/certs/PayPalICA.cert | Bin 1512 -> 0 bytes
.../nss/tests/libpkix/certs/PayPalRootCA.cert | Bin 1249 -> 0 bytes
.../nss/tests/libpkix/certs/TestCA.ca.cert | Bin 628 -> 0 bytes
.../nss/tests/libpkix/certs/TestUser50.cert | Bin 613 -> 0 bytes
.../nss/tests/libpkix/certs/TestUser51.cert | Bin 613 -> 0 bytes
.../certs/TrustAnchorRootCertificate.crt | Bin 572 -> 0 bytes
.../certs/ValidCertificatePathTest1EE.crt | Bin 622 -> 0 bytes
security/nss/tests/libpkix/certs/anchor2dsa | Bin 906 -> 0 bytes
security/nss/tests/libpkix/certs/crldiff.crl | Bin 237 -> 0 bytes
security/nss/tests/libpkix/certs/crlgood.crl | Bin 237 -> 0 bytes
.../certs/extKeyUsage/codeSigningEKUCert | Bin 696 -> 0 bytes
.../libpkix/certs/extKeyUsage/multiEKUCert | Bin 716 -> 0 bytes
.../tests/libpkix/certs/extKeyUsage/noEKUCert | Bin 742 -> 0 bytes
.../libpkix/certs/generalName/altNameDnCert | Bin 748 -> 0 bytes
.../certs/generalName/altNameDnCert_diff | Bin 747 -> 0 bytes
.../libpkix/certs/generalName/altNameDnsCert | Bin 700 -> 0 bytes
.../certs/generalName/altNameDnsCert_diff | Bin 700 -> 0 bytes
.../libpkix/certs/generalName/altNameEdiCert | Bin 702 -> 0 bytes
.../certs/generalName/altNameEdiCert_diff | Bin 700 -> 0 bytes
.../libpkix/certs/generalName/altNameIpCert | Bin 692 -> 0 bytes
.../certs/generalName/altNameIpCert_diff | Bin 692 -> 0 bytes
.../libpkix/certs/generalName/altNameNoneCert | Bin 742 -> 0 bytes
.../libpkix/certs/generalName/altNameOidCert | Bin 691 -> 0 bytes
.../certs/generalName/altNameOidCert_diff | Bin 694 -> 0 bytes
.../certs/generalName/altNameOtherCert | Bin 698 -> 0 bytes
.../certs/generalName/altNameOtherCert_diff | Bin 698 -> 0 bytes
.../certs/generalName/altNameRfc822Cert | Bin 740 -> 0 bytes
.../certs/generalName/altNameRfc822Cert_diff | Bin 703 -> 0 bytes
.../certs/generalName/altNameRfc822DnsCert | Bin 718 -> 0 bytes
.../libpkix/certs/generalName/altNameUriCert | Bin 706 -> 0 bytes
.../certs/generalName/altNameUriCert_diff | Bin 708 -> 0 bytes
.../libpkix/certs/generalName/altNameX400Cert | Bin 691 -> 0 bytes
.../certs/generalName/altNameX400Cert_diff | Bin 691 -> 0 bytes
.../nss/tests/libpkix/certs/hanfeiyu2hanfeiyu | Bin 669 -> 0 bytes
security/nss/tests/libpkix/certs/hy2hc-bc | Bin 668 -> 0 bytes
security/nss/tests/libpkix/certs/hy2hy-bc0 | Bin 685 -> 0 bytes
.../nss/tests/libpkix/certs/issuer-hanfei.crl | Bin 199 -> 0 bytes
.../nss/tests/libpkix/certs/issuer-none.crl | Bin 196 -> 0 bytes
.../libpkix/certs/keyIdentifier/authKeyIDCert | Bin 536 -> 0 bytes
.../libpkix/certs/keyIdentifier/subjKeyIDCert | Bin 906 -> 0 bytes
.../libpkix/certs/keyUsage/decipherOnlyCert | Bin 692 -> 0 bytes
.../libpkix/certs/keyUsage/encipherOnlyCert | Bin 692 -> 0 bytes
.../libpkix/certs/keyUsage/multiKeyUsagesCert | Bin 742 -> 0 bytes
.../libpkix/certs/keyUsage/noKeyUsagesCert | Bin 675 -> 0 bytes
.../nss/tests/libpkix/certs/noExtensionsCert | Bin 680 -> 0 bytes
security/nss/tests/libpkix/certs/nss2alice | Bin 602 -> 0 bytes
.../libpkix/certs/publicKey/dsaWithParams | Bin 906 -> 0 bytes
.../libpkix/certs/publicKey/dsaWithoutParams | Bin 536 -> 0 bytes
.../tests/libpkix/certs/publicKey/labs2yassir | Bin 676 -> 0 bytes
.../tests/libpkix/certs/publicKey/yassir2labs | Bin 676 -> 0 bytes
security/nss/tests/libpkix/certs/sun2sun | Bin 666 -> 0 bytes
security/nss/tests/libpkix/certs/yassir2bcn | Bin 742 -> 0 bytes
.../nss/tests/libpkix/certs/yassir2yassir | Bin 760 -> 0 bytes
.../nss/tests/libpkix/common/libpkix_init.sh | 357 -
.../tests/libpkix/common/libpkix_init_nist.sh | 103 -
security/nss/tests/libpkix/libpkix.sh | 172 -
.../libpkix/pkix_pl_tests/module/cert8.db | Bin 65536 -> 0 bytes
.../libpkix/pkix_pl_tests/module/key3.db | Bin 32768 -> 0 bytes
.../module/rev_data/local/crldiff.crl | Bin 237 -> 0 bytes
.../module/rev_data/local/crlgood.crl | Bin 237 -> 0 bytes
.../module/rev_data/local/issuer-hanfei.crl | Bin 199 -> 0 bytes
.../module/rev_data/local/issuer-none.crl | Bin 196 -> 0 bytes
.../module/rev_data/test_eku_all.crt | Bin 774 -> 0 bytes
.../rev_data/test_eku_allbutcodesigningEE.crt | Bin 732 -> 0 bytes
.../module/rev_data/test_eku_clientauth.crt | Bin 726 -> 0 bytes
.../module/rev_data/test_eku_clientauthEE.crt | Bin 694 -> 0 bytes
.../test_eku_codesigning_clientauth.crt | Bin 734 -> 0 bytes
.../pkix_pl_tests/module/runPLTests.sh | 134 -
.../libpkix/pkix_pl_tests/module/secmod.db | Bin 32768 -> 0 bytes
.../pkix_pl_tests/pki/rev_data/local/README | 3 -
.../pki/rev_data/local/crldiff.crl | Bin 237 -> 0 bytes
.../pki/rev_data/local/crlgood.crl | Bin 237 -> 0 bytes
.../pki/rev_data/local/issuer-hanfei.crl | Bin 199 -> 0 bytes
.../pki/rev_data/local/issuer-none.crl | Bin 196 -> 0 bytes
.../libpkix/pkix_pl_tests/pki/runPLTests.sh | 114 -
.../tests/libpkix/pkix_pl_tests/runPLTests.sh | 100 -
.../pkix_pl_tests/system/runPLTests.sh | 79 -
.../tests/libpkix/pkix_tests/certsel/keyUsage | 0
.../libpkix/pkix_tests/certsel/runTests.sh | 66 -
.../libpkix/pkix_tests/checker/runTests.sh | 64 -
.../libpkix/pkix_tests/crlsel/runTests.sh | 66 -
.../libpkix/pkix_tests/params/runTests.sh | 69 -
.../libpkix/pkix_tests/results/runTests.sh | 69 -
.../nss/tests/libpkix/pkix_tests/runTests.sh | 131 -
.../libpkix/pkix_tests/store/runTests.sh | 65 -
.../libpkix/pkix_tests/top/anchorcert.crt | Bin 694 -> 0 bytes
.../backtracking/signature/greg.crl | Bin 169 -> 0 bytes
.../signature/greg2yassir_badsig.crt | Bin 689 -> 0 bytes
.../build_data/backtracking/signature/jes.crl | Bin 153 -> 0 bytes
.../backtracking/signature/jes2greg.crt | Bin 671 -> 0 bytes
.../backtracking/signature/jes2jes.crt | Bin 656 -> 0 bytes
.../backtracking/signature/jes2labs.crt | Bin 555 -> 0 bytes
.../backtracking/signature/labs.crl | Bin 155 -> 0 bytes
.../backtracking/signature/labs2yassir.crt | Bin 675 -> 0 bytes
.../backtracking/signature/yassir.crl | Bin 173 -> 0 bytes
.../backtracking/signature/yassir2hanfei.crt | Bin 692 -> 0 bytes
.../multi_path/signature/fail/greg.crl | Bin 169 -> 0 bytes
.../multi_path/signature/fail/greg2yassir.crt | Bin 689 -> 0 bytes
.../multi_path/signature/fail/jes.crl | Bin 153 -> 0 bytes
.../multi_path/signature/fail/jes2greg.crt | Bin 671 -> 0 bytes
.../multi_path/signature/fail/jes2jes.crt | Bin 656 -> 0 bytes
.../multi_path/signature/fail/jes2labs.crt | Bin 555 -> 0 bytes
.../multi_path/signature/fail/labs.crl | Bin 155 -> 0 bytes
.../multi_path/signature/fail/labs2yassir.crt | Bin 676 -> 0 bytes
.../multi_path/signature/fail/yassir.crl | Bin 173 -> 0 bytes
.../signature/fail/yassir2hanfei.crt | Bin 692 -> 0 bytes
.../multi_path/signature/pass/greg.crl | Bin 169 -> 0 bytes
.../multi_path/signature/pass/greg2yassir.crt | Bin 689 -> 0 bytes
.../multi_path/signature/pass/jes.crl | Bin 153 -> 0 bytes
.../multi_path/signature/pass/jes2greg.crt | Bin 671 -> 0 bytes
.../multi_path/signature/pass/jes2jes.crt | Bin 656 -> 0 bytes
.../multi_path/signature/pass/jes2labs.crt | Bin 555 -> 0 bytes
.../multi_path/signature/pass/labs.crl | Bin 155 -> 0 bytes
.../multi_path/signature/pass/labs2yassir.crt | Bin 676 -> 0 bytes
.../multi_path/signature/pass/yassir.crl | Bin 173 -> 0 bytes
.../signature/pass/yassir2hanfei.crt | Bin 692 -> 0 bytes
.../single_path/signature/fail/greg.crl | Bin 169 -> 0 bytes
.../signature/fail/greg2yassir_badsig.crt | Bin 689 -> 0 bytes
.../single_path/signature/fail/jes.crl | Bin 153 -> 0 bytes
.../single_path/signature/fail/jes2greg.crt | Bin 671 -> 0 bytes
.../single_path/signature/fail/jes2jes.crt | Bin 656 -> 0 bytes
.../single_path/signature/fail/yassir.crl | Bin 173 -> 0 bytes
.../signature/fail/yassir2hanfei.crt | Bin 692 -> 0 bytes
.../single_path/signature/pass/greg.crl | Bin 169 -> 0 bytes
.../signature/pass/greg2yassir.crt | Bin 689 -> 0 bytes
.../single_path/signature/pass/jes.crl | Bin 153 -> 0 bytes
.../single_path/signature/pass/jes2greg.crt | Bin 671 -> 0 bytes
.../single_path/signature/pass/jes2jes.crt | Bin 656 -> 0 bytes
.../single_path/signature/pass/yassir.crl | Bin 173 -> 0 bytes
.../signature/pass/yassir2hanfei.crt | Bin 692 -> 0 bytes
.../top/build_data/test1/greg2yassir.crt | Bin 689 -> 0 bytes
.../top/build_data/test1/jes2greg.crt | Bin 671 -> 0 bytes
.../top/build_data/test1/jes2jes.crt | Bin 656 -> 0 bytes
.../top/build_data/test1/jes2labs.crt | Bin 555 -> 0 bytes
.../top/build_data/test1/labs2yassir.crt | Bin 676 -> 0 bytes
.../top/build_data/test1/yassir2hanfei.crt | Bin 692 -> 0 bytes
.../top/build_data/test1/yassir2richard.crt | Bin 520 -> 0 bytes
.../top/build_data/test2/jes2greg.crt | Bin 671 -> 0 bytes
.../top/build_data/test2/jes2jes.crt | Bin 656 -> 0 bytes
.../top/build_data/test2/jes2labs.crt | Bin 555 -> 0 bytes
.../top/build_data/test2/labs2yassir.crt | Bin 669 -> 0 bytes
.../top/build_data/test2/nelson2yassir.crt | Bin 676 -> 0 bytes
.../top/build_data/test2/yassir2hanfei.crt | Bin 692 -> 0 bytes
.../top/build_data/test2/yassir2richard.crt | Bin 520 -> 0 bytes
.../top/build_data/test3/jes2greg.crt | Bin 671 -> 0 bytes
.../top/build_data/test3/jes2jes.crt | Bin 656 -> 0 bytes
.../top/build_data/test3/jes2labs.crt | Bin 555 -> 0 bytes
.../top/build_data/test3/labs2yassir.crt | Bin 669 -> 0 bytes
.../top/build_data/test3/nelson2yassir.crt | Bin 676 -> 0 bytes
.../top/build_data/test3/yassir2hanfei.crt | Bin 692 -> 0 bytes
.../nss/tests/libpkix/pkix_tests/top/cert8.db | Bin 65536 -> 0 bytes
.../tests/libpkix/pkix_tests/top/goodcert.crt | Bin 1031 -> 0 bytes
.../nss/tests/libpkix/pkix_tests/top/key3.db | Bin 32768 -> 0 bytes
.../top/rev_data/crlchecker/chem.crl | Bin 239 -> 0 bytes
.../top/rev_data/crlchecker/chem2prof.crt | Bin 709 -> 0 bytes
.../top/rev_data/crlchecker/phy2prof.crt | Bin 707 -> 0 bytes
.../top/rev_data/crlchecker/phys.crl | Bin 201 -> 0 bytes
.../top/rev_data/crlchecker/prof.crl | Bin 203 -> 0 bytes
.../top/rev_data/crlchecker/prof2test.crt | Bin 691 -> 0 bytes
.../top/rev_data/crlchecker/sci.crl | Bin 200 -> 0 bytes
.../top/rev_data/crlchecker/sci2chem.crt | Bin 707 -> 0 bytes
.../top/rev_data/crlchecker/sci2phy.crt | Bin 703 -> 0 bytes
.../top/rev_data/crlchecker/sci2sci.crt | Bin 703 -> 0 bytes
.../top/rev_data/crlchecker/test.crl | Bin 205 -> 0 bytes
.../libpkix/pkix_tests/top/revokedcert.crt | Bin 1034 -> 0 bytes
.../tests/libpkix/pkix_tests/top/runTests.sh | 550 -
.../tests/libpkix/pkix_tests/top/secmod.db | Bin 32768 -> 0 bytes
.../tests/libpkix/pkix_tests/util/runTests.sh | 66 -
security/nss/tests/libpkix/runTests.sh | 120 -
security/nss/tests/libpkix/sample_apps/README | 110 -
.../nss/tests/libpkix/sample_apps/cert8.db | Bin 65536 -> 0 bytes
.../nss/tests/libpkix/sample_apps/key3.db | Bin 32768 -> 0 bytes
.../nss/tests/libpkix/sample_apps/runPerf.sh | 176 -
.../nss/tests/libpkix/sample_apps/secmod.db | Bin 32768 -> 0 bytes
security/nss/tests/libpkix/vfychain_test.lst | 4 -
security/nss/tests/memleak/ignored | 46 -
security/nss/tests/memleak/memleak.sh | 933 -
security/nss/tests/memleak/sslreq.dat | 2 -
security/nss/tests/merge/merge.sh | 305 -
security/nss/tests/mksymlinks | 115 -
security/nss/tests/nssdir | 28 -
security/nss/tests/nsspath | 12 -
security/nss/tests/nssqa | 286 -
security/nss/tests/ocsp/ocsp.sh | 82 -
security/nss/tests/path_uniq | 107 -
security/nss/tests/perf/perf.sh | 93 -
.../nss/tests/pkcs11/netscape/suites/Makefile | 80 -
.../tests/pkcs11/netscape/suites/config.mk | 46 -
.../tests/pkcs11/netscape/suites/manifest.mn | 41 -
.../pkcs11/netscape/suites/security/Makefile | 80 -
.../pkcs11/netscape/suites/security/config.mk | 58 -
.../netscape/suites/security/manifest.mn | 44 -
.../netscape/suites/security/pkcs11/Makefile | 81 -
.../netscape/suites/security/pkcs11/config.mk | 61 -
.../suites/security/pkcs11/manifest.mn | 50 -
.../suites/security/pkcs11/pk11test.c | 1363 -
.../suites/security/pkcs11/pk11test.h | 114 -
.../suites/security/pkcs11/pk11test.htp | 53 -
.../netscape/suites/security/pkcs11/pkcs11.h | 193 -
.../suites/security/pkcs11/pkcs11.reg | 964 -
.../suites/security/pkcs11/pkcs11.rep | 161 -
.../netscape/suites/security/pkcs11/rules.mk | 38 -
.../netscape/suites/security/ssl/Makefile | 82 -
.../netscape/suites/security/ssl/README | 11 -
.../netscape/suites/security/ssl/cert7.db | Bin 90112 -> 0 bytes
.../netscape/suites/security/ssl/config.mk | 66 -
.../netscape/suites/security/ssl/key3.db | Bin 16384 -> 0 bytes
.../netscape/suites/security/ssl/manifest.mn | 57 -
.../netscape/suites/security/ssl/ssl.reg | 49198 ------------
.../netscape/suites/security/ssl/sslc.c | 296 -
.../netscape/suites/security/ssl/sslc.h | 99 -
.../netscape/suites/security/ssl/ssls.c | 108 -
.../netscape/suites/security/ssl/ssls.h | 130 -
.../netscape/suites/security/ssl/sslt.c | 1186 -
.../netscape/suites/security/ssl/sslt.h | 241 -
.../netscape/suites/security/ssl/sslt.htp | 139 -
.../netscape/suites/security/ssl/sslt.rep | 421 -
.../tests/pkcs11/netscape/trivial/.cvsignore | 6 -
.../tests/pkcs11/netscape/trivial/Makefile.in | 180 -
.../tests/pkcs11/netscape/trivial/README.txt | 56 -
.../tests/pkcs11/netscape/trivial/acconfig.h | 39 -
.../tests/pkcs11/netscape/trivial/config.h.in | 28 -
.../tests/pkcs11/netscape/trivial/configure | 1906 -
.../pkcs11/netscape/trivial/configure.in | 185 -
.../tests/pkcs11/netscape/trivial/install-sh | 251 -
.../tests/pkcs11/netscape/trivial/trivial.c | 1316 -
security/nss/tests/pkits/pkits.sh | 2019 -
security/nss/tests/platformlist | 11 -
security/nss/tests/platformlist.tbx | 14 -
security/nss/tests/qa_stage | 336 -
security/nss/tests/qa_stat | 938 -
security/nss/tests/qaclean | 144 -
security/nss/tests/run_niscc.sh | 657 -
security/nss/tests/sdr/sdr.sh | 143 -
security/nss/tests/set_environment | 234 -
security/nss/tests/smime/alice.txt | 6 -
security/nss/tests/smime/bob.txt | 6 -
security/nss/tests/smime/smime.sh | 292 -
security/nss/tests/ssl/ssl.sh | 980 -
security/nss/tests/ssl/ssl_dist_stress.sh | 345 -
security/nss/tests/ssl/sslauth.txt | 50 -
security/nss/tests/ssl/sslcov.txt | 98 -
security/nss/tests/ssl/sslreq.dat | 2 -
security/nss/tests/ssl/sslreq.txt | 2 -
security/nss/tests/ssl/sslstress.txt | 38 -
security/nss/tests/tools/sign.html | 5 -
security/nss/tests/tools/signjs.html | 8 -
security/nss/tests/tools/tools.sh | 525 -
security/nss/trademarks.txt | 129 -
2005 files changed, 865388 deletions(-)
delete mode 100644 dbm/.cvsignore
delete mode 100644 dbm/Makefile.in
delete mode 100644 dbm/include/.cvsignore
delete mode 100644 dbm/include/Makefile.in
delete mode 100644 dbm/include/Makefile.win
delete mode 100644 dbm/include/cdefs.h
delete mode 100644 dbm/include/extern.h
delete mode 100644 dbm/include/hash.h
delete mode 100644 dbm/include/hsearch.h
delete mode 100644 dbm/include/mcom_db.h
delete mode 100644 dbm/include/mpool.h
delete mode 100644 dbm/include/ncompat.h
delete mode 100644 dbm/include/page.h
delete mode 100644 dbm/include/queue.h
delete mode 100644 dbm/include/search.h
delete mode 100644 dbm/include/winfile.h
delete mode 100644 dbm/src/.cvsignore
delete mode 100644 dbm/src/Makefile.in
delete mode 100644 dbm/src/Makefile.win
delete mode 100644 dbm/src/db.c
delete mode 100644 dbm/src/h_bigkey.c
delete mode 100644 dbm/src/h_func.c
delete mode 100644 dbm/src/h_log2.c
delete mode 100644 dbm/src/h_page.c
delete mode 100644 dbm/src/hash.c
delete mode 100644 dbm/src/hash_buf.c
delete mode 100644 dbm/src/memmove.c
delete mode 100644 dbm/src/mktemp.c
delete mode 100644 dbm/src/snprintf.c
delete mode 100644 dbm/src/strerror.c
delete mode 100644 dbm/tests/.cvsignore
delete mode 100644 dbm/tests/Makefile.in
delete mode 100644 dbm/tests/dbmtest.pkg
delete mode 100644 dbm/tests/lots.c
delete mode 100644 security/dbm/Makefile
delete mode 100644 security/dbm/config/config.mk
delete mode 100644 security/dbm/include/Makefile
delete mode 100644 security/dbm/include/manifest.mn
delete mode 100644 security/dbm/manifest.mn
delete mode 100644 security/dbm/src/Makefile
delete mode 100644 security/dbm/src/config.mk
delete mode 100644 security/dbm/src/dirent.c
delete mode 100644 security/dbm/src/dirent.h
delete mode 100644 security/dbm/src/manifest.mn
delete mode 100644 security/dbm/tests/Makefile
delete mode 100644 security/nss/Makefile
delete mode 100644 security/nss/cmd/.cvsignore
delete mode 100644 security/nss/cmd/Makefile
delete mode 100644 security/nss/cmd/addbuiltin/Makefile
delete mode 100644 security/nss/cmd/addbuiltin/addbuiltin.c
delete mode 100644 security/nss/cmd/addbuiltin/manifest.mn
delete mode 100644 security/nss/cmd/atob/Makefile
delete mode 100644 security/nss/cmd/atob/atob.c
delete mode 100644 security/nss/cmd/atob/manifest.mn
delete mode 100644 security/nss/cmd/bltest/Makefile
delete mode 100644 security/nss/cmd/bltest/blapitest.c
delete mode 100644 security/nss/cmd/bltest/manifest.mn
delete mode 100644 security/nss/cmd/bltest/tests/README
delete mode 100644 security/nss/cmd/bltest/tests/aes_cbc/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/aes_cbc/iv0
delete mode 100644 security/nss/cmd/bltest/tests/aes_cbc/key0
delete mode 100644 security/nss/cmd/bltest/tests/aes_cbc/numtests
delete mode 100644 security/nss/cmd/bltest/tests/aes_cbc/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/aes_ecb/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/aes_ecb/key0
delete mode 100644 security/nss/cmd/bltest/tests/aes_ecb/numtests
delete mode 100644 security/nss/cmd/bltest/tests/aes_ecb/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/camellia_cbc/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/camellia_cbc/ciphertext1
delete mode 100644 security/nss/cmd/bltest/tests/camellia_cbc/ciphertext2
delete mode 100644 security/nss/cmd/bltest/tests/camellia_cbc/iv0
delete mode 100644 security/nss/cmd/bltest/tests/camellia_cbc/key0
delete mode 100644 security/nss/cmd/bltest/tests/camellia_cbc/key1
delete mode 100644 security/nss/cmd/bltest/tests/camellia_cbc/key2
delete mode 100644 security/nss/cmd/bltest/tests/camellia_cbc/numtests
delete mode 100644 security/nss/cmd/bltest/tests/camellia_cbc/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/camellia_ecb/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/camellia_ecb/ciphertext1
delete mode 100644 security/nss/cmd/bltest/tests/camellia_ecb/ciphertext2
delete mode 100644 security/nss/cmd/bltest/tests/camellia_ecb/key0
delete mode 100644 security/nss/cmd/bltest/tests/camellia_ecb/key1
delete mode 100644 security/nss/cmd/bltest/tests/camellia_ecb/key2
delete mode 100644 security/nss/cmd/bltest/tests/camellia_ecb/numtests
delete mode 100644 security/nss/cmd/bltest/tests/camellia_ecb/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/des3_cbc/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/des3_cbc/iv0
delete mode 100644 security/nss/cmd/bltest/tests/des3_cbc/key0
delete mode 100644 security/nss/cmd/bltest/tests/des3_cbc/numtests
delete mode 100644 security/nss/cmd/bltest/tests/des3_cbc/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/des3_ecb/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/des3_ecb/key0
delete mode 100644 security/nss/cmd/bltest/tests/des3_ecb/numtests
delete mode 100644 security/nss/cmd/bltest/tests/des3_ecb/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/des_cbc/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/des_cbc/iv0
delete mode 100644 security/nss/cmd/bltest/tests/des_cbc/key0
delete mode 100644 security/nss/cmd/bltest/tests/des_cbc/numtests
delete mode 100644 security/nss/cmd/bltest/tests/des_cbc/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/des_ecb/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/des_ecb/key0
delete mode 100644 security/nss/cmd/bltest/tests/des_ecb/numtests
delete mode 100644 security/nss/cmd/bltest/tests/des_ecb/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/dsa/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/dsa/key0
delete mode 100644 security/nss/cmd/bltest/tests/dsa/keyseed0
delete mode 100644 security/nss/cmd/bltest/tests/dsa/numtests
delete mode 100644 security/nss/cmd/bltest/tests/dsa/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/dsa/pqg0
delete mode 100644 security/nss/cmd/bltest/tests/dsa/sigseed0
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/README
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext1
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext10
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext11
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext12
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext13
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext14
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext15
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext16
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext17
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext18
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext19
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext2
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext20
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext3
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext4
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext5
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext6
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext7
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext8
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/ciphertext9
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key0
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key1
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key10
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key11
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key12
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key13
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key14
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key15
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key16
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key17
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key18
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key19
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key2
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key20
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key3
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key4
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key5
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key6
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key7
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key8
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/key9
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/numtests
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext1
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext10
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext11
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext12
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext13
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext14
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext15
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext16
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext17
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext18
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext19
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext2
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext20
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext3
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext4
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext5
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext6
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext7
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext8
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/plaintext9
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed0
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed1
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed10
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed11
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed12
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed13
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed14
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed15
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed16
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed17
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed18
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed19
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed2
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed20
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed3
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed4
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed5
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed6
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed7
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed8
delete mode 100644 security/nss/cmd/bltest/tests/ecdsa/sigseed9
delete mode 100644 security/nss/cmd/bltest/tests/md2/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/md2/numtests
delete mode 100644 security/nss/cmd/bltest/tests/md2/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/md5/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/md5/numtests
delete mode 100644 security/nss/cmd/bltest/tests/md5/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/rc2_cbc/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/rc2_cbc/iv0
delete mode 100644 security/nss/cmd/bltest/tests/rc2_cbc/key0
delete mode 100644 security/nss/cmd/bltest/tests/rc2_cbc/numtests
delete mode 100644 security/nss/cmd/bltest/tests/rc2_cbc/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/rc2_ecb/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/rc2_ecb/key0
delete mode 100644 security/nss/cmd/bltest/tests/rc2_ecb/numtests
delete mode 100644 security/nss/cmd/bltest/tests/rc2_ecb/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/rc4/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/rc4/ciphertext1
delete mode 100644 security/nss/cmd/bltest/tests/rc4/key0
delete mode 100644 security/nss/cmd/bltest/tests/rc4/key1
delete mode 100644 security/nss/cmd/bltest/tests/rc4/numtests
delete mode 100644 security/nss/cmd/bltest/tests/rc4/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/rc4/plaintext1
delete mode 100644 security/nss/cmd/bltest/tests/rc5_cbc/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/rc5_cbc/iv0
delete mode 100644 security/nss/cmd/bltest/tests/rc5_cbc/key0
delete mode 100644 security/nss/cmd/bltest/tests/rc5_cbc/numtests
delete mode 100644 security/nss/cmd/bltest/tests/rc5_cbc/params0
delete mode 100644 security/nss/cmd/bltest/tests/rc5_cbc/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/rc5_ecb/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/rc5_ecb/key0
delete mode 100644 security/nss/cmd/bltest/tests/rc5_ecb/numtests
delete mode 100644 security/nss/cmd/bltest/tests/rc5_ecb/params0
delete mode 100644 security/nss/cmd/bltest/tests/rc5_ecb/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/rsa/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/rsa/key0
delete mode 100644 security/nss/cmd/bltest/tests/rsa/numtests
delete mode 100644 security/nss/cmd/bltest/tests/rsa/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/seed_cbc/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/seed_cbc/iv0
delete mode 100644 security/nss/cmd/bltest/tests/seed_cbc/key0
delete mode 100644 security/nss/cmd/bltest/tests/seed_cbc/numtests
delete mode 100644 security/nss/cmd/bltest/tests/seed_cbc/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/seed_ecb/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/seed_ecb/iv0
delete mode 100644 security/nss/cmd/bltest/tests/seed_ecb/key0
delete mode 100644 security/nss/cmd/bltest/tests/seed_ecb/numtests
delete mode 100644 security/nss/cmd/bltest/tests/seed_ecb/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/sha1/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/sha1/numtests
delete mode 100644 security/nss/cmd/bltest/tests/sha1/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/sha256/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/sha256/ciphertext1
delete mode 100644 security/nss/cmd/bltest/tests/sha256/numtests
delete mode 100644 security/nss/cmd/bltest/tests/sha256/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/sha256/plaintext1
delete mode 100644 security/nss/cmd/bltest/tests/sha384/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/sha384/ciphertext1
delete mode 100644 security/nss/cmd/bltest/tests/sha384/numtests
delete mode 100644 security/nss/cmd/bltest/tests/sha384/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/sha384/plaintext1
delete mode 100644 security/nss/cmd/bltest/tests/sha512/ciphertext0
delete mode 100644 security/nss/cmd/bltest/tests/sha512/ciphertext1
delete mode 100644 security/nss/cmd/bltest/tests/sha512/numtests
delete mode 100644 security/nss/cmd/bltest/tests/sha512/plaintext0
delete mode 100644 security/nss/cmd/bltest/tests/sha512/plaintext1
delete mode 100644 security/nss/cmd/btoa/Makefile
delete mode 100644 security/nss/cmd/btoa/btoa.c
delete mode 100644 security/nss/cmd/btoa/manifest.mn
delete mode 100644 security/nss/cmd/certcgi/HOWTO.txt
delete mode 100644 security/nss/cmd/certcgi/Makefile
delete mode 100644 security/nss/cmd/certcgi/ca.html
delete mode 100644 security/nss/cmd/certcgi/ca_form.html
delete mode 100644 security/nss/cmd/certcgi/certcgi.c
delete mode 100644 security/nss/cmd/certcgi/index.html
delete mode 100644 security/nss/cmd/certcgi/main.html
delete mode 100644 security/nss/cmd/certcgi/manifest.mn
delete mode 100644 security/nss/cmd/certcgi/nscp_ext_form.html
delete mode 100644 security/nss/cmd/certcgi/stnd_ext_form.html
delete mode 100644 security/nss/cmd/certutil/Makefile
delete mode 100644 security/nss/cmd/certutil/certext.c
delete mode 100644 security/nss/cmd/certutil/certutil.c
delete mode 100644 security/nss/cmd/certutil/certutil.h
delete mode 100644 security/nss/cmd/certutil/keystuff.c
delete mode 100644 security/nss/cmd/certutil/manifest.mn
delete mode 100644 security/nss/cmd/checkcert/Makefile
delete mode 100644 security/nss/cmd/checkcert/checkcert.c
delete mode 100644 security/nss/cmd/checkcert/manifest.mn
delete mode 100644 security/nss/cmd/crlutil/Makefile
delete mode 100644 security/nss/cmd/crlutil/crlgen.c
delete mode 100644 security/nss/cmd/crlutil/crlgen.h
delete mode 100644 security/nss/cmd/crlutil/crlgen_lex.c
delete mode 100644 security/nss/cmd/crlutil/crlgen_lex_fix.sed
delete mode 100644 security/nss/cmd/crlutil/crlgen_lex_orig.l
delete mode 100644 security/nss/cmd/crlutil/crlutil.c
delete mode 100644 security/nss/cmd/crlutil/manifest.mn
delete mode 100644 security/nss/cmd/crmf-cgi/Makefile
delete mode 100644 security/nss/cmd/crmf-cgi/config.mk
delete mode 100644 security/nss/cmd/crmf-cgi/crmfcgi.c
delete mode 100644 security/nss/cmd/crmf-cgi/crmfcgi.html
delete mode 100644 security/nss/cmd/crmf-cgi/manifest.mn
delete mode 100644 security/nss/cmd/crmftest/Makefile
delete mode 100644 security/nss/cmd/crmftest/config.mk
delete mode 100644 security/nss/cmd/crmftest/manifest.mn
delete mode 100644 security/nss/cmd/crmftest/testcrmf.c
delete mode 100644 security/nss/cmd/dbck/Makefile
delete mode 100644 security/nss/cmd/dbck/dbck.c
delete mode 100644 security/nss/cmd/dbck/dbrecover.c
delete mode 100644 security/nss/cmd/dbck/manifest.mn
delete mode 100644 security/nss/cmd/dbtest/Makefile
delete mode 100644 security/nss/cmd/dbtest/dbtest.c
delete mode 100644 security/nss/cmd/dbtest/manifest.mn
delete mode 100644 security/nss/cmd/derdump/Makefile
delete mode 100644 security/nss/cmd/derdump/derdump.c
delete mode 100644 security/nss/cmd/derdump/manifest.mn
delete mode 100644 security/nss/cmd/digest/Makefile
delete mode 100644 security/nss/cmd/digest/digest.c
delete mode 100644 security/nss/cmd/digest/manifest.mn
delete mode 100644 security/nss/cmd/ecperf/Makefile
delete mode 100644 security/nss/cmd/ecperf/ecperf.c
delete mode 100755 security/nss/cmd/ecperf/manifest.mn
delete mode 100755 security/nss/cmd/fipstest/Makefile
delete mode 100644 security/nss/cmd/fipstest/aes.sh
delete mode 100755 security/nss/cmd/fipstest/dsa.sh
delete mode 100644 security/nss/cmd/fipstest/ecdsa.sh
delete mode 100644 security/nss/cmd/fipstest/fipstest.c
delete mode 100755 security/nss/cmd/fipstest/hmac.sh
delete mode 100644 security/nss/cmd/fipstest/manifest.mn
delete mode 100644 security/nss/cmd/fipstest/rng.sh
delete mode 100644 security/nss/cmd/fipstest/rsa.sh
delete mode 100644 security/nss/cmd/fipstest/sha.sh
delete mode 100644 security/nss/cmd/fipstest/tdea.sh
delete mode 100644 security/nss/cmd/lib/Makefile
delete mode 100644 security/nss/cmd/lib/NSPRerrs.h
delete mode 100644 security/nss/cmd/lib/SECerrs.h
delete mode 100644 security/nss/cmd/lib/SSLerrs.h
delete mode 100644 security/nss/cmd/lib/berparse.c
delete mode 100644 security/nss/cmd/lib/config.mk
delete mode 100644 security/nss/cmd/lib/derprint.c
delete mode 100644 security/nss/cmd/lib/ffs.c
delete mode 100644 security/nss/cmd/lib/manifest.mn
delete mode 100644 security/nss/cmd/lib/moreoids.c
delete mode 100644 security/nss/cmd/lib/pk11table.c
delete mode 100644 security/nss/cmd/lib/pk11table.h
delete mode 100644 security/nss/cmd/lib/pppolicy.c
delete mode 100644 security/nss/cmd/lib/secerror.c
delete mode 100644 security/nss/cmd/lib/secpwd.c
delete mode 100644 security/nss/cmd/lib/secutil.c
delete mode 100644 security/nss/cmd/lib/secutil.h
delete mode 100644 security/nss/cmd/lib/wincemain.c
delete mode 100755 security/nss/cmd/libpkix/Makefile
delete mode 100644 security/nss/cmd/libpkix/config.mk
delete mode 100755 security/nss/cmd/libpkix/manifest.mn
delete mode 100755 security/nss/cmd/libpkix/perf/Makefile
delete mode 100644 security/nss/cmd/libpkix/perf/libpkix_buildthreads.c
delete mode 100755 security/nss/cmd/libpkix/perf/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/perf/nss_threads.c
delete mode 100755 security/nss/cmd/libpkix/pkix/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix/certsel/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix/certsel/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/pkix/certsel/test_certselector.c
delete mode 100644 security/nss/cmd/libpkix/pkix/certsel/test_comcertselparams.c
delete mode 100755 security/nss/cmd/libpkix/pkix/checker/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix/checker/manifest.mn
delete mode 100755 security/nss/cmd/libpkix/pkix/checker/test_certchainchecker.c
delete mode 100755 security/nss/cmd/libpkix/pkix/crlsel/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix/crlsel/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/pkix/crlsel/test_comcrlselparams.c
delete mode 100644 security/nss/cmd/libpkix/pkix/crlsel/test_crlselector.c
delete mode 100755 security/nss/cmd/libpkix/pkix/manifest.mn
delete mode 100755 security/nss/cmd/libpkix/pkix/params/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix/params/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/pkix/params/test_buildparams.c
delete mode 100644 security/nss/cmd/libpkix/pkix/params/test_procparams.c
delete mode 100644 security/nss/cmd/libpkix/pkix/params/test_resourcelimits.c
delete mode 100644 security/nss/cmd/libpkix/pkix/params/test_trustanchor.c
delete mode 100644 security/nss/cmd/libpkix/pkix/params/test_valparams.c
delete mode 100755 security/nss/cmd/libpkix/pkix/results/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix/results/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/pkix/results/test_buildresult.c
delete mode 100644 security/nss/cmd/libpkix/pkix/results/test_policynode.c
delete mode 100644 security/nss/cmd/libpkix/pkix/results/test_valresult.c
delete mode 100644 security/nss/cmd/libpkix/pkix/results/test_verifynode.c
delete mode 100755 security/nss/cmd/libpkix/pkix/store/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix/store/manifest.mn
delete mode 100755 security/nss/cmd/libpkix/pkix/store/test_store.c
delete mode 100755 security/nss/cmd/libpkix/pkix/top/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix/top/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_basicchecker.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_basicconstraintschecker.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_buildchain.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_buildchain_partialchain.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_buildchain_resourcelimits.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_buildchain_uchecker.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_customcrlchecker.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_defaultcrlchecker2stores.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_ocsp.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_policychecker.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_subjaltnamechecker.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_validatechain.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_validatechain_NB.c
delete mode 100644 security/nss/cmd/libpkix/pkix/top/test_validatechain_bc.c
delete mode 100755 security/nss/cmd/libpkix/pkix/util/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix/util/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/pkix/util/test_error.c
delete mode 100644 security/nss/cmd/libpkix/pkix/util/test_list.c
delete mode 100644 security/nss/cmd/libpkix/pkix/util/test_list2.c
delete mode 100644 security/nss/cmd/libpkix/pkix/util/test_logger.c
delete mode 100755 security/nss/cmd/libpkix/pkix_pl/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix_pl/manifest.mn
delete mode 100755 security/nss/cmd/libpkix/pkix_pl/module/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix_pl/module/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/module/test_colcertstore.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/module/test_ekuchecker.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/module/test_httpcertstore.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/module/test_pk11certstore.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/module/test_socket.c
delete mode 100755 security/nss/cmd/libpkix/pkix_pl/pki/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix_pl/pki/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/pki/test_authorityinfoaccess.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/pki/test_cert.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/pki/test_crl.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/pki/test_crlentry.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/pki/test_date.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/pki/test_generalname.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/pki/test_nameconstraints.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/pki/test_subjectinfoaccess.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/pki/test_x500name.c
delete mode 100755 security/nss/cmd/libpkix/pkix_pl/system/Makefile
delete mode 100755 security/nss/cmd/libpkix/pkix_pl/system/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/stress_test.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_bigint.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_bytearray.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_hashtable.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_mem.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_monitorlock.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_mutex.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_mutex2.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_mutex3.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_object.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_oid.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_rwlock.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_string.c
delete mode 100644 security/nss/cmd/libpkix/pkix_pl/system/test_string2.c
delete mode 100755 security/nss/cmd/libpkix/pkixlibs.mk
delete mode 100755 security/nss/cmd/libpkix/pkixrules.mk
delete mode 100644 security/nss/cmd/libpkix/pkixutil/Makefile
delete mode 100644 security/nss/cmd/libpkix/pkixutil/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/pkixutil/pkixutil.c
delete mode 100755 security/nss/cmd/libpkix/sample_apps/Makefile
delete mode 100644 security/nss/cmd/libpkix/sample_apps/build_chain.c
delete mode 100644 security/nss/cmd/libpkix/sample_apps/dumpcert.c
delete mode 100644 security/nss/cmd/libpkix/sample_apps/dumpcrl.c
delete mode 100755 security/nss/cmd/libpkix/sample_apps/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/sample_apps/validate_chain.c
delete mode 100755 security/nss/cmd/libpkix/testutil/Makefile
delete mode 100644 security/nss/cmd/libpkix/testutil/config.mk
delete mode 100755 security/nss/cmd/libpkix/testutil/manifest.mn
delete mode 100644 security/nss/cmd/libpkix/testutil/pkixutil.def
delete mode 100755 security/nss/cmd/libpkix/testutil/testutil.c
delete mode 100755 security/nss/cmd/libpkix/testutil/testutil.h
delete mode 100755 security/nss/cmd/libpkix/testutil/testutil_nss.c
delete mode 100755 security/nss/cmd/libpkix/testutil/testutil_nss.h
delete mode 100644 security/nss/cmd/makepqg/Makefile
delete mode 100644 security/nss/cmd/makepqg/makepqg.c
delete mode 100644 security/nss/cmd/makepqg/manifest.mn
delete mode 100644 security/nss/cmd/makepqg/testit.ksh
delete mode 100644 security/nss/cmd/manifest.mn
delete mode 100644 security/nss/cmd/modutil/Makefile
delete mode 100644 security/nss/cmd/modutil/README
delete mode 100644 security/nss/cmd/modutil/error.h
delete mode 100644 security/nss/cmd/modutil/install-ds.c
delete mode 100644 security/nss/cmd/modutil/install-ds.h
delete mode 100644 security/nss/cmd/modutil/install.c
delete mode 100644 security/nss/cmd/modutil/install.h
delete mode 100644 security/nss/cmd/modutil/installparse.c
delete mode 100644 security/nss/cmd/modutil/installparse.h
delete mode 100644 security/nss/cmd/modutil/installparse.l
delete mode 100644 security/nss/cmd/modutil/installparse.y
delete mode 100644 security/nss/cmd/modutil/instsec.c
delete mode 100644 security/nss/cmd/modutil/lex.Pk11Install_yy.c
delete mode 100644 security/nss/cmd/modutil/manifest.mn
delete mode 100644 security/nss/cmd/modutil/modutil.c
delete mode 100644 security/nss/cmd/modutil/modutil.h
delete mode 100644 security/nss/cmd/modutil/pk11.c
delete mode 100644 security/nss/cmd/modutil/pk11jar.html
delete mode 100644 security/nss/cmd/modutil/rules.mk
delete mode 100644 security/nss/cmd/modutil/specification.html
delete mode 100644 security/nss/cmd/ocspclnt/Makefile
delete mode 100644 security/nss/cmd/ocspclnt/manifest.mn
delete mode 100644 security/nss/cmd/ocspclnt/ocspclnt.c
delete mode 100644 security/nss/cmd/oidcalc/Makefile
delete mode 100644 security/nss/cmd/oidcalc/manifest.mn
delete mode 100644 security/nss/cmd/oidcalc/oidcalc.c
delete mode 100644 security/nss/cmd/p7content/Makefile
delete mode 100644 security/nss/cmd/p7content/manifest.mn
delete mode 100644 security/nss/cmd/p7content/p7content.c
delete mode 100644 security/nss/cmd/p7env/Makefile
delete mode 100644 security/nss/cmd/p7env/manifest.mn
delete mode 100644 security/nss/cmd/p7env/p7env.c
delete mode 100644 security/nss/cmd/p7sign/Makefile
delete mode 100644 security/nss/cmd/p7sign/manifest.mn
delete mode 100644 security/nss/cmd/p7sign/p7sign.c
delete mode 100644 security/nss/cmd/p7verify/Makefile
delete mode 100644 security/nss/cmd/p7verify/manifest.mn
delete mode 100644 security/nss/cmd/p7verify/p7verify.c
delete mode 100755 security/nss/cmd/pk11mode/Makefile
delete mode 100644 security/nss/cmd/pk11mode/manifest.mn
delete mode 100644 security/nss/cmd/pk11mode/pk11mode.c
delete mode 100644 security/nss/cmd/pk11util/Makefile
delete mode 100644 security/nss/cmd/pk11util/manifest.mn
delete mode 100644 security/nss/cmd/pk11util/pk11util.c
delete mode 100644 security/nss/cmd/pk11util/scripts/dosign
delete mode 100644 security/nss/cmd/pk11util/scripts/hssign
delete mode 100644 security/nss/cmd/pk11util/scripts/lcert
delete mode 100644 security/nss/cmd/pk11util/scripts/mechanisms
delete mode 100644 security/nss/cmd/pk11util/scripts/pLabel1
delete mode 100644 security/nss/cmd/pk11util/scripts/pMechanisms
delete mode 100644 security/nss/cmd/pk11util/scripts/pcert
delete mode 100644 security/nss/cmd/pk12util/Makefile
delete mode 100644 security/nss/cmd/pk12util/manifest.mn
delete mode 100644 security/nss/cmd/pk12util/pk12util.c
delete mode 100644 security/nss/cmd/pk12util/pk12util.h
delete mode 100644 security/nss/cmd/platlibs.mk
delete mode 100644 security/nss/cmd/platrules.mk
delete mode 100644 security/nss/cmd/pp/Makefile
delete mode 100644 security/nss/cmd/pp/manifest.mn
delete mode 100644 security/nss/cmd/pp/pp.c
delete mode 100644 security/nss/cmd/pwdecrypt/Makefile
delete mode 100644 security/nss/cmd/pwdecrypt/manifest.mn
delete mode 100644 security/nss/cmd/pwdecrypt/pwdecrypt.c
delete mode 100644 security/nss/cmd/rsaperf/Makefile
delete mode 100644 security/nss/cmd/rsaperf/defkey.c
delete mode 100644 security/nss/cmd/rsaperf/manifest.mn
delete mode 100644 security/nss/cmd/rsaperf/rsaperf.c
delete mode 100644 security/nss/cmd/samples/cert
delete mode 100644 security/nss/cmd/samples/cert0
delete mode 100644 security/nss/cmd/samples/cert1
delete mode 100644 security/nss/cmd/samples/cert2
delete mode 100644 security/nss/cmd/samples/pkcs7.ber
delete mode 100644 security/nss/cmd/samples/pkcs7bday.ber
delete mode 100644 security/nss/cmd/samples/pkcs7cnet.ber
delete mode 100644 security/nss/cmd/samples/pkcs7news.ber
delete mode 100644 security/nss/cmd/samples/x509v3.der
delete mode 100644 security/nss/cmd/samples/x509v3.txt
delete mode 100644 security/nss/cmd/sdrtest/Makefile
delete mode 100644 security/nss/cmd/sdrtest/manifest.mn
delete mode 100644 security/nss/cmd/sdrtest/sdrtest.c
delete mode 100644 security/nss/cmd/selfserv/Makefile
delete mode 100644 security/nss/cmd/selfserv/manifest.mn
delete mode 100644 security/nss/cmd/selfserv/selfserv.c
delete mode 100644 security/nss/cmd/shlibsign/Makefile
delete mode 100644 security/nss/cmd/shlibsign/mangle/Makefile
delete mode 100644 security/nss/cmd/shlibsign/mangle/mangle.c
delete mode 100644 security/nss/cmd/shlibsign/mangle/manifest.mn
delete mode 100644 security/nss/cmd/shlibsign/manifest.mn
delete mode 100644 security/nss/cmd/shlibsign/shlibsign.c
delete mode 100644 security/nss/cmd/shlibsign/sign.cmd
delete mode 100644 security/nss/cmd/shlibsign/sign.sh
delete mode 100644 security/nss/cmd/signtool/Makefile
delete mode 100644 security/nss/cmd/signtool/README
delete mode 100644 security/nss/cmd/signtool/certgen.c
delete mode 100644 security/nss/cmd/signtool/javascript.c
delete mode 100644 security/nss/cmd/signtool/list.c
delete mode 100644 security/nss/cmd/signtool/manifest.mn
delete mode 100644 security/nss/cmd/signtool/sign.c
delete mode 100644 security/nss/cmd/signtool/signtool.c
delete mode 100644 security/nss/cmd/signtool/signtool.h
delete mode 100644 security/nss/cmd/signtool/util.c
delete mode 100644 security/nss/cmd/signtool/verify.c
delete mode 100644 security/nss/cmd/signtool/zip.c
delete mode 100644 security/nss/cmd/signtool/zip.h
delete mode 100644 security/nss/cmd/signver/Makefile
delete mode 100755 security/nss/cmd/signver/examples/1/form.pl
delete mode 100644 security/nss/cmd/signver/examples/1/signedForm.html
delete mode 100644 security/nss/cmd/signver/examples/1/signedForm.nt.html
delete mode 100755 security/nss/cmd/signver/examples/1/signedForm.pl
delete mode 100644 security/nss/cmd/signver/manifest.mn
delete mode 100644 security/nss/cmd/signver/pk7print.c
delete mode 100644 security/nss/cmd/signver/signver.c
delete mode 100644 security/nss/cmd/smimetools/Makefile
delete mode 100644 security/nss/cmd/smimetools/cmsutil.c
delete mode 100644 security/nss/cmd/smimetools/manifest.mn
delete mode 100644 security/nss/cmd/smimetools/rules.mk
delete mode 100755 security/nss/cmd/smimetools/smime
delete mode 100644 security/nss/cmd/ssltap/Makefile
delete mode 100644 security/nss/cmd/ssltap/manifest.mn
delete mode 100644 security/nss/cmd/ssltap/ssltap-manual.html
delete mode 100644 security/nss/cmd/ssltap/ssltap.c
delete mode 100644 security/nss/cmd/strsclnt/Makefile
delete mode 100644 security/nss/cmd/strsclnt/manifest.mn
delete mode 100644 security/nss/cmd/strsclnt/strsclnt.c
delete mode 100644 security/nss/cmd/symkeyutil/Makefile
delete mode 100644 security/nss/cmd/symkeyutil/manifest.mn
delete mode 100644 security/nss/cmd/symkeyutil/symkey.man
delete mode 100644 security/nss/cmd/symkeyutil/symkeyutil.c
delete mode 100644 security/nss/cmd/tests/Makefile
delete mode 100644 security/nss/cmd/tests/baddbdir.c
delete mode 100644 security/nss/cmd/tests/conflict.c
delete mode 100644 security/nss/cmd/tests/manifest.mn
delete mode 100644 security/nss/cmd/tests/nonspr10.c
delete mode 100644 security/nss/cmd/tests/remtest.c
delete mode 100644 security/nss/cmd/tstclnt/Makefile
delete mode 100644 security/nss/cmd/tstclnt/manifest.mn
delete mode 100644 security/nss/cmd/tstclnt/tstclnt.c
delete mode 100644 security/nss/cmd/vfychain/Makefile
delete mode 100644 security/nss/cmd/vfychain/manifest.mn
delete mode 100644 security/nss/cmd/vfychain/vfychain.c
delete mode 100644 security/nss/cmd/vfyserv/Makefile
delete mode 100644 security/nss/cmd/vfyserv/manifest.mn
delete mode 100644 security/nss/cmd/vfyserv/vfyserv.c
delete mode 100644 security/nss/cmd/vfyserv/vfyserv.h
delete mode 100644 security/nss/cmd/vfyserv/vfyutil.c
delete mode 100644 security/nss/cmd/zlib/Makefile
delete mode 100644 security/nss/cmd/zlib/README
delete mode 100644 security/nss/cmd/zlib/adler32.c
delete mode 100644 security/nss/cmd/zlib/compress.c
delete mode 100644 security/nss/cmd/zlib/config.mk
delete mode 100644 security/nss/cmd/zlib/crc32.c
delete mode 100644 security/nss/cmd/zlib/crc32.h
delete mode 100644 security/nss/cmd/zlib/deflate.c
delete mode 100644 security/nss/cmd/zlib/deflate.h
delete mode 100644 security/nss/cmd/zlib/example.c
delete mode 100644 security/nss/cmd/zlib/gzio.c
delete mode 100644 security/nss/cmd/zlib/infback.c
delete mode 100644 security/nss/cmd/zlib/inffast.c
delete mode 100644 security/nss/cmd/zlib/inffast.h
delete mode 100644 security/nss/cmd/zlib/inffixed.h
delete mode 100644 security/nss/cmd/zlib/inflate.c
delete mode 100644 security/nss/cmd/zlib/inflate.h
delete mode 100644 security/nss/cmd/zlib/inftrees.c
delete mode 100644 security/nss/cmd/zlib/inftrees.h
delete mode 100644 security/nss/cmd/zlib/manifest.mn
delete mode 100644 security/nss/cmd/zlib/minigzip.c
delete mode 100644 security/nss/cmd/zlib/trees.c
delete mode 100644 security/nss/cmd/zlib/trees.h
delete mode 100644 security/nss/cmd/zlib/uncompr.c
delete mode 100644 security/nss/cmd/zlib/zconf.h
delete mode 100644 security/nss/cmd/zlib/zlib.h
delete mode 100644 security/nss/cmd/zlib/zutil.c
delete mode 100644 security/nss/cmd/zlib/zutil.h
delete mode 100644 security/nss/lib/Makefile
delete mode 100644 security/nss/lib/base/Makefile
delete mode 100644 security/nss/lib/base/arena.c
delete mode 100644 security/nss/lib/base/base.h
delete mode 100644 security/nss/lib/base/baset.h
delete mode 100644 security/nss/lib/base/config.mk
delete mode 100644 security/nss/lib/base/error.c
delete mode 100644 security/nss/lib/base/errorval.c
delete mode 100644 security/nss/lib/base/hash.c
delete mode 100644 security/nss/lib/base/hashops.c
delete mode 100644 security/nss/lib/base/item.c
delete mode 100644 security/nss/lib/base/libc.c
delete mode 100644 security/nss/lib/base/list.c
delete mode 100644 security/nss/lib/base/manifest.mn
delete mode 100644 security/nss/lib/base/nssbase.h
delete mode 100644 security/nss/lib/base/nssbaset.h
delete mode 100644 security/nss/lib/base/tracker.c
delete mode 100644 security/nss/lib/base/utf8.c
delete mode 100644 security/nss/lib/certdb/.cvsignore
delete mode 100644 security/nss/lib/certdb/Makefile
delete mode 100644 security/nss/lib/certdb/alg1485.c
delete mode 100644 security/nss/lib/certdb/cert.h
delete mode 100644 security/nss/lib/certdb/certdb.c
delete mode 100644 security/nss/lib/certdb/certdb.h
delete mode 100644 security/nss/lib/certdb/certi.h
delete mode 100644 security/nss/lib/certdb/certt.h
delete mode 100644 security/nss/lib/certdb/certv3.c
delete mode 100644 security/nss/lib/certdb/certxutl.c
delete mode 100644 security/nss/lib/certdb/certxutl.h
delete mode 100644 security/nss/lib/certdb/config.mk
delete mode 100644 security/nss/lib/certdb/crl.c
delete mode 100644 security/nss/lib/certdb/genname.c
delete mode 100644 security/nss/lib/certdb/genname.h
delete mode 100644 security/nss/lib/certdb/manifest.mn
delete mode 100644 security/nss/lib/certdb/polcyxtn.c
delete mode 100644 security/nss/lib/certdb/secname.c
delete mode 100644 security/nss/lib/certdb/stanpcertdb.c
delete mode 100644 security/nss/lib/certdb/xauthkid.c
delete mode 100644 security/nss/lib/certdb/xbsconst.c
delete mode 100644 security/nss/lib/certdb/xconst.c
delete mode 100644 security/nss/lib/certdb/xconst.h
delete mode 100644 security/nss/lib/certhigh/Makefile
delete mode 100644 security/nss/lib/certhigh/certhigh.c
delete mode 100644 security/nss/lib/certhigh/certhtml.c
delete mode 100644 security/nss/lib/certhigh/certreq.c
delete mode 100644 security/nss/lib/certhigh/certvfy.c
delete mode 100644 security/nss/lib/certhigh/certvfypkix.c
delete mode 100644 security/nss/lib/certhigh/certvfypkixprint.c
delete mode 100644 security/nss/lib/certhigh/config.mk
delete mode 100644 security/nss/lib/certhigh/crlv2.c
delete mode 100644 security/nss/lib/certhigh/manifest.mn
delete mode 100644 security/nss/lib/certhigh/ocsp.c
delete mode 100644 security/nss/lib/certhigh/ocsp.h
delete mode 100644 security/nss/lib/certhigh/ocspi.h
delete mode 100644 security/nss/lib/certhigh/ocspt.h
delete mode 100644 security/nss/lib/certhigh/ocspti.h
delete mode 100644 security/nss/lib/certhigh/xcrldist.c
delete mode 100644 security/nss/lib/ckfw/Makefile
delete mode 100644 security/nss/lib/ckfw/builtins/Makefile
delete mode 100644 security/nss/lib/ckfw/builtins/README
delete mode 100644 security/nss/lib/ckfw/builtins/anchor.c
delete mode 100644 security/nss/lib/ckfw/builtins/bfind.c
delete mode 100644 security/nss/lib/ckfw/builtins/binst.c
delete mode 100644 security/nss/lib/ckfw/builtins/bobject.c
delete mode 100644 security/nss/lib/ckfw/builtins/bsession.c
delete mode 100644 security/nss/lib/ckfw/builtins/bslot.c
delete mode 100644 security/nss/lib/ckfw/builtins/btoken.c
delete mode 100644 security/nss/lib/ckfw/builtins/builtins.h
delete mode 100644 security/nss/lib/ckfw/builtins/certdata.c
delete mode 100644 security/nss/lib/ckfw/builtins/certdata.perl
delete mode 100644 security/nss/lib/ckfw/builtins/certdata.txt
delete mode 100644 security/nss/lib/ckfw/builtins/ckbiver.c
delete mode 100644 security/nss/lib/ckfw/builtins/config.mk
delete mode 100644 security/nss/lib/ckfw/builtins/constants.c
delete mode 100644 security/nss/lib/ckfw/builtins/manifest.mn
delete mode 100644 security/nss/lib/ckfw/builtins/nssckbi.def
delete mode 100644 security/nss/lib/ckfw/builtins/nssckbi.h
delete mode 100644 security/nss/lib/ckfw/builtins/nssckbi.rc
delete mode 100644 security/nss/lib/ckfw/capi/Makefile
delete mode 100644 security/nss/lib/ckfw/capi/README
delete mode 100644 security/nss/lib/ckfw/capi/anchor.c
delete mode 100644 security/nss/lib/ckfw/capi/cfind.c
delete mode 100644 security/nss/lib/ckfw/capi/cinst.c
delete mode 100644 security/nss/lib/ckfw/capi/ckcapi.h
delete mode 100644 security/nss/lib/ckfw/capi/ckcapiver.c
delete mode 100644 security/nss/lib/ckfw/capi/cobject.c
delete mode 100644 security/nss/lib/ckfw/capi/config.mk
delete mode 100644 security/nss/lib/ckfw/capi/constants.c
delete mode 100644 security/nss/lib/ckfw/capi/crsa.c
delete mode 100644 security/nss/lib/ckfw/capi/csession.c
delete mode 100644 security/nss/lib/ckfw/capi/cslot.c
delete mode 100644 security/nss/lib/ckfw/capi/ctoken.c
delete mode 100644 security/nss/lib/ckfw/capi/manifest.mn
delete mode 100644 security/nss/lib/ckfw/capi/nsscapi.def
delete mode 100644 security/nss/lib/ckfw/capi/nsscapi.h
delete mode 100644 security/nss/lib/ckfw/capi/nsscapi.rc
delete mode 100644 security/nss/lib/ckfw/capi/staticobj.c
delete mode 100644 security/nss/lib/ckfw/ck.api
delete mode 100644 security/nss/lib/ckfw/ck.h
delete mode 100644 security/nss/lib/ckfw/ckapi.perl
delete mode 100644 security/nss/lib/ckfw/ckfw.h
delete mode 100644 security/nss/lib/ckfw/ckfwm.h
delete mode 100644 security/nss/lib/ckfw/ckfwtm.h
delete mode 100644 security/nss/lib/ckfw/ckmd.h
delete mode 100644 security/nss/lib/ckfw/ckt.h
delete mode 100644 security/nss/lib/ckfw/config.mk
delete mode 100644 security/nss/lib/ckfw/crypto.c
delete mode 100644 security/nss/lib/ckfw/dbm/Makefile
delete mode 100644 security/nss/lib/ckfw/dbm/anchor.c
delete mode 100644 security/nss/lib/ckfw/dbm/ckdbm.h
delete mode 100644 security/nss/lib/ckfw/dbm/config.mk
delete mode 100644 security/nss/lib/ckfw/dbm/db.c
delete mode 100644 security/nss/lib/ckfw/dbm/find.c
delete mode 100644 security/nss/lib/ckfw/dbm/instance.c
delete mode 100644 security/nss/lib/ckfw/dbm/manifest.mn
delete mode 100644 security/nss/lib/ckfw/dbm/object.c
delete mode 100644 security/nss/lib/ckfw/dbm/session.c
delete mode 100644 security/nss/lib/ckfw/dbm/slot.c
delete mode 100644 security/nss/lib/ckfw/dbm/token.c
delete mode 100644 security/nss/lib/ckfw/find.c
delete mode 100644 security/nss/lib/ckfw/hash.c
delete mode 100644 security/nss/lib/ckfw/instance.c
delete mode 100644 security/nss/lib/ckfw/manifest.mn
delete mode 100644 security/nss/lib/ckfw/mechanism.c
delete mode 100644 security/nss/lib/ckfw/mutex.c
delete mode 100644 security/nss/lib/ckfw/nssck.api
delete mode 100644 security/nss/lib/ckfw/nssckepv.h
delete mode 100644 security/nss/lib/ckfw/nssckft.h
delete mode 100644 security/nss/lib/ckfw/nssckfw.h
delete mode 100644 security/nss/lib/ckfw/nssckfwc.h
delete mode 100644 security/nss/lib/ckfw/nssckfwt.h
delete mode 100644 security/nss/lib/ckfw/nssckg.h
delete mode 100644 security/nss/lib/ckfw/nssckmdt.h
delete mode 100644 security/nss/lib/ckfw/nssckt.h
delete mode 100644 security/nss/lib/ckfw/nssmkey/Makefile
delete mode 100644 security/nss/lib/ckfw/nssmkey/README
delete mode 100644 security/nss/lib/ckfw/nssmkey/ckmk.h
delete mode 100644 security/nss/lib/ckfw/nssmkey/ckmkver.c
delete mode 100644 security/nss/lib/ckfw/nssmkey/config.mk
delete mode 100644 security/nss/lib/ckfw/nssmkey/manchor.c
delete mode 100644 security/nss/lib/ckfw/nssmkey/manifest.mn
delete mode 100644 security/nss/lib/ckfw/nssmkey/mconstants.c
delete mode 100644 security/nss/lib/ckfw/nssmkey/mfind.c
delete mode 100644 security/nss/lib/ckfw/nssmkey/minst.c
delete mode 100644 security/nss/lib/ckfw/nssmkey/mobject.c
delete mode 100644 security/nss/lib/ckfw/nssmkey/mrsa.c
delete mode 100644 security/nss/lib/ckfw/nssmkey/msession.c
delete mode 100644 security/nss/lib/ckfw/nssmkey/mslot.c
delete mode 100644 security/nss/lib/ckfw/nssmkey/mtoken.c
delete mode 100644 security/nss/lib/ckfw/nssmkey/nssmkey.def
delete mode 100644 security/nss/lib/ckfw/nssmkey/nssmkey.h
delete mode 100644 security/nss/lib/ckfw/nssmkey/staticobj.c
delete mode 100644 security/nss/lib/ckfw/object.c
delete mode 100644 security/nss/lib/ckfw/session.c
delete mode 100644 security/nss/lib/ckfw/sessobj.c
delete mode 100644 security/nss/lib/ckfw/slot.c
delete mode 100644 security/nss/lib/ckfw/token.c
delete mode 100644 security/nss/lib/ckfw/wrap.c
delete mode 100644 security/nss/lib/crmf/Makefile
delete mode 100644 security/nss/lib/crmf/asn1cmn.c
delete mode 100644 security/nss/lib/crmf/challcli.c
delete mode 100644 security/nss/lib/crmf/cmmf.h
delete mode 100644 security/nss/lib/crmf/cmmfasn1.c
delete mode 100644 security/nss/lib/crmf/cmmfchal.c
delete mode 100644 security/nss/lib/crmf/cmmfi.h
delete mode 100644 security/nss/lib/crmf/cmmfit.h
delete mode 100644 security/nss/lib/crmf/cmmfrec.c
delete mode 100644 security/nss/lib/crmf/cmmfresp.c
delete mode 100644 security/nss/lib/crmf/cmmft.h
delete mode 100644 security/nss/lib/crmf/config.mk
delete mode 100644 security/nss/lib/crmf/crmf.h
delete mode 100644 security/nss/lib/crmf/crmfcont.c
delete mode 100644 security/nss/lib/crmf/crmfdec.c
delete mode 100644 security/nss/lib/crmf/crmfenc.c
delete mode 100644 security/nss/lib/crmf/crmffut.h
delete mode 100644 security/nss/lib/crmf/crmfget.c
delete mode 100644 security/nss/lib/crmf/crmfi.h
delete mode 100644 security/nss/lib/crmf/crmfit.h
delete mode 100644 security/nss/lib/crmf/crmfpop.c
delete mode 100644 security/nss/lib/crmf/crmfreq.c
delete mode 100644 security/nss/lib/crmf/crmft.h
delete mode 100644 security/nss/lib/crmf/crmftmpl.c
delete mode 100644 security/nss/lib/crmf/encutil.c
delete mode 100644 security/nss/lib/crmf/manifest.mn
delete mode 100644 security/nss/lib/crmf/respcli.c
delete mode 100644 security/nss/lib/crmf/respcmn.c
delete mode 100644 security/nss/lib/crmf/servget.c
delete mode 100644 security/nss/lib/cryptohi/Makefile
delete mode 100644 security/nss/lib/cryptohi/config.mk
delete mode 100644 security/nss/lib/cryptohi/cryptohi.h
delete mode 100644 security/nss/lib/cryptohi/cryptoht.h
delete mode 100644 security/nss/lib/cryptohi/dsautil.c
delete mode 100644 security/nss/lib/cryptohi/key.h
delete mode 100644 security/nss/lib/cryptohi/keyhi.h
delete mode 100644 security/nss/lib/cryptohi/keyi.h
delete mode 100644 security/nss/lib/cryptohi/keyt.h
delete mode 100644 security/nss/lib/cryptohi/keythi.h
delete mode 100644 security/nss/lib/cryptohi/manifest.mn
delete mode 100644 security/nss/lib/cryptohi/sechash.c
delete mode 100644 security/nss/lib/cryptohi/seckey.c
delete mode 100644 security/nss/lib/cryptohi/secsign.c
delete mode 100644 security/nss/lib/cryptohi/secvfy.c
delete mode 100644 security/nss/lib/dev/Makefile
delete mode 100644 security/nss/lib/dev/ckhelper.c
delete mode 100644 security/nss/lib/dev/ckhelper.h
delete mode 100644 security/nss/lib/dev/config.mk
delete mode 100644 security/nss/lib/dev/dev.h
delete mode 100644 security/nss/lib/dev/devm.h
delete mode 100644 security/nss/lib/dev/devslot.c
delete mode 100644 security/nss/lib/dev/devt.h
delete mode 100644 security/nss/lib/dev/devtm.h
delete mode 100644 security/nss/lib/dev/devtoken.c
delete mode 100644 security/nss/lib/dev/devutil.c
delete mode 100644 security/nss/lib/dev/manifest.mn
delete mode 100644 security/nss/lib/dev/nssdev.h
delete mode 100644 security/nss/lib/dev/nssdevt.h
delete mode 100644 security/nss/lib/freebl/Makefile
delete mode 100644 security/nss/lib/freebl/aeskeywrap.c
delete mode 100644 security/nss/lib/freebl/alg2268.c
delete mode 100644 security/nss/lib/freebl/alghmac.c
delete mode 100644 security/nss/lib/freebl/alghmac.h
delete mode 100644 security/nss/lib/freebl/arcfive.c
delete mode 100644 security/nss/lib/freebl/arcfour-amd64-gas.s
delete mode 100644 security/nss/lib/freebl/arcfour-amd64-masm.asm
delete mode 100644 security/nss/lib/freebl/arcfour-amd64-sun.s
delete mode 100644 security/nss/lib/freebl/arcfour.c
delete mode 100644 security/nss/lib/freebl/blapi.h
delete mode 100644 security/nss/lib/freebl/blapii.h
delete mode 100644 security/nss/lib/freebl/blapit.h
delete mode 100644 security/nss/lib/freebl/camellia.c
delete mode 100644 security/nss/lib/freebl/camellia.h
delete mode 100644 security/nss/lib/freebl/config.mk
delete mode 100644 security/nss/lib/freebl/des.c
delete mode 100644 security/nss/lib/freebl/des.h
delete mode 100644 security/nss/lib/freebl/desblapi.c
delete mode 100644 security/nss/lib/freebl/dh.c
delete mode 100644 security/nss/lib/freebl/drbg.c
delete mode 100644 security/nss/lib/freebl/dsa.c
delete mode 100644 security/nss/lib/freebl/ec.c
delete mode 100644 security/nss/lib/freebl/ec.h
delete mode 100644 security/nss/lib/freebl/ecl/Makefile
delete mode 100644 security/nss/lib/freebl/ecl/README
delete mode 100644 security/nss/lib/freebl/ecl/README.FP
delete mode 100644 security/nss/lib/freebl/ecl/ec2.h
delete mode 100644 security/nss/lib/freebl/ecl/ec2_163.c
delete mode 100644 security/nss/lib/freebl/ecl/ec2_193.c
delete mode 100644 security/nss/lib/freebl/ecl/ec2_233.c
delete mode 100644 security/nss/lib/freebl/ecl/ec2_aff.c
delete mode 100644 security/nss/lib/freebl/ecl/ec2_mont.c
delete mode 100644 security/nss/lib/freebl/ecl/ec2_proj.c
delete mode 100644 security/nss/lib/freebl/ecl/ec_naf.c
delete mode 100644 security/nss/lib/freebl/ecl/ecl-curve.h
delete mode 100644 security/nss/lib/freebl/ecl/ecl-exp.h
delete mode 100644 security/nss/lib/freebl/ecl/ecl-priv.h
delete mode 100644 security/nss/lib/freebl/ecl/ecl.c
delete mode 100644 security/nss/lib/freebl/ecl/ecl.h
delete mode 100644 security/nss/lib/freebl/ecl/ecl_curve.c
delete mode 100644 security/nss/lib/freebl/ecl/ecl_gf.c
delete mode 100644 security/nss/lib/freebl/ecl/ecl_mult.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp.h
delete mode 100644 security/nss/lib/freebl/ecl/ecp_192.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_224.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_256.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_384.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_521.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_aff.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_fp.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_fp.h
delete mode 100644 security/nss/lib/freebl/ecl/ecp_fp160.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_fp192.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_fp224.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_fpinc.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_jac.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_jm.c
delete mode 100644 security/nss/lib/freebl/ecl/ecp_mont.c
delete mode 100644 security/nss/lib/freebl/ecl/tests/ec2_test.c
delete mode 100644 security/nss/lib/freebl/ecl/tests/ec_naft.c
delete mode 100644 security/nss/lib/freebl/ecl/tests/ecp_fpt.c
delete mode 100644 security/nss/lib/freebl/ecl/tests/ecp_test.c
delete mode 100644 security/nss/lib/freebl/freebl.def
delete mode 100644 security/nss/lib/freebl/freebl.rc
delete mode 100644 security/nss/lib/freebl/freebl_hash.def
delete mode 100644 security/nss/lib/freebl/freeblver.c
delete mode 100644 security/nss/lib/freebl/genload.c
delete mode 100644 security/nss/lib/freebl/hasht.h
delete mode 100644 security/nss/lib/freebl/intel-aes.h
delete mode 100644 security/nss/lib/freebl/intel-aes.s
delete mode 100644 security/nss/lib/freebl/ldvector.c
delete mode 100644 security/nss/lib/freebl/loader.c
delete mode 100644 security/nss/lib/freebl/loader.h
delete mode 100644 security/nss/lib/freebl/manifest.mn
delete mode 100644 security/nss/lib/freebl/md2.c
delete mode 100644 security/nss/lib/freebl/md5.c
delete mode 100644 security/nss/lib/freebl/mknewpc2.c
delete mode 100644 security/nss/lib/freebl/mksp.c
delete mode 100644 security/nss/lib/freebl/mpi/Makefile
delete mode 100644 security/nss/lib/freebl/mpi/Makefile.os2
delete mode 100644 security/nss/lib/freebl/mpi/Makefile.win
delete mode 100644 security/nss/lib/freebl/mpi/README
delete mode 100755 security/nss/lib/freebl/mpi/all-tests
delete mode 100644 security/nss/lib/freebl/mpi/doc/LICENSE
delete mode 100644 security/nss/lib/freebl/mpi/doc/LICENSE-MPL
delete mode 100644 security/nss/lib/freebl/mpi/doc/basecvt.pod
delete mode 100755 security/nss/lib/freebl/mpi/doc/build
delete mode 100644 security/nss/lib/freebl/mpi/doc/div.txt
delete mode 100644 security/nss/lib/freebl/mpi/doc/expt.txt
delete mode 100644 security/nss/lib/freebl/mpi/doc/gcd.pod
delete mode 100644 security/nss/lib/freebl/mpi/doc/invmod.pod
delete mode 100644 security/nss/lib/freebl/mpi/doc/isprime.pod
delete mode 100644 security/nss/lib/freebl/mpi/doc/lap.pod
delete mode 100644 security/nss/lib/freebl/mpi/doc/mpi-test.pod
delete mode 100644 security/nss/lib/freebl/mpi/doc/mul.txt
delete mode 100644 security/nss/lib/freebl/mpi/doc/pi.txt
delete mode 100644 security/nss/lib/freebl/mpi/doc/prime.txt
delete mode 100644 security/nss/lib/freebl/mpi/doc/prng.pod
delete mode 100644 security/nss/lib/freebl/mpi/doc/redux.txt
delete mode 100644 security/nss/lib/freebl/mpi/doc/sqrt.txt
delete mode 100644 security/nss/lib/freebl/mpi/doc/square.txt
delete mode 100644 security/nss/lib/freebl/mpi/doc/timing.txt
delete mode 100644 security/nss/lib/freebl/mpi/hpma512.s
delete mode 100644 security/nss/lib/freebl/mpi/hppa20.s
delete mode 100644 security/nss/lib/freebl/mpi/hppatch.adb
delete mode 100644 security/nss/lib/freebl/mpi/logtab.h
delete mode 100755 security/nss/lib/freebl/mpi/make-logtab
delete mode 100755 security/nss/lib/freebl/mpi/make-test-arrays
delete mode 100644 security/nss/lib/freebl/mpi/mdxptest.c
delete mode 100644 security/nss/lib/freebl/mpi/montmulf.c
delete mode 100644 security/nss/lib/freebl/mpi/montmulf.h
delete mode 100644 security/nss/lib/freebl/mpi/montmulf.il
delete mode 100644 security/nss/lib/freebl/mpi/montmulf.s
delete mode 100644 security/nss/lib/freebl/mpi/montmulfv8.il
delete mode 100644 security/nss/lib/freebl/mpi/montmulfv8.s
delete mode 100644 security/nss/lib/freebl/mpi/montmulfv9.il
delete mode 100644 security/nss/lib/freebl/mpi/montmulfv9.s
delete mode 100644 security/nss/lib/freebl/mpi/mp_comba.c
delete mode 100644 security/nss/lib/freebl/mpi/mp_comba_amd64_masm.asm
delete mode 100644 security/nss/lib/freebl/mpi/mp_comba_amd64_sun.s
delete mode 100644 security/nss/lib/freebl/mpi/mp_gf2m-priv.h
delete mode 100644 security/nss/lib/freebl/mpi/mp_gf2m.c
delete mode 100644 security/nss/lib/freebl/mpi/mp_gf2m.h
delete mode 100644 security/nss/lib/freebl/mpi/mpcpucache.c
delete mode 100644 security/nss/lib/freebl/mpi/mpcpucache_amd64.s
delete mode 100644 security/nss/lib/freebl/mpi/mpcpucache_x86.s
delete mode 100644 security/nss/lib/freebl/mpi/mpi-config.h
delete mode 100644 security/nss/lib/freebl/mpi/mpi-priv.h
delete mode 100644 security/nss/lib/freebl/mpi/mpi-test.c
delete mode 100644 security/nss/lib/freebl/mpi/mpi.c
delete mode 100644 security/nss/lib/freebl/mpi/mpi.h
delete mode 100644 security/nss/lib/freebl/mpi/mpi_amd64.c
delete mode 100644 security/nss/lib/freebl/mpi/mpi_amd64_gas.s
delete mode 100644 security/nss/lib/freebl/mpi/mpi_amd64_masm.asm
delete mode 100644 security/nss/lib/freebl/mpi/mpi_amd64_sun.s
delete mode 100644 security/nss/lib/freebl/mpi/mpi_hp.c
delete mode 100644 security/nss/lib/freebl/mpi/mpi_i86pc.s
delete mode 100644 security/nss/lib/freebl/mpi/mpi_mips.s
delete mode 100644 security/nss/lib/freebl/mpi/mpi_sparc.c
delete mode 100644 security/nss/lib/freebl/mpi/mpi_x86.s
delete mode 100644 security/nss/lib/freebl/mpi/mpi_x86_asm.c
delete mode 100644 security/nss/lib/freebl/mpi/mpi_x86_os2.s
delete mode 100644 security/nss/lib/freebl/mpi/mplogic.c
delete mode 100644 security/nss/lib/freebl/mpi/mplogic.h
delete mode 100644 security/nss/lib/freebl/mpi/mpmontg.c
delete mode 100644 security/nss/lib/freebl/mpi/mpprime.c
delete mode 100644 security/nss/lib/freebl/mpi/mpprime.h
delete mode 100644 security/nss/lib/freebl/mpi/mpv_sparc.c
delete mode 100644 security/nss/lib/freebl/mpi/mpv_sparcv8.s
delete mode 100644 security/nss/lib/freebl/mpi/mpv_sparcv8x.s
delete mode 100644 security/nss/lib/freebl/mpi/mpv_sparcv9.s
delete mode 100644 security/nss/lib/freebl/mpi/mpvalpha.c
delete mode 100644 security/nss/lib/freebl/mpi/mulsqr.c
delete mode 100755 security/nss/lib/freebl/mpi/multest
delete mode 100644 security/nss/lib/freebl/mpi/primes.c
delete mode 100755 security/nss/lib/freebl/mpi/stats
delete mode 100644 security/nss/lib/freebl/mpi/target.mk
delete mode 100644 security/nss/lib/freebl/mpi/test-arrays.txt
delete mode 100644 security/nss/lib/freebl/mpi/test-info.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/LICENSE
delete mode 100644 security/nss/lib/freebl/mpi/tests/LICENSE-MPL
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-1.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-2.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-3.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-3a.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-4.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-4a.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-4b.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-5.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-5a.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-6.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-7.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-8.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-9.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/mptest-b.c
delete mode 100644 security/nss/lib/freebl/mpi/tests/pi1k.txt
delete mode 100644 security/nss/lib/freebl/mpi/tests/pi2k.txt
delete mode 100644 security/nss/lib/freebl/mpi/tests/pi5k.txt
delete mode 100755 security/nss/lib/freebl/mpi/timetest
delete mode 100755 security/nss/lib/freebl/mpi/types.pl
delete mode 100644 security/nss/lib/freebl/mpi/utils/LICENSE
delete mode 100644 security/nss/lib/freebl/mpi/utils/LICENSE-MPL
delete mode 100644 security/nss/lib/freebl/mpi/utils/PRIMES
delete mode 100644 security/nss/lib/freebl/mpi/utils/README
delete mode 100644 security/nss/lib/freebl/mpi/utils/basecvt.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/bbs_rand.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/bbs_rand.h
delete mode 100644 security/nss/lib/freebl/mpi/utils/bbsrand.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/dec2hex.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/exptmod.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/fact.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/gcd.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/hex2dec.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/identest.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/invmod.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/isprime.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/lap.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/makeprime.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/metime.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/pi.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/primegen.c
delete mode 100644 security/nss/lib/freebl/mpi/utils/prng.c
delete mode 100755 security/nss/lib/freebl/mpi/utils/ptab.pl
delete mode 100644 security/nss/lib/freebl/mpi/utils/sieve.c
delete mode 100644 security/nss/lib/freebl/mpi/vis_32.il
delete mode 100644 security/nss/lib/freebl/mpi/vis_64.il
delete mode 100644 security/nss/lib/freebl/mpi/vis_proto.h
delete mode 100644 security/nss/lib/freebl/nsslowhash.c
delete mode 100644 security/nss/lib/freebl/nsslowhash.h
delete mode 100644 security/nss/lib/freebl/os2_rand.c
delete mode 100644 security/nss/lib/freebl/pqg.c
delete mode 100644 security/nss/lib/freebl/rawhash.c
delete mode 100644 security/nss/lib/freebl/ret_cr16.s
delete mode 100644 security/nss/lib/freebl/rijndael.c
delete mode 100644 security/nss/lib/freebl/rijndael.h
delete mode 100644 security/nss/lib/freebl/rijndael32.tab
delete mode 100644 security/nss/lib/freebl/rijndael_tables.c
delete mode 100644 security/nss/lib/freebl/rsa.c
delete mode 100644 security/nss/lib/freebl/sechash.h
delete mode 100644 security/nss/lib/freebl/secmpi.h
delete mode 100644 security/nss/lib/freebl/secrng.h
delete mode 100644 security/nss/lib/freebl/seed.c
delete mode 100644 security/nss/lib/freebl/seed.h
delete mode 100644 security/nss/lib/freebl/sha-fast-amd64-sun.s
delete mode 100644 security/nss/lib/freebl/sha256.h
delete mode 100644 security/nss/lib/freebl/sha512.c
delete mode 100644 security/nss/lib/freebl/sha_fast.c
delete mode 100644 security/nss/lib/freebl/sha_fast.h
delete mode 100644 security/nss/lib/freebl/shsign.h
delete mode 100644 security/nss/lib/freebl/shvfy.c
delete mode 100644 security/nss/lib/freebl/stubs.c
delete mode 100644 security/nss/lib/freebl/stubs.h
delete mode 100644 security/nss/lib/freebl/sysrand.c
delete mode 100644 security/nss/lib/freebl/tlsprfalg.c
delete mode 100644 security/nss/lib/freebl/unix_rand.c
delete mode 100644 security/nss/lib/freebl/win_rand.c
delete mode 100644 security/nss/lib/jar/Makefile
delete mode 100644 security/nss/lib/jar/config.mk
delete mode 100644 security/nss/lib/jar/jar-ds.c
delete mode 100644 security/nss/lib/jar/jar-ds.h
delete mode 100644 security/nss/lib/jar/jar.c
delete mode 100644 security/nss/lib/jar/jar.h
delete mode 100644 security/nss/lib/jar/jarfile.c
delete mode 100644 security/nss/lib/jar/jarfile.h
delete mode 100644 security/nss/lib/jar/jarint.c
delete mode 100644 security/nss/lib/jar/jarint.h
delete mode 100644 security/nss/lib/jar/jarnav.c
delete mode 100644 security/nss/lib/jar/jarsign.c
delete mode 100644 security/nss/lib/jar/jarver.c
delete mode 100644 security/nss/lib/jar/jzconf.h
delete mode 100644 security/nss/lib/jar/jzlib.h
delete mode 100644 security/nss/lib/jar/manifest.mn
delete mode 100755 security/nss/lib/libpkix/Makefile
delete mode 100755 security/nss/lib/libpkix/config.mk
delete mode 100755 security/nss/lib/libpkix/include/Makefile
delete mode 100755 security/nss/lib/libpkix/include/config.mk
delete mode 100755 security/nss/lib/libpkix/include/manifest.mn
delete mode 100755 security/nss/lib/libpkix/include/pkix.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_certsel.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_certstore.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_checker.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_crlsel.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_errorstrings.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_params.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_pl_pki.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_pl_system.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_results.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_revchecker.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_sample_modules.h
delete mode 100755 security/nss/lib/libpkix/include/pkix_util.h
delete mode 100755 security/nss/lib/libpkix/include/pkixt.h
delete mode 100755 security/nss/lib/libpkix/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix/certsel/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix/certsel/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix/certsel/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix/certsel/pkix_certselector.c
delete mode 100755 security/nss/lib/libpkix/pkix/certsel/pkix_certselector.h
delete mode 100755 security/nss/lib/libpkix/pkix/certsel/pkix_comcertselparams.c
delete mode 100755 security/nss/lib/libpkix/pkix/certsel/pkix_comcertselparams.h
delete mode 100755 security/nss/lib/libpkix/pkix/checker/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix/checker/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix/checker/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_basicconstraintschecker.c
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_basicconstraintschecker.h
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_certchainchecker.c
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_certchainchecker.h
delete mode 100644 security/nss/lib/libpkix/pkix/checker/pkix_crlchecker.c
delete mode 100644 security/nss/lib/libpkix/pkix/checker/pkix_crlchecker.h
delete mode 100644 security/nss/lib/libpkix/pkix/checker/pkix_ekuchecker.c
delete mode 100644 security/nss/lib/libpkix/pkix/checker/pkix_ekuchecker.h
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_expirationchecker.c
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_expirationchecker.h
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_namechainingchecker.c
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_namechainingchecker.h
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_nameconstraintschecker.c
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_nameconstraintschecker.h
delete mode 100644 security/nss/lib/libpkix/pkix/checker/pkix_ocspchecker.c
delete mode 100644 security/nss/lib/libpkix/pkix/checker/pkix_ocspchecker.h
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_policychecker.c
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_policychecker.h
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_revocationchecker.c
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_revocationchecker.h
delete mode 100644 security/nss/lib/libpkix/pkix/checker/pkix_revocationmethod.c
delete mode 100644 security/nss/lib/libpkix/pkix/checker/pkix_revocationmethod.h
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_signaturechecker.c
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_signaturechecker.h
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_targetcertchecker.c
delete mode 100755 security/nss/lib/libpkix/pkix/checker/pkix_targetcertchecker.h
delete mode 100755 security/nss/lib/libpkix/pkix/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix/crlsel/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix/crlsel/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix/crlsel/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix/crlsel/pkix_comcrlselparams.c
delete mode 100755 security/nss/lib/libpkix/pkix/crlsel/pkix_comcrlselparams.h
delete mode 100755 security/nss/lib/libpkix/pkix/crlsel/pkix_crlselector.c
delete mode 100755 security/nss/lib/libpkix/pkix/crlsel/pkix_crlselector.h
delete mode 100755 security/nss/lib/libpkix/pkix/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix/params/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix/params/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix/params/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix/params/pkix_buildparams.c
delete mode 100755 security/nss/lib/libpkix/pkix/params/pkix_buildparams.h
delete mode 100755 security/nss/lib/libpkix/pkix/params/pkix_procparams.c
delete mode 100755 security/nss/lib/libpkix/pkix/params/pkix_procparams.h
delete mode 100755 security/nss/lib/libpkix/pkix/params/pkix_resourcelimits.c
delete mode 100755 security/nss/lib/libpkix/pkix/params/pkix_resourcelimits.h
delete mode 100755 security/nss/lib/libpkix/pkix/params/pkix_trustanchor.c
delete mode 100755 security/nss/lib/libpkix/pkix/params/pkix_trustanchor.h
delete mode 100755 security/nss/lib/libpkix/pkix/params/pkix_valparams.c
delete mode 100755 security/nss/lib/libpkix/pkix/params/pkix_valparams.h
delete mode 100755 security/nss/lib/libpkix/pkix/results/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix/results/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix/results/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix/results/pkix_buildresult.c
delete mode 100755 security/nss/lib/libpkix/pkix/results/pkix_buildresult.h
delete mode 100755 security/nss/lib/libpkix/pkix/results/pkix_policynode.c
delete mode 100755 security/nss/lib/libpkix/pkix/results/pkix_policynode.h
delete mode 100755 security/nss/lib/libpkix/pkix/results/pkix_valresult.c
delete mode 100755 security/nss/lib/libpkix/pkix/results/pkix_valresult.h
delete mode 100755 security/nss/lib/libpkix/pkix/results/pkix_verifynode.c
delete mode 100755 security/nss/lib/libpkix/pkix/results/pkix_verifynode.h
delete mode 100755 security/nss/lib/libpkix/pkix/store/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix/store/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix/store/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix/store/pkix_store.c
delete mode 100755 security/nss/lib/libpkix/pkix/store/pkix_store.h
delete mode 100755 security/nss/lib/libpkix/pkix/top/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix/top/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix/top/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix/top/pkix_build.c
delete mode 100755 security/nss/lib/libpkix/pkix/top/pkix_build.h
delete mode 100755 security/nss/lib/libpkix/pkix/top/pkix_lifecycle.c
delete mode 100755 security/nss/lib/libpkix/pkix/top/pkix_lifecycle.h
delete mode 100755 security/nss/lib/libpkix/pkix/top/pkix_validate.c
delete mode 100755 security/nss/lib/libpkix/pkix/top/pkix_validate.h
delete mode 100755 security/nss/lib/libpkix/pkix/util/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix/util/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix/util/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix/util/pkix_error.c
delete mode 100755 security/nss/lib/libpkix/pkix/util/pkix_error.h
delete mode 100644 security/nss/lib/libpkix/pkix/util/pkix_errpaths.c
delete mode 100755 security/nss/lib/libpkix/pkix/util/pkix_list.c
delete mode 100755 security/nss/lib/libpkix/pkix/util/pkix_list.h
delete mode 100644 security/nss/lib/libpkix/pkix/util/pkix_logger.c
delete mode 100644 security/nss/lib/libpkix/pkix/util/pkix_logger.h
delete mode 100755 security/nss/lib/libpkix/pkix/util/pkix_tools.c
delete mode 100755 security/nss/lib/libpkix/pkix/util/pkix_tools.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/module/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/module/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/module/manifest.mn
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_aiamgr.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_colcertstore.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_colcertstore.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpcertstore.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_httpdefaultclient.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapcertstore.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapcertstore.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapdefaultclient.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapdefaultclient.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldaprequest.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldaprequest.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapresponse.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapresponse.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldapt.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_ldaptemplates.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_nsscontext.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_pk11certstore.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_pk11certstore.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_socket.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/module/pkix_pl_socket.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/pki/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/pki/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/pki/manifest.mn
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_basicconstraints.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_basicconstraints.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_certpolicyinfo.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_certpolicyinfo.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_certpolicymap.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_certpolicymap.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_certpolicyqualifier.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_certpolicyqualifier.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_crl.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_crl.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_crldp.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_crldp.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_crlentry.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_crlentry.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_date.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_date.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_generalname.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_generalname.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_infoaccess.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_infoaccess.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_nameconstraints.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_nameconstraints.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspcertid.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspcertid.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocsprequest.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocsprequest.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspresponse.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_ocspresponse.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_publickey.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_publickey.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_x500name.c
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/pki/pkix_pl_x500name.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/Makefile
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/config.mk
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/manifest.mn
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_bigint.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_bigint.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_bytearray.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_bytearray.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_common.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_common.h
delete mode 100644 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_error.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_hashtable.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_hashtable.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_lifecycle.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_lifecycle.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_mem.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_mem.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_monitorlock.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_monitorlock.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_mutex.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_mutex.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_object.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_oid.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_oid.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_primhash.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_primhash.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_rwlock.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_rwlock.h
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_string.c
delete mode 100755 security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_string.h
delete mode 100644 security/nss/lib/manifest.mn
delete mode 100644 security/nss/lib/nss/Makefile
delete mode 100644 security/nss/lib/nss/config.mk
delete mode 100644 security/nss/lib/nss/manifest.mn
delete mode 100644 security/nss/lib/nss/nss.def
delete mode 100644 security/nss/lib/nss/nss.h
delete mode 100644 security/nss/lib/nss/nss.rc
delete mode 100644 security/nss/lib/nss/nssinit.c
delete mode 100644 security/nss/lib/nss/nssrenam.h
delete mode 100644 security/nss/lib/nss/nssver.c
delete mode 100644 security/nss/lib/nss/pkixpriv.def
delete mode 100644 security/nss/lib/nss/utilwrap.c
delete mode 100644 security/nss/lib/pk11wrap/Makefile
delete mode 100644 security/nss/lib/pk11wrap/config.mk
delete mode 100644 security/nss/lib/pk11wrap/debug_module.c
delete mode 100644 security/nss/lib/pk11wrap/dev3hack.c
delete mode 100644 security/nss/lib/pk11wrap/dev3hack.h
delete mode 100644 security/nss/lib/pk11wrap/manifest.mn
delete mode 100644 security/nss/lib/pk11wrap/pk11akey.c
delete mode 100644 security/nss/lib/pk11wrap/pk11auth.c
delete mode 100644 security/nss/lib/pk11wrap/pk11cert.c
delete mode 100644 security/nss/lib/pk11wrap/pk11cxt.c
delete mode 100644 security/nss/lib/pk11wrap/pk11err.c
delete mode 100644 security/nss/lib/pk11wrap/pk11func.h
delete mode 100644 security/nss/lib/pk11wrap/pk11kea.c
delete mode 100644 security/nss/lib/pk11wrap/pk11list.c
delete mode 100644 security/nss/lib/pk11wrap/pk11load.c
delete mode 100644 security/nss/lib/pk11wrap/pk11mech.c
delete mode 100644 security/nss/lib/pk11wrap/pk11merge.c
delete mode 100644 security/nss/lib/pk11wrap/pk11nobj.c
delete mode 100644 security/nss/lib/pk11wrap/pk11obj.c
delete mode 100644 security/nss/lib/pk11wrap/pk11pars.c
delete mode 100644 security/nss/lib/pk11wrap/pk11pbe.c
delete mode 100644 security/nss/lib/pk11wrap/pk11pk12.c
delete mode 100644 security/nss/lib/pk11wrap/pk11pqg.c
delete mode 100644 security/nss/lib/pk11wrap/pk11pqg.h
delete mode 100644 security/nss/lib/pk11wrap/pk11priv.h
delete mode 100644 security/nss/lib/pk11wrap/pk11pub.h
delete mode 100644 security/nss/lib/pk11wrap/pk11sdr.c
delete mode 100644 security/nss/lib/pk11wrap/pk11sdr.h
delete mode 100644 security/nss/lib/pk11wrap/pk11skey.c
delete mode 100644 security/nss/lib/pk11wrap/pk11slot.c
delete mode 100644 security/nss/lib/pk11wrap/pk11util.c
delete mode 100644 security/nss/lib/pk11wrap/secmod.h
delete mode 100644 security/nss/lib/pk11wrap/secmodi.h
delete mode 100644 security/nss/lib/pk11wrap/secmodti.h
delete mode 100644 security/nss/lib/pk11wrap/secpkcs5.h
delete mode 100644 security/nss/lib/pkcs12/Makefile
delete mode 100644 security/nss/lib/pkcs12/config.mk
delete mode 100644 security/nss/lib/pkcs12/manifest.mn
delete mode 100644 security/nss/lib/pkcs12/p12.h
delete mode 100644 security/nss/lib/pkcs12/p12creat.c
delete mode 100644 security/nss/lib/pkcs12/p12d.c
delete mode 100644 security/nss/lib/pkcs12/p12dec.c
delete mode 100644 security/nss/lib/pkcs12/p12e.c
delete mode 100644 security/nss/lib/pkcs12/p12exp.c
delete mode 100644 security/nss/lib/pkcs12/p12local.c
delete mode 100644 security/nss/lib/pkcs12/p12local.h
delete mode 100644 security/nss/lib/pkcs12/p12plcy.c
delete mode 100644 security/nss/lib/pkcs12/p12plcy.h
delete mode 100644 security/nss/lib/pkcs12/p12t.h
delete mode 100644 security/nss/lib/pkcs12/p12tmpl.c
delete mode 100644 security/nss/lib/pkcs12/pkcs12.h
delete mode 100644 security/nss/lib/pkcs12/pkcs12t.h
delete mode 100644 security/nss/lib/pkcs7/Makefile
delete mode 100644 security/nss/lib/pkcs7/certread.c
delete mode 100644 security/nss/lib/pkcs7/config.mk
delete mode 100644 security/nss/lib/pkcs7/manifest.mn
delete mode 100644 security/nss/lib/pkcs7/p7common.c
delete mode 100644 security/nss/lib/pkcs7/p7create.c
delete mode 100644 security/nss/lib/pkcs7/p7decode.c
delete mode 100644 security/nss/lib/pkcs7/p7encode.c
delete mode 100644 security/nss/lib/pkcs7/p7local.c
delete mode 100644 security/nss/lib/pkcs7/p7local.h
delete mode 100644 security/nss/lib/pkcs7/pkcs7t.h
delete mode 100644 security/nss/lib/pkcs7/secmime.c
delete mode 100644 security/nss/lib/pkcs7/secmime.h
delete mode 100644 security/nss/lib/pkcs7/secpkcs7.h
delete mode 100644 security/nss/lib/pki/Makefile
delete mode 100644 security/nss/lib/pki/asymmkey.c
delete mode 100644 security/nss/lib/pki/certdecode.c
delete mode 100644 security/nss/lib/pki/certificate.c
delete mode 100644 security/nss/lib/pki/config.mk
delete mode 100644 security/nss/lib/pki/cryptocontext.c
delete mode 100644 security/nss/lib/pki/doc/standiag.png
delete mode 100644 security/nss/lib/pki/doc/standoc.html
delete mode 100644 security/nss/lib/pki/manifest.mn
delete mode 100644 security/nss/lib/pki/nsspki.h
delete mode 100644 security/nss/lib/pki/nsspkit.h
delete mode 100644 security/nss/lib/pki/pki.h
delete mode 100644 security/nss/lib/pki/pki3hack.c
delete mode 100644 security/nss/lib/pki/pki3hack.h
delete mode 100644 security/nss/lib/pki/pkibase.c
delete mode 100644 security/nss/lib/pki/pkim.h
delete mode 100644 security/nss/lib/pki/pkistore.c
delete mode 100644 security/nss/lib/pki/pkistore.h
delete mode 100644 security/nss/lib/pki/pkit.h
delete mode 100644 security/nss/lib/pki/pkitm.h
delete mode 100644 security/nss/lib/pki/symmkey.c
delete mode 100644 security/nss/lib/pki/tdcache.c
delete mode 100644 security/nss/lib/pki/trustdomain.c
delete mode 100644 security/nss/lib/pki1/Makefile
delete mode 100644 security/nss/lib/pki1/atav.c
delete mode 100644 security/nss/lib/pki1/config.mk
delete mode 100644 security/nss/lib/pki1/genname.c
delete mode 100644 security/nss/lib/pki1/gnseq.c
delete mode 100644 security/nss/lib/pki1/manifest.mn
delete mode 100644 security/nss/lib/pki1/name.c
delete mode 100644 security/nss/lib/pki1/nsspki1.h
delete mode 100644 security/nss/lib/pki1/nsspki1t.h
delete mode 100644 security/nss/lib/pki1/oid.c
delete mode 100644 security/nss/lib/pki1/oiddata.c
delete mode 100644 security/nss/lib/pki1/oiddata.h
delete mode 100755 security/nss/lib/pki1/oidgen.perl
delete mode 100644 security/nss/lib/pki1/oids.txt
delete mode 100644 security/nss/lib/pki1/pki1.h
delete mode 100644 security/nss/lib/pki1/pki1t.h
delete mode 100644 security/nss/lib/pki1/rdn.c
delete mode 100644 security/nss/lib/pki1/rdnseq.c
delete mode 100644 security/nss/lib/smime/Makefile
delete mode 100644 security/nss/lib/smime/cms.h
delete mode 100644 security/nss/lib/smime/cmsarray.c
delete mode 100644 security/nss/lib/smime/cmsasn1.c
delete mode 100644 security/nss/lib/smime/cmsattr.c
delete mode 100644 security/nss/lib/smime/cmscinfo.c
delete mode 100644 security/nss/lib/smime/cmscipher.c
delete mode 100644 security/nss/lib/smime/cmsdecode.c
delete mode 100644 security/nss/lib/smime/cmsdigdata.c
delete mode 100644 security/nss/lib/smime/cmsdigest.c
delete mode 100644 security/nss/lib/smime/cmsencdata.c
delete mode 100644 security/nss/lib/smime/cmsencode.c
delete mode 100644 security/nss/lib/smime/cmsenvdata.c
delete mode 100644 security/nss/lib/smime/cmslocal.h
delete mode 100644 security/nss/lib/smime/cmsmessage.c
delete mode 100644 security/nss/lib/smime/cmspubkey.c
delete mode 100644 security/nss/lib/smime/cmsrecinfo.c
delete mode 100644 security/nss/lib/smime/cmsreclist.c
delete mode 100644 security/nss/lib/smime/cmsreclist.h
delete mode 100644 security/nss/lib/smime/cmssigdata.c
delete mode 100644 security/nss/lib/smime/cmssiginfo.c
delete mode 100644 security/nss/lib/smime/cmst.h
delete mode 100644 security/nss/lib/smime/cmsutil.c
delete mode 100644 security/nss/lib/smime/config.mk
delete mode 100644 security/nss/lib/smime/manifest.mn
delete mode 100644 security/nss/lib/smime/smime.def
delete mode 100644 security/nss/lib/smime/smime.h
delete mode 100644 security/nss/lib/smime/smime.rc
delete mode 100644 security/nss/lib/smime/smimemessage.c
delete mode 100644 security/nss/lib/smime/smimesym.c
delete mode 100644 security/nss/lib/smime/smimeutil.c
delete mode 100644 security/nss/lib/smime/smimever.c
delete mode 100644 security/nss/lib/softoken/Makefile
delete mode 100644 security/nss/lib/softoken/config.mk
delete mode 100644 security/nss/lib/softoken/ecdecode.c
delete mode 100644 security/nss/lib/softoken/fipsaudt.c
delete mode 100644 security/nss/lib/softoken/fipstest.c
delete mode 100644 security/nss/lib/softoken/fipstokn.c
delete mode 100644 security/nss/lib/softoken/legacydb/Makefile
delete mode 100644 security/nss/lib/softoken/legacydb/cdbhdl.h
delete mode 100644 security/nss/lib/softoken/legacydb/config.mk
delete mode 100644 security/nss/lib/softoken/legacydb/dbmshim.c
delete mode 100644 security/nss/lib/softoken/legacydb/keydb.c
delete mode 100644 security/nss/lib/softoken/legacydb/keydbi.h
delete mode 100644 security/nss/lib/softoken/legacydb/lgattr.c
delete mode 100644 security/nss/lib/softoken/legacydb/lgcreate.c
delete mode 100644 security/nss/lib/softoken/legacydb/lgdb.h
delete mode 100644 security/nss/lib/softoken/legacydb/lgdestroy.c
delete mode 100644 security/nss/lib/softoken/legacydb/lgfind.c
delete mode 100644 security/nss/lib/softoken/legacydb/lginit.c
delete mode 100644 security/nss/lib/softoken/legacydb/lgutil.c
delete mode 100644 security/nss/lib/softoken/legacydb/lowcert.c
delete mode 100644 security/nss/lib/softoken/legacydb/lowkey.c
delete mode 100644 security/nss/lib/softoken/legacydb/lowkeyi.h
delete mode 100644 security/nss/lib/softoken/legacydb/lowkeyti.h
delete mode 100644 security/nss/lib/softoken/legacydb/manifest.mn
delete mode 100644 security/nss/lib/softoken/legacydb/nssdbm.def
delete mode 100644 security/nss/lib/softoken/legacydb/nssdbm.rc
delete mode 100644 security/nss/lib/softoken/legacydb/pcert.h
delete mode 100644 security/nss/lib/softoken/legacydb/pcertdb.c
delete mode 100644 security/nss/lib/softoken/legacydb/pcertt.h
delete mode 100644 security/nss/lib/softoken/legacydb/pk11db.c
delete mode 100644 security/nss/lib/softoken/lgglue.c
delete mode 100644 security/nss/lib/softoken/lgglue.h
delete mode 100644 security/nss/lib/softoken/lowkey.c
delete mode 100644 security/nss/lib/softoken/lowkeyi.h
delete mode 100644 security/nss/lib/softoken/lowkeyti.h
delete mode 100644 security/nss/lib/softoken/lowpbe.c
delete mode 100644 security/nss/lib/softoken/lowpbe.h
delete mode 100644 security/nss/lib/softoken/manifest.mn
delete mode 100644 security/nss/lib/softoken/padbuf.c
delete mode 100644 security/nss/lib/softoken/pk11init.h
delete mode 100644 security/nss/lib/softoken/pk11pars.h
delete mode 100644 security/nss/lib/softoken/pkcs11.c
delete mode 100644 security/nss/lib/softoken/pkcs11c.c
delete mode 100644 security/nss/lib/softoken/pkcs11i.h
delete mode 100644 security/nss/lib/softoken/pkcs11ni.h
delete mode 100644 security/nss/lib/softoken/pkcs11u.c
delete mode 100644 security/nss/lib/softoken/rsawrapr.c
delete mode 100644 security/nss/lib/softoken/sdb.c
delete mode 100644 security/nss/lib/softoken/sdb.h
delete mode 100644 security/nss/lib/softoken/secmodt.h
delete mode 100644 security/nss/lib/softoken/sftkdb.c
delete mode 100644 security/nss/lib/softoken/sftkdb.h
delete mode 100644 security/nss/lib/softoken/sftkdbt.h
delete mode 100644 security/nss/lib/softoken/sftkdbti.h
delete mode 100644 security/nss/lib/softoken/sftkmod.c
delete mode 100644 security/nss/lib/softoken/sftkpars.c
delete mode 100644 security/nss/lib/softoken/sftkpars.h
delete mode 100644 security/nss/lib/softoken/sftkpwd.c
delete mode 100644 security/nss/lib/softoken/softkver.c
delete mode 100644 security/nss/lib/softoken/softkver.h
delete mode 100644 security/nss/lib/softoken/softoken.h
delete mode 100644 security/nss/lib/softoken/softokn.def
delete mode 100644 security/nss/lib/softoken/softokn.rc
delete mode 100644 security/nss/lib/softoken/softoknt.h
delete mode 100644 security/nss/lib/softoken/tlsprf.c
delete mode 100644 security/nss/lib/sqlite/Makefile
delete mode 100644 security/nss/lib/sqlite/config.mk
delete mode 100644 security/nss/lib/sqlite/manifest.mn
delete mode 100644 security/nss/lib/sqlite/sqlite.def
delete mode 100644 security/nss/lib/sqlite/sqlite3.c
delete mode 100644 security/nss/lib/sqlite/sqlite3.h
delete mode 100644 security/nss/lib/ssl/Makefile
delete mode 100644 security/nss/lib/ssl/authcert.c
delete mode 100644 security/nss/lib/ssl/cmpcert.c
delete mode 100644 security/nss/lib/ssl/config.mk
delete mode 100644 security/nss/lib/ssl/derive.c
delete mode 100644 security/nss/lib/ssl/manifest.mn
delete mode 100644 security/nss/lib/ssl/notes.txt
delete mode 100644 security/nss/lib/ssl/nsskea.c
delete mode 100644 security/nss/lib/ssl/os2_err.c
delete mode 100644 security/nss/lib/ssl/os2_err.h
delete mode 100644 security/nss/lib/ssl/preenc.h
delete mode 100644 security/nss/lib/ssl/prelib.c
delete mode 100644 security/nss/lib/ssl/ssl.def
delete mode 100644 security/nss/lib/ssl/ssl.h
delete mode 100644 security/nss/lib/ssl/ssl.rc
delete mode 100644 security/nss/lib/ssl/ssl3con.c
delete mode 100644 security/nss/lib/ssl/ssl3ecc.c
delete mode 100644 security/nss/lib/ssl/ssl3ext.c
delete mode 100644 security/nss/lib/ssl/ssl3gthr.c
delete mode 100644 security/nss/lib/ssl/ssl3prot.h
delete mode 100644 security/nss/lib/ssl/sslauth.c
delete mode 100644 security/nss/lib/ssl/sslcon.c
delete mode 100644 security/nss/lib/ssl/ssldef.c
delete mode 100644 security/nss/lib/ssl/sslenum.c
delete mode 100644 security/nss/lib/ssl/sslerr.c
delete mode 100644 security/nss/lib/ssl/sslerr.h
delete mode 100644 security/nss/lib/ssl/sslgathr.c
delete mode 100644 security/nss/lib/ssl/sslimpl.h
delete mode 100644 security/nss/lib/ssl/sslinfo.c
delete mode 100644 security/nss/lib/ssl/sslmutex.c
delete mode 100644 security/nss/lib/ssl/sslmutex.h
delete mode 100644 security/nss/lib/ssl/sslnonce.c
delete mode 100644 security/nss/lib/ssl/sslproto.h
delete mode 100644 security/nss/lib/ssl/sslreveal.c
delete mode 100644 security/nss/lib/ssl/sslsecur.c
delete mode 100644 security/nss/lib/ssl/sslsnce.c
delete mode 100644 security/nss/lib/ssl/sslsock.c
delete mode 100644 security/nss/lib/ssl/sslt.h
delete mode 100644 security/nss/lib/ssl/ssltrace.c
delete mode 100644 security/nss/lib/ssl/sslver.c
delete mode 100644 security/nss/lib/ssl/unix_err.c
delete mode 100644 security/nss/lib/ssl/unix_err.h
delete mode 100644 security/nss/lib/ssl/win32err.c
delete mode 100644 security/nss/lib/ssl/win32err.h
delete mode 100644 security/nss/lib/util/Makefile
delete mode 100644 security/nss/lib/util/base64.h
delete mode 100644 security/nss/lib/util/ciferfam.h
delete mode 100644 security/nss/lib/util/config.mk
delete mode 100644 security/nss/lib/util/derdec.c
delete mode 100644 security/nss/lib/util/derenc.c
delete mode 100644 security/nss/lib/util/dersubr.c
delete mode 100644 security/nss/lib/util/dertime.c
delete mode 100644 security/nss/lib/util/manifest.mn
delete mode 100644 security/nss/lib/util/nssb64.h
delete mode 100644 security/nss/lib/util/nssb64d.c
delete mode 100644 security/nss/lib/util/nssb64e.c
delete mode 100644 security/nss/lib/util/nssb64t.h
delete mode 100644 security/nss/lib/util/nssilckt.h
delete mode 100644 security/nss/lib/util/nssilock.c
delete mode 100644 security/nss/lib/util/nssilock.h
delete mode 100644 security/nss/lib/util/nsslocks.h
delete mode 100644 security/nss/lib/util/nssrwlk.c
delete mode 100644 security/nss/lib/util/nssrwlk.h
delete mode 100644 security/nss/lib/util/nssrwlkt.h
delete mode 100644 security/nss/lib/util/nssutil.def
delete mode 100644 security/nss/lib/util/nssutil.h
delete mode 100644 security/nss/lib/util/nssutil.rc
delete mode 100644 security/nss/lib/util/oidstring.c
delete mode 100644 security/nss/lib/util/pkcs11.h
delete mode 100644 security/nss/lib/util/pkcs11f.h
delete mode 100644 security/nss/lib/util/pkcs11n.h
delete mode 100644 security/nss/lib/util/pkcs11p.h
delete mode 100644 security/nss/lib/util/pkcs11t.h
delete mode 100644 security/nss/lib/util/pkcs11u.h
delete mode 100644 security/nss/lib/util/portreg.c
delete mode 100644 security/nss/lib/util/portreg.h
delete mode 100644 security/nss/lib/util/quickder.c
delete mode 100644 security/nss/lib/util/secalgid.c
delete mode 100644 security/nss/lib/util/secasn1.h
delete mode 100644 security/nss/lib/util/secasn1d.c
delete mode 100644 security/nss/lib/util/secasn1e.c
delete mode 100644 security/nss/lib/util/secasn1t.h
delete mode 100644 security/nss/lib/util/secasn1u.c
delete mode 100644 security/nss/lib/util/seccomon.h
delete mode 100644 security/nss/lib/util/secder.h
delete mode 100644 security/nss/lib/util/secdert.h
delete mode 100644 security/nss/lib/util/secdig.c
delete mode 100644 security/nss/lib/util/secdig.h
delete mode 100644 security/nss/lib/util/secdigt.h
delete mode 100644 security/nss/lib/util/secerr.h
delete mode 100644 security/nss/lib/util/secinit.c
delete mode 100644 security/nss/lib/util/secitem.c
delete mode 100644 security/nss/lib/util/secitem.h
delete mode 100644 security/nss/lib/util/secoid.c
delete mode 100644 security/nss/lib/util/secoid.h
delete mode 100644 security/nss/lib/util/secoidt.h
delete mode 100644 security/nss/lib/util/secplcy.c
delete mode 100644 security/nss/lib/util/secplcy.h
delete mode 100644 security/nss/lib/util/secport.c
delete mode 100644 security/nss/lib/util/secport.h
delete mode 100644 security/nss/lib/util/sectime.c
delete mode 100644 security/nss/lib/util/templates.c
delete mode 100644 security/nss/lib/util/utf8.c
delete mode 100644 security/nss/lib/util/utilrename.h
delete mode 100644 security/nss/manifest.mn
delete mode 100644 security/nss/pkg/Makefile
delete mode 100644 security/nss/pkg/linux/Makefile
delete mode 100644 security/nss/pkg/linux/sun-nss.spec
delete mode 100644 security/nss/pkg/solaris/Makefile
delete mode 100755 security/nss/pkg/solaris/Makefile-devl.com
delete mode 100755 security/nss/pkg/solaris/Makefile-devl.targ
delete mode 100755 security/nss/pkg/solaris/Makefile-tlsu.com
delete mode 100755 security/nss/pkg/solaris/Makefile-tlsu.targ
delete mode 100644 security/nss/pkg/solaris/Makefile.com
delete mode 100644 security/nss/pkg/solaris/Makefile.targ
delete mode 100644 security/nss/pkg/solaris/SUNWtls/Makefile
delete mode 100644 security/nss/pkg/solaris/SUNWtls/pkgdepend
delete mode 100644 security/nss/pkg/solaris/SUNWtls/pkginfo.tmpl
delete mode 100644 security/nss/pkg/solaris/SUNWtls/prototype_com
delete mode 100644 security/nss/pkg/solaris/SUNWtls/prototype_i386
delete mode 100644 security/nss/pkg/solaris/SUNWtls/prototype_sparc
delete mode 100755 security/nss/pkg/solaris/SUNWtlsd/Makefile
delete mode 100755 security/nss/pkg/solaris/SUNWtlsd/pkgdepend
delete mode 100755 security/nss/pkg/solaris/SUNWtlsd/pkginfo.tmpl
delete mode 100755 security/nss/pkg/solaris/SUNWtlsd/prototype
delete mode 100755 security/nss/pkg/solaris/SUNWtlsu/Makefile
delete mode 100755 security/nss/pkg/solaris/SUNWtlsu/pkgdepend
delete mode 100755 security/nss/pkg/solaris/SUNWtlsu/pkginfo.tmpl
delete mode 100755 security/nss/pkg/solaris/SUNWtlsu/prototype_com
delete mode 100644 security/nss/pkg/solaris/SUNWtlsu/prototype_i386
delete mode 100644 security/nss/pkg/solaris/SUNWtlsu/prototype_sparc
delete mode 100644 security/nss/pkg/solaris/bld_awk_pkginfo.ksh
delete mode 100644 security/nss/pkg/solaris/common_files/copyright
delete mode 100644 security/nss/pkg/solaris/proto64.mk
delete mode 100644 security/nss/tests/README.txt
delete mode 100755 security/nss/tests/all.sh
delete mode 100755 security/nss/tests/cert/cert.sh
delete mode 100644 security/nss/tests/cert/certext.txt
delete mode 100644 security/nss/tests/chains/chains.sh
delete mode 100755 security/nss/tests/chains/ocspd-config/ocspd-certs.sh
delete mode 100644 security/nss/tests/chains/ocspd-config/ocspd.conf.template
delete mode 100644 security/nss/tests/chains/ocspd-config/readme
delete mode 100644 security/nss/tests/chains/scenarios/aia.cfg
delete mode 100644 security/nss/tests/chains/scenarios/anypolicy.cfg
delete mode 100644 security/nss/tests/chains/scenarios/anypolicywithlevel.cfg
delete mode 100644 security/nss/tests/chains/scenarios/bridge.cfg
delete mode 100644 security/nss/tests/chains/scenarios/bridgewithaia.cfg
delete mode 100644 security/nss/tests/chains/scenarios/bridgewithhalfaia.cfg
delete mode 100644 security/nss/tests/chains/scenarios/bridgewithpolicyextensionandmapping.cfg
delete mode 100644 security/nss/tests/chains/scenarios/crldp.cfg
delete mode 100644 security/nss/tests/chains/scenarios/dsa.cfg
delete mode 100644 security/nss/tests/chains/scenarios/explicitPolicy.cfg
delete mode 100644 security/nss/tests/chains/scenarios/extension.cfg
delete mode 100644 security/nss/tests/chains/scenarios/extension2.cfg
delete mode 100644 security/nss/tests/chains/scenarios/mapping.cfg
delete mode 100644 security/nss/tests/chains/scenarios/mapping2.cfg
delete mode 100644 security/nss/tests/chains/scenarios/megabridge_3_2.cfg
delete mode 100644 security/nss/tests/chains/scenarios/ocsp.cfg
delete mode 100644 security/nss/tests/chains/scenarios/ocspd.cfg
delete mode 100644 security/nss/tests/chains/scenarios/realcerts.cfg
delete mode 100644 security/nss/tests/chains/scenarios/revoc.cfg
delete mode 100644 security/nss/tests/chains/scenarios/scenarios
delete mode 100755 security/nss/tests/cipher/cipher.sh
delete mode 100644 security/nss/tests/cipher/cipher.txt
delete mode 100644 security/nss/tests/cipher/dsa.txt
delete mode 100644 security/nss/tests/cipher/hash.txt
delete mode 100755 security/nss/tests/cipher/performance.sh
delete mode 100644 security/nss/tests/cipher/rsa.txt
delete mode 100644 security/nss/tests/cipher/symmkey.txt
delete mode 100755 security/nss/tests/clean_tbx
delete mode 100644 security/nss/tests/cmdtests/cmdtests.sh
delete mode 100644 security/nss/tests/common/Makefile
delete mode 100755 security/nss/tests/common/cleanup.sh
delete mode 100644 security/nss/tests/common/init.sh
delete mode 100644 security/nss/tests/common/results_header.html
delete mode 100755 security/nss/tests/core_watch
delete mode 100644 security/nss/tests/crmf/crmf.sh
delete mode 100755 security/nss/tests/dbtests/dbtests.sh
delete mode 100755 security/nss/tests/dbupgrade/dbupgrade.sh
delete mode 100755 security/nss/tests/dll_version.sh
delete mode 100644 security/nss/tests/doc/clean.gif
delete mode 100755 security/nss/tests/doc/nssqa.txt
delete mode 100644 security/nss/tests/doc/platform_specific_problems
delete mode 100755 security/nss/tests/doc/qa_wrapper.html
delete mode 100755 security/nss/tests/fips/fips.sh
delete mode 100644 security/nss/tests/header
delete mode 100644 security/nss/tests/iopr/cert_iopr.sh
delete mode 100644 security/nss/tests/iopr/ocsp_iopr.sh
delete mode 100644 security/nss/tests/iopr/server_scr/apache_unix.cfg
delete mode 100644 security/nss/tests/iopr/server_scr/cert_gen.sh
delete mode 100644 security/nss/tests/iopr/server_scr/cipher.list
delete mode 100644 security/nss/tests/iopr/server_scr/client.cgi
delete mode 100644 security/nss/tests/iopr/server_scr/config
delete mode 100644 security/nss/tests/iopr/server_scr/iis_windows.cfg
delete mode 100644 security/nss/tests/iopr/server_scr/iopr_server.cfg
delete mode 100644 security/nss/tests/iopr/server_scr/sslreq.dat
delete mode 100644 security/nss/tests/iopr/ssl_iopr.sh
delete mode 100755 security/nss/tests/jss_dll_version.sh
delete mode 100755 security/nss/tests/jssdir
delete mode 100755 security/nss/tests/jssqa
delete mode 100644 security/nss/tests/libpkix/cert_trust.map
delete mode 100644 security/nss/tests/libpkix/certs/BrAirWaysBadSig.cert
delete mode 100755 security/nss/tests/libpkix/certs/CertificatePoliciesCritical.crt
delete mode 100644 security/nss/tests/libpkix/certs/GoodCACert.crt
delete mode 100644 security/nss/tests/libpkix/certs/OCSPCA1.cert
delete mode 100644 security/nss/tests/libpkix/certs/OCSPCA1.p12
delete mode 100644 security/nss/tests/libpkix/certs/OCSPCA2.cert
delete mode 100644 security/nss/tests/libpkix/certs/OCSPCA3.cert
delete mode 100644 security/nss/tests/libpkix/certs/OCSPEE11.cert
delete mode 100644 security/nss/tests/libpkix/certs/OCSPEE12.cert
delete mode 100644 security/nss/tests/libpkix/certs/OCSPEE13.cert
delete mode 100644 security/nss/tests/libpkix/certs/OCSPEE14.cert
delete mode 100644 security/nss/tests/libpkix/certs/OCSPEE15.cert
delete mode 100644 security/nss/tests/libpkix/certs/OCSPEE21.cert
delete mode 100644 security/nss/tests/libpkix/certs/OCSPEE31.cert
delete mode 100644 security/nss/tests/libpkix/certs/OCSPRoot.cert
delete mode 100644 security/nss/tests/libpkix/certs/PayPalEE.cert
delete mode 100644 security/nss/tests/libpkix/certs/PayPalICA.cert
delete mode 100644 security/nss/tests/libpkix/certs/PayPalRootCA.cert
delete mode 100644 security/nss/tests/libpkix/certs/TestCA.ca.cert
delete mode 100644 security/nss/tests/libpkix/certs/TestUser50.cert
delete mode 100644 security/nss/tests/libpkix/certs/TestUser51.cert
delete mode 100644 security/nss/tests/libpkix/certs/TrustAnchorRootCertificate.crt
delete mode 100644 security/nss/tests/libpkix/certs/ValidCertificatePathTest1EE.crt
delete mode 100755 security/nss/tests/libpkix/certs/anchor2dsa
delete mode 100755 security/nss/tests/libpkix/certs/crldiff.crl
delete mode 100755 security/nss/tests/libpkix/certs/crlgood.crl
delete mode 100755 security/nss/tests/libpkix/certs/extKeyUsage/codeSigningEKUCert
delete mode 100755 security/nss/tests/libpkix/certs/extKeyUsage/multiEKUCert
delete mode 100755 security/nss/tests/libpkix/certs/extKeyUsage/noEKUCert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameDnCert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameDnCert_diff
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameDnsCert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameDnsCert_diff
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameEdiCert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameEdiCert_diff
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameIpCert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameIpCert_diff
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameNoneCert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameOidCert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameOidCert_diff
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameOtherCert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameOtherCert_diff
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameRfc822Cert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameRfc822Cert_diff
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameRfc822DnsCert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameUriCert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameUriCert_diff
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameX400Cert
delete mode 100755 security/nss/tests/libpkix/certs/generalName/altNameX400Cert_diff
delete mode 100755 security/nss/tests/libpkix/certs/hanfeiyu2hanfeiyu
delete mode 100755 security/nss/tests/libpkix/certs/hy2hc-bc
delete mode 100755 security/nss/tests/libpkix/certs/hy2hy-bc0
delete mode 100755 security/nss/tests/libpkix/certs/issuer-hanfei.crl
delete mode 100755 security/nss/tests/libpkix/certs/issuer-none.crl
delete mode 100755 security/nss/tests/libpkix/certs/keyIdentifier/authKeyIDCert
delete mode 100755 security/nss/tests/libpkix/certs/keyIdentifier/subjKeyIDCert
delete mode 100755 security/nss/tests/libpkix/certs/keyUsage/decipherOnlyCert
delete mode 100755 security/nss/tests/libpkix/certs/keyUsage/encipherOnlyCert
delete mode 100755 security/nss/tests/libpkix/certs/keyUsage/multiKeyUsagesCert
delete mode 100755 security/nss/tests/libpkix/certs/keyUsage/noKeyUsagesCert
delete mode 100755 security/nss/tests/libpkix/certs/noExtensionsCert
delete mode 100755 security/nss/tests/libpkix/certs/nss2alice
delete mode 100755 security/nss/tests/libpkix/certs/publicKey/dsaWithParams
delete mode 100755 security/nss/tests/libpkix/certs/publicKey/dsaWithoutParams
delete mode 100755 security/nss/tests/libpkix/certs/publicKey/labs2yassir
delete mode 100755 security/nss/tests/libpkix/certs/publicKey/yassir2labs
delete mode 100755 security/nss/tests/libpkix/certs/sun2sun
delete mode 100755 security/nss/tests/libpkix/certs/yassir2bcn
delete mode 100755 security/nss/tests/libpkix/certs/yassir2yassir
delete mode 100644 security/nss/tests/libpkix/common/libpkix_init.sh
delete mode 100644 security/nss/tests/libpkix/common/libpkix_init_nist.sh
delete mode 100755 security/nss/tests/libpkix/libpkix.sh
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/cert8.db
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/key3.db
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/crldiff.crl
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/crlgood.crl
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/issuer-hanfei.crl
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/local/issuer-none.crl
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_all.crt
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_allbutcodesigningEE.crt
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_clientauth.crt
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_clientauthEE.crt
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/rev_data/test_eku_codesigning_clientauth.crt
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/runPLTests.sh
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/module/secmod.db
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/README
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/crldiff.crl
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/crlgood.crl
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/issuer-hanfei.crl
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/pki/rev_data/local/issuer-none.crl
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/pki/runPLTests.sh
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/runPLTests.sh
delete mode 100755 security/nss/tests/libpkix/pkix_pl_tests/system/runPLTests.sh
delete mode 100755 security/nss/tests/libpkix/pkix_tests/certsel/keyUsage
delete mode 100755 security/nss/tests/libpkix/pkix_tests/certsel/runTests.sh
delete mode 100755 security/nss/tests/libpkix/pkix_tests/checker/runTests.sh
delete mode 100755 security/nss/tests/libpkix/pkix_tests/crlsel/runTests.sh
delete mode 100755 security/nss/tests/libpkix/pkix_tests/params/runTests.sh
delete mode 100755 security/nss/tests/libpkix/pkix_tests/results/runTests.sh
delete mode 100755 security/nss/tests/libpkix/pkix_tests/runTests.sh
delete mode 100755 security/nss/tests/libpkix/pkix_tests/store/runTests.sh
delete mode 100644 security/nss/tests/libpkix/pkix_tests/top/anchorcert.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/greg.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/greg2yassir_badsig.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes2greg.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes2jes.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/jes2labs.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/labs.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/labs2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/yassir.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/backtracking/signature/yassir2hanfei.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/greg.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/greg2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes2greg.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes2jes.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/jes2labs.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/labs.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/labs2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/yassir.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/fail/yassir2hanfei.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/pass/greg.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/pass/greg2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/pass/jes.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/pass/jes2greg.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/pass/jes2jes.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/pass/jes2labs.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/pass/labs.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/pass/labs2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/pass/yassir.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/multi_path/signature/pass/yassir2hanfei.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/fail/greg.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/fail/greg2yassir_badsig.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/fail/jes.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/fail/jes2greg.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/fail/jes2jes.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/fail/yassir.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/fail/yassir2hanfei.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/pass/greg.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/pass/greg2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/pass/jes.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/pass/jes2greg.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/pass/jes2jes.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/pass/yassir.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/single_path/signature/pass/yassir2hanfei.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test1/greg2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test1/jes2greg.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test1/jes2jes.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test1/jes2labs.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test1/labs2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test1/yassir2hanfei.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test1/yassir2richard.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test2/jes2greg.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test2/jes2jes.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test2/jes2labs.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test2/labs2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test2/nelson2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test2/yassir2hanfei.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test2/yassir2richard.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test3/jes2greg.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test3/jes2jes.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test3/jes2labs.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test3/labs2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test3/nelson2yassir.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/build_data/test3/yassir2hanfei.crt
delete mode 100644 security/nss/tests/libpkix/pkix_tests/top/cert8.db
delete mode 100644 security/nss/tests/libpkix/pkix_tests/top/goodcert.crt
delete mode 100644 security/nss/tests/libpkix/pkix_tests/top/key3.db
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/chem.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/chem2prof.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/phy2prof.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/phys.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/prof.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/prof2test.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/sci.crl
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/sci2chem.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/sci2phy.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/sci2sci.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/rev_data/crlchecker/test.crl
delete mode 100644 security/nss/tests/libpkix/pkix_tests/top/revokedcert.crt
delete mode 100755 security/nss/tests/libpkix/pkix_tests/top/runTests.sh
delete mode 100644 security/nss/tests/libpkix/pkix_tests/top/secmod.db
delete mode 100755 security/nss/tests/libpkix/pkix_tests/util/runTests.sh
delete mode 100755 security/nss/tests/libpkix/runTests.sh
delete mode 100755 security/nss/tests/libpkix/sample_apps/README
delete mode 100755 security/nss/tests/libpkix/sample_apps/cert8.db
delete mode 100755 security/nss/tests/libpkix/sample_apps/key3.db
delete mode 100755 security/nss/tests/libpkix/sample_apps/runPerf.sh
delete mode 100755 security/nss/tests/libpkix/sample_apps/secmod.db
delete mode 100644 security/nss/tests/libpkix/vfychain_test.lst
delete mode 100644 security/nss/tests/memleak/ignored
delete mode 100644 security/nss/tests/memleak/memleak.sh
delete mode 100644 security/nss/tests/memleak/sslreq.dat
delete mode 100755 security/nss/tests/merge/merge.sh
delete mode 100755 security/nss/tests/mksymlinks
delete mode 100755 security/nss/tests/nssdir
delete mode 100755 security/nss/tests/nsspath
delete mode 100755 security/nss/tests/nssqa
delete mode 100644 security/nss/tests/ocsp/ocsp.sh
delete mode 100755 security/nss/tests/path_uniq
delete mode 100755 security/nss/tests/perf/perf.sh
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/Makefile
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/config.mk
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/manifest.mn
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/Makefile
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/config.mk
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/manifest.mn
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/pkcs11/Makefile
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/pkcs11/config.mk
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/pkcs11/manifest.mn
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pk11test.c
delete mode 100755 security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pk11test.h
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pk11test.htp
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pkcs11.h
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pkcs11.reg
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/pkcs11/pkcs11.rep
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/pkcs11/rules.mk
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/Makefile
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/README
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/cert7.db
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/config.mk
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/key3.db
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/manifest.mn
delete mode 100755 security/nss/tests/pkcs11/netscape/suites/security/ssl/ssl.reg
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/sslc.c
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/sslc.h
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/ssls.c
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/ssls.h
delete mode 100755 security/nss/tests/pkcs11/netscape/suites/security/ssl/sslt.c
delete mode 100755 security/nss/tests/pkcs11/netscape/suites/security/ssl/sslt.h
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/sslt.htp
delete mode 100644 security/nss/tests/pkcs11/netscape/suites/security/ssl/sslt.rep
delete mode 100644 security/nss/tests/pkcs11/netscape/trivial/.cvsignore
delete mode 100644 security/nss/tests/pkcs11/netscape/trivial/Makefile.in
delete mode 100644 security/nss/tests/pkcs11/netscape/trivial/README.txt
delete mode 100644 security/nss/tests/pkcs11/netscape/trivial/acconfig.h
delete mode 100644 security/nss/tests/pkcs11/netscape/trivial/config.h.in
delete mode 100755 security/nss/tests/pkcs11/netscape/trivial/configure
delete mode 100644 security/nss/tests/pkcs11/netscape/trivial/configure.in
delete mode 100755 security/nss/tests/pkcs11/netscape/trivial/install-sh
delete mode 100644 security/nss/tests/pkcs11/netscape/trivial/trivial.c
delete mode 100755 security/nss/tests/pkits/pkits.sh
delete mode 100644 security/nss/tests/platformlist
delete mode 100644 security/nss/tests/platformlist.tbx
delete mode 100755 security/nss/tests/qa_stage
delete mode 100755 security/nss/tests/qa_stat
delete mode 100755 security/nss/tests/qaclean
delete mode 100755 security/nss/tests/run_niscc.sh
delete mode 100755 security/nss/tests/sdr/sdr.sh
delete mode 100644 security/nss/tests/set_environment
delete mode 100644 security/nss/tests/smime/alice.txt
delete mode 100644 security/nss/tests/smime/bob.txt
delete mode 100755 security/nss/tests/smime/smime.sh
delete mode 100755 security/nss/tests/ssl/ssl.sh
delete mode 100755 security/nss/tests/ssl/ssl_dist_stress.sh
delete mode 100644 security/nss/tests/ssl/sslauth.txt
delete mode 100644 security/nss/tests/ssl/sslcov.txt
delete mode 100644 security/nss/tests/ssl/sslreq.dat
delete mode 100644 security/nss/tests/ssl/sslreq.txt
delete mode 100644 security/nss/tests/ssl/sslstress.txt
delete mode 100644 security/nss/tests/tools/sign.html
delete mode 100644 security/nss/tests/tools/signjs.html
delete mode 100644 security/nss/tests/tools/tools.sh
delete mode 100755 security/nss/trademarks.txt
diff --git a/dbm/.cvsignore b/dbm/.cvsignore
deleted file mode 100644
index f3c7a7c5da..0000000000
--- a/dbm/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-Makefile
diff --git a/dbm/Makefile.in b/dbm/Makefile.in
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/dbm/include/.cvsignore b/dbm/include/.cvsignore
deleted file mode 100644
index f3c7a7c5da..0000000000
--- a/dbm/include/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-Makefile
diff --git a/dbm/include/Makefile.in b/dbm/include/Makefile.in
deleted file mode 100644
index 343a08807c..0000000000
--- a/dbm/include/Makefile.in
+++ /dev/null
@@ -1,71 +0,0 @@
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1998
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-DEPTH = ../..
-topsrcdir = @top_srcdir@
-srcdir = @srcdir@
-VPATH = @srcdir@
-
-include $(DEPTH)/config/autoconf.mk
-
-MODULE = dbm
-
-EXPORTS = \
- nsres.h \
- cdefs.h \
- mcom_db.h \
- ncompat.h \
- winfile.h \
- $(NULL)
-
-EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
-
-PRIVATE_EXPORTS = \
- hsearch.h \
- page.h \
- extern.h \
- ndbm.h \
- queue.h \
- hash.h \
- mpool.h \
- search.h \
- $(NULL)
-
-PRIVATE_EXPORTS := $(addprefix $(srcdir)/, $(PRIVATE_EXPORTS))
-
-include $(topsrcdir)/config/rules.mk
-
diff --git a/dbm/include/Makefile.win b/dbm/include/Makefile.win
deleted file mode 100644
index df31e52737..0000000000
--- a/dbm/include/Makefile.win
+++ /dev/null
@@ -1,77 +0,0 @@
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1998
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-
-#//------------------------------------------------------------------------
-#//
-#// Makefile to build the cert library
-#//
-#//------------------------------------------------------------------------
-
-!if "$(MOZ_BITS)" == "16"
-!ifndef MOZ_DEBUG
-OPTIMIZER=-Os -UDEBUG -DNDEBUG
-!endif
-!endif
-
-#//------------------------------------------------------------------------
-#//
-#// Specify the depth of the current directory relative to the
-#// root of NS
-#//
-#//------------------------------------------------------------------------
-DEPTH= ..\..
-
-!ifndef MAKE_OBJ_TYPE
-MAKE_OBJ_TYPE=EXE
-!endif
-
-#//------------------------------------------------------------------------
-#//
-#// install headers
-#//
-#//------------------------------------------------------------------------
-EXPORTS=nsres.h cdefs.h mcom_db.h ncompat.h winfile.h
-
-#//------------------------------------------------------------------------
-#//
-#// Include the common makefile rules
-#//
-#//------------------------------------------------------------------------
-include <$(DEPTH)/config/rules.mak>
-
-CFLAGS = $(CFLAGS) -DMOZILLA_CLIENT
-
diff --git a/dbm/include/cdefs.h b/dbm/include/cdefs.h
deleted file mode 100644
index 6df5a80e37..0000000000
--- a/dbm/include/cdefs.h
+++ /dev/null
@@ -1,126 +0,0 @@
-/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/*
- * Copyright (c) 1991, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Berkeley Software Design, Inc.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)cdefs.h 8.7 (Berkeley) 1/21/94
- */
-
-#ifndef _CDEFS_H_
-#define _CDEFS_H_
-
-#if defined(__cplusplus)
-#define __BEGIN_DECLS extern "C" {
-#define __END_DECLS }
-#else
-#define __BEGIN_DECLS
-#define __END_DECLS
-#endif
-
-/*
- * The __CONCAT macro is used to concatenate parts of symbol names, e.g.
- * with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
- * The __CONCAT macro is a bit tricky -- make sure you don't put spaces
- * in between its arguments. __CONCAT can also concatenate double-quoted
- * strings produced by the __STRING macro, but this only works with ANSI C.
- */
-#if defined(__STDC__) || defined(__cplusplus) || defined(_WINDOWS) || defined(XP_OS2)
-#define __P(protos) protos /* full-blown ANSI C */
-#define __CONCAT(x,y) x ## y
-#define __STRING(x) #x
-
-/* On HP-UX 11.00, defines __const. */
-#ifndef __const
-#define __const const /* define reserved names to standard */
-#endif /* __const */
-#define __signed signed
-#define __volatile volatile
-#ifndef _WINDOWS
-#if defined(__cplusplus)
-#define __inline inline /* convert to C++ keyword */
-#else
-#if !defined(__GNUC__) && !defined(__MWERKS__)
-#define __inline /* delete GCC keyword */
-#endif /* !__GNUC__ */
-#endif /* !__cplusplus */
-#endif /* !_WINDOWS */
-
-#else /* !(__STDC__ || __cplusplus) */
-#define __P(protos) () /* traditional C preprocessor */
-#define __CONCAT(x,y) x/**/y
-#define __STRING(x) "x"
-
-#ifndef __GNUC__
-#define __const /* delete pseudo-ANSI C keywords */
-#define __inline
-#define __signed
-#define __volatile
-/*
- * In non-ANSI C environments, new programs will want ANSI-only C keywords
- * deleted from the program and old programs will want them left alone.
- * When using a compiler other than gcc, programs using the ANSI C keywords
- * const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
- * When using "gcc -traditional", we assume that this is the intent; if
- * __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
- */
-#ifndef NO_ANSI_KEYWORDS
-#define const /* delete ANSI C keywords */
-#define inline
-#define signed
-#define volatile
-#endif
-#endif /* !__GNUC__ */
-#endif /* !(__STDC__ || __cplusplus) */
-
-/*
- * GCC1 and some versions of GCC2 declare dead (non-returning) and
- * pure (no side effects) functions using "volatile" and "const";
- * unfortunately, these then cause warnings under "-ansi -pedantic".
- * GCC2 uses a new, peculiar __attribute__((attrs)) style. All of
- * these work for GNU C++ (modulo a slight glitch in the C++ grammar
- * in the distribution version of 2.5.5).
- */
-#if !defined(__GNUC__) || __GNUC__ < 2 || __GNUC_MINOR__ < 5
-#define __attribute__(x) /* delete __attribute__ if non-gcc or gcc1 */
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
-#define __dead __volatile
-#define __pure __const
-#endif
-#endif
-
-/* Delete pseudo-keywords wherever they are not available or needed. */
-#ifndef __dead
-#define __dead
-#define __pure
-#endif
-
-#endif /* !_CDEFS_H_ */
diff --git a/dbm/include/extern.h b/dbm/include/extern.h
deleted file mode 100644
index cbc99222b3..0000000000
--- a/dbm/include/extern.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*-
- * Copyright (c) 1991, 1993, 1994
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)extern.h 8.4 (Berkeley) 6/16/94
- */
-
-BUFHEAD *__add_ovflpage (HTAB *, BUFHEAD *);
-int __addel (HTAB *, BUFHEAD *, const DBT *, const DBT *);
-int __big_delete (HTAB *, BUFHEAD *);
-int __big_insert (HTAB *, BUFHEAD *, const DBT *, const DBT *);
-int __big_keydata (HTAB *, BUFHEAD *, DBT *, DBT *, int);
-int __big_return (HTAB *, BUFHEAD *, int, DBT *, int);
-int __big_split (HTAB *, BUFHEAD *, BUFHEAD *, BUFHEAD *,
- uint32, uint32, SPLIT_RETURN *);
-int __buf_free (HTAB *, int, int);
-void __buf_init (HTAB *, int);
-uint32 __call_hash (HTAB *, char *, size_t);
-int __delpair (HTAB *, BUFHEAD *, int);
-int __expand_table (HTAB *);
-int __find_bigpair (HTAB *, BUFHEAD *, int, char *, int);
-uint16 __find_last_page (HTAB *, BUFHEAD **);
-void __free_ovflpage (HTAB *, BUFHEAD *);
-BUFHEAD *__get_buf (HTAB *, uint32, BUFHEAD *, int);
-int __get_page (HTAB *, char *, uint32, int, int, int);
-int __ibitmap (HTAB *, int, int, int);
-uint32 __log2 (uint32);
-int __put_page (HTAB *, char *, uint32, int, int);
-void __reclaim_buf (HTAB *, BUFHEAD *);
-int __split_page (HTAB *, uint32, uint32);
-
-/* Default hash routine. */
-extern uint32 (*__default_hash) (const void *, size_t);
-
-#ifdef HASH_STATISTICS
-extern int hash_accesses, hash_collisions, hash_expansions, hash_overflows;
-#endif
diff --git a/dbm/include/hash.h b/dbm/include/hash.h
deleted file mode 100644
index 20307b5c55..0000000000
--- a/dbm/include/hash.h
+++ /dev/null
@@ -1,335 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993, 1994
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Margo Seltzer.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)hash.h 8.3 (Berkeley) 5/31/94
- */
-
-/* Operations */
-
-#include
-#include "mcom_db.h"
-typedef enum {
- HASH_GET, HASH_PUT, HASH_PUTNEW, HASH_DELETE, HASH_FIRST, HASH_NEXT
-} ACTION;
-
-/* Buffer Management structures */
-typedef struct _bufhead BUFHEAD;
-
-struct _bufhead {
- BUFHEAD *prev; /* LRU links */
- BUFHEAD *next; /* LRU links */
- BUFHEAD *ovfl; /* Overflow page buffer header */
- uint32 addr; /* Address of this page */
- char *page; /* Actual page data */
- char is_disk;
- char flags;
-#define BUF_MOD 0x0001
-#define BUF_DISK 0x0002
-#define BUF_BUCKET 0x0004
-#define BUF_PIN 0x0008
-};
-
-#define IS_BUCKET(X) ((X) & BUF_BUCKET)
-
-typedef BUFHEAD **SEGMENT;
-
-typedef int DBFILE_PTR;
-#define NO_FILE -1
-#ifdef macintosh
-#define DBFILE_OPEN(path, flag,mode) open((path), flag)
-#define EXISTS(path)
-#else
-#define DBFILE_OPEN(path, flag,mode) open((path), (flag), (mode))
-#endif
-/* Hash Table Information */
-typedef struct hashhdr { /* Disk resident portion */
- int32 magic; /* Magic NO for hash tables */
- int32 version; /* Version ID */
- uint32 lorder; /* Byte Order */
- int32 bsize; /* Bucket/Page Size */
- int32 bshift; /* Bucket shift */
- int32 dsize; /* Directory Size */
- int32 ssize; /* Segment Size */
- int32 sshift; /* Segment shift */
- int32 ovfl_point; /* Where overflow pages are being
- * allocated */
- int32 last_freed; /* Last overflow page freed */
- int32 max_bucket; /* ID of Maximum bucket in use */
- int32 high_mask; /* Mask to modulo into entire table */
- int32 low_mask; /* Mask to modulo into lower half of
- * table */
- int32 ffactor; /* Fill factor */
- int32 nkeys; /* Number of keys in hash table */
- int32 hdrpages; /* Size of table header */
- uint32 h_charkey; /* value of hash(CHARKEY) */
-#define NCACHED 32 /* number of bit maps and spare
- * points */
- int32 spares[NCACHED];/* spare pages for overflow */
- uint16 bitmaps[NCACHED]; /* address of overflow page
- * bitmaps */
-} HASHHDR;
-
-typedef struct htab { /* Memory resident data structure */
- HASHHDR hdr; /* Header */
- int nsegs; /* Number of allocated segments */
- int exsegs; /* Number of extra allocated
- * segments */
- uint32 /* Hash function */
- (*hash)(const void *, size_t);
- int flags; /* Flag values */
- DBFILE_PTR fp; /* File pointer */
- char *filename;
- char *tmp_buf; /* Temporary Buffer for BIG data */
- char *tmp_key; /* Temporary Buffer for BIG keys */
- BUFHEAD *cpage; /* Current page */
- int cbucket; /* Current bucket */
- int cndx; /* Index of next item on cpage */
- int dbmerrno; /* Error Number -- for DBM
- * compatability */
- int new_file; /* Indicates if fd is backing store
- * or no */
- int save_file; /* Indicates whether we need to flush
- * file at
- * exit */
- uint32 *mapp[NCACHED]; /* Pointers to page maps */
- int nmaps; /* Initial number of bitmaps */
- int nbufs; /* Number of buffers left to
- * allocate */
- BUFHEAD bufhead; /* Header of buffer lru list */
- SEGMENT *dir; /* Hash Bucket directory */
- off_t file_size; /* in bytes */
- char is_temp; /* unlink file on close */
- char updateEOF; /* force EOF update on flush */
-} HTAB;
-
-/*
- * Constants
- */
-#define DATABASE_CORRUPTED_ERROR -999 /* big ugly abort, delete database */
-#define OLD_MAX_BSIZE 65536 /* 2^16 */
-#define MAX_BSIZE 32l*1024l /* 2^15 */
-#define MIN_BUFFERS 6
-#define MINHDRSIZE 512
-#define DEF_BUFSIZE 65536l /* 64 K */
-#define DEF_BUCKET_SIZE 4096
-#define DEF_BUCKET_SHIFT 12 /* log2(BUCKET) */
-#define DEF_SEGSIZE 256
-#define DEF_SEGSIZE_SHIFT 8 /* log2(SEGSIZE) */
-#define DEF_DIRSIZE 256
-#define DEF_FFACTOR 65536l
-#define MIN_FFACTOR 4
-#define SPLTMAX 8
-#define CHARKEY "%$sniglet^&"
-#define NUMKEY 1038583l
-#define BYTE_SHIFT 3
-#define INT_TO_BYTE 2
-#define INT_BYTE_SHIFT 5
-#define ALL_SET ((uint32)0xFFFFFFFF)
-#define ALL_CLEAR 0
-
-#define PTROF(X) ((ptrdiff_t)(X) == BUF_DISK ? 0 : (X))
-#define ISDISK(X) ((X) ? ((ptrdiff_t)(X) == BUF_DISK ? BUF_DISK \
- : (X)->is_disk) : 0)
-
-#define BITS_PER_MAP 32
-
-/* Given the address of the beginning of a big map, clear/set the nth bit */
-#define CLRBIT(A, N) ((A)[(N)/BITS_PER_MAP] &= ~(1<<((N)%BITS_PER_MAP)))
-#define SETBIT(A, N) ((A)[(N)/BITS_PER_MAP] |= (1<<((N)%BITS_PER_MAP)))
-#define ISSET(A, N) ((A)[(N)/BITS_PER_MAP] & (1<<((N)%BITS_PER_MAP)))
-
-/* Overflow management */
-/*
- * Overflow page numbers are allocated per split point. At each doubling of
- * the table, we can allocate extra pages. So, an overflow page number has
- * the top 5 bits indicate which split point and the lower 11 bits indicate
- * which page at that split point is indicated (pages within split points are
- * numberered starting with 1).
- */
-
-#define SPLITSHIFT 11
-#define SPLITMASK 0x7FF
-#define SPLITNUM(N) (((uint32)(N)) >> SPLITSHIFT)
-#define OPAGENUM(N) ((N) & SPLITMASK)
-#define OADDR_OF(S,O) ((uint32)((uint32)(S) << SPLITSHIFT) + (O))
-
-#define BUCKET_TO_PAGE(B) \
- (B) + hashp->HDRPAGES + ((B) ? hashp->SPARES[__log2((uint32)((B)+1))-1] : 0)
-#define OADDR_TO_PAGE(B) \
- BUCKET_TO_PAGE ( (1 << SPLITNUM((B))) -1 ) + OPAGENUM((B));
-
-/*
- * page.h contains a detailed description of the page format.
- *
- * Normally, keys and data are accessed from offset tables in the top of
- * each page which point to the beginning of the key and data. There are
- * four flag values which may be stored in these offset tables which indicate
- * the following:
- *
- *
- * OVFLPAGE Rather than a key data pair, this pair contains
- * the address of an overflow page. The format of
- * the pair is:
- * OVERFLOW_PAGE_NUMBER OVFLPAGE
- *
- * PARTIAL_KEY This must be the first key/data pair on a page
- * and implies that page contains only a partial key.
- * That is, the key is too big to fit on a single page
- * so it starts on this page and continues on the next.
- * The format of the page is:
- * KEY_OFF PARTIAL_KEY OVFL_PAGENO OVFLPAGE
- *
- * KEY_OFF -- offset of the beginning of the key
- * PARTIAL_KEY -- 1
- * OVFL_PAGENO - page number of the next overflow page
- * OVFLPAGE -- 0
- *
- * FULL_KEY This must be the first key/data pair on the page. It
- * is used in two cases.
- *
- * Case 1:
- * There is a complete key on the page but no data
- * (because it wouldn't fit). The next page contains
- * the data.
- *
- * Page format it:
- * KEY_OFF FULL_KEY OVFL_PAGENO OVFL_PAGE
- *
- * KEY_OFF -- offset of the beginning of the key
- * FULL_KEY -- 2
- * OVFL_PAGENO - page number of the next overflow page
- * OVFLPAGE -- 0
- *
- * Case 2:
- * This page contains no key, but part of a large
- * data field, which is continued on the next page.
- *
- * Page format it:
- * DATA_OFF FULL_KEY OVFL_PAGENO OVFL_PAGE
- *
- * KEY_OFF -- offset of the beginning of the data on
- * this page
- * FULL_KEY -- 2
- * OVFL_PAGENO - page number of the next overflow page
- * OVFLPAGE -- 0
- *
- * FULL_KEY_DATA
- * This must be the first key/data pair on the page.
- * There are two cases:
- *
- * Case 1:
- * This page contains a key and the beginning of the
- * data field, but the data field is continued on the
- * next page.
- *
- * Page format is:
- * KEY_OFF FULL_KEY_DATA OVFL_PAGENO DATA_OFF
- *
- * KEY_OFF -- offset of the beginning of the key
- * FULL_KEY_DATA -- 3
- * OVFL_PAGENO - page number of the next overflow page
- * DATA_OFF -- offset of the beginning of the data
- *
- * Case 2:
- * This page contains the last page of a big data pair.
- * There is no key, only the tail end of the data
- * on this page.
- *
- * Page format is:
- * DATA_OFF FULL_KEY_DATA
- *
- * DATA_OFF -- offset of the beginning of the data on
- * this page
- * FULL_KEY_DATA -- 3
- * OVFL_PAGENO - page number of the next overflow page
- * OVFLPAGE -- 0
- *
- * OVFL_PAGENO and OVFLPAGE are optional (they are
- * not present if there is no next page).
- */
-
-#define OVFLPAGE 0
-#define PARTIAL_KEY 1
-#define FULL_KEY 2
-#define FULL_KEY_DATA 3
-#define REAL_KEY 4
-
-/* Short hands for accessing structure */
-#undef BSIZE
-#define BSIZE hdr.bsize
-#undef BSHIFT
-#define BSHIFT hdr.bshift
-#define DSIZE hdr.dsize
-#define SGSIZE hdr.ssize
-#define SSHIFT hdr.sshift
-#define LORDER hdr.lorder
-#define OVFL_POINT hdr.ovfl_point
-#define LAST_FREED hdr.last_freed
-#define MAX_BUCKET hdr.max_bucket
-#define FFACTOR hdr.ffactor
-#define HIGH_MASK hdr.high_mask
-#define LOW_MASK hdr.low_mask
-#define NKEYS hdr.nkeys
-#define HDRPAGES hdr.hdrpages
-#define SPARES hdr.spares
-#define BITMAPS hdr.bitmaps
-#define VERSION hdr.version
-#define MAGIC hdr.magic
-#define NEXT_FREE hdr.next_free
-#define H_CHARKEY hdr.h_charkey
-
-extern uint32 (*__default_hash) (const void *, size_t);
-void __buf_init(HTAB *hashp, int32 nbytes);
-int __big_delete(HTAB *hashp, BUFHEAD *bufp);
-BUFHEAD * __get_buf(HTAB *hashp, uint32 addr, BUFHEAD *prev_bp, int newpage);
-uint32 __call_hash(HTAB *hashp, char *k, size_t len);
-#include "page.h"
-extern int __big_split(HTAB *hashp, BUFHEAD *op,BUFHEAD *np,
-BUFHEAD *big_keyp,uint32 addr,uint32 obucket, SPLIT_RETURN *ret);
-void __free_ovflpage(HTAB *hashp, BUFHEAD *obufp);
-BUFHEAD * __add_ovflpage(HTAB *hashp, BUFHEAD *bufp);
-int __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val);
-int __expand_table(HTAB *hashp);
-uint32 __log2(uint32 num);
-void __reclaim_buf(HTAB *hashp, BUFHEAD *bp);
-int __get_page(HTAB *hashp, char * p, uint32 bucket, int is_bucket, int is_disk, int is_bitmap);
-int __put_page(HTAB *hashp, char *p, uint32 bucket, int is_bucket, int is_bitmap);
-int __ibitmap(HTAB *hashp, int pnum, int nbits, int ndx);
-int __buf_free(HTAB *hashp, int do_free, int to_disk);
-int __find_bigpair(HTAB *hashp, BUFHEAD *bufp, int ndx, char *key, int size);
-uint16 __find_last_page(HTAB *hashp, BUFHEAD **bpp);
-int __addel(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT * val);
-int __big_return(HTAB *hashp, BUFHEAD *bufp, int ndx, DBT *val, int set_current);
-int __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx);
-int __big_keydata(HTAB *hashp, BUFHEAD *bufp, DBT *key, DBT *val, int set);
-int __split_page(HTAB *hashp, uint32 obucket, uint32 nbucket);
diff --git a/dbm/include/hsearch.h b/dbm/include/hsearch.h
deleted file mode 100644
index ae1df1caaa..0000000000
--- a/dbm/include/hsearch.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Margo Seltzer.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)search.h 8.1 (Berkeley) 6/4/93
- */
-
-/* Backward compatibility to hsearch interface. */
-typedef struct entry {
- char *key;
- char *data;
-} ENTRY;
-
-typedef enum {
- FIND, ENTER
-} ACTION;
-
-int hcreate (unsigned int);
-void hdestroy (void);
-ENTRY *hsearch (ENTRY, ACTION);
diff --git a/dbm/include/mcom_db.h b/dbm/include/mcom_db.h
deleted file mode 100644
index 629cb0f715..0000000000
--- a/dbm/include/mcom_db.h
+++ /dev/null
@@ -1,413 +0,0 @@
-/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/*-
- * Copyright (c) 1990, 1993, 1994
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)db.h 8.7 (Berkeley) 6/16/94
- */
-
-#ifndef _DB_H_
-#define _DB_H_
-
-
-#ifdef WINCE
-#define off_t long
-#endif
-
-#ifndef macintosh
-#include
-#endif
-#include "prtypes.h"
-
-#include
-
-#ifdef __DBINTERFACE_PRIVATE
-
-#ifdef HAVE_SYS_CDEFS_H
-#include
-#else
-#include "cdefs.h"
-#endif
-
-#ifdef HAVE_SYS_BYTEORDER_H
-#include
-#endif
-
-#if defined(__linux) || defined(__BEOS__)
-#include
-#ifndef BYTE_ORDER
-#define BYTE_ORDER __BYTE_ORDER
-#define BIG_ENDIAN __BIG_ENDIAN
-#define LITTLE_ENDIAN __LITTLE_ENDIAN
-#endif
-#endif /* __linux */
-
-#ifdef __sgi
-#define BYTE_ORDER BIG_ENDIAN
-#define BIG_ENDIAN 4321
-#define LITTLE_ENDIAN 1234 /* LSB first: i386, vax, all NT risc */
-#endif
-
-#ifdef __sun
-#define BIG_ENDIAN 4321
-#define LITTLE_ENDIAN 1234 /* LSB first: i386, vax, all NT risc */
-
-#ifndef __SVR4
-/* compat.h is only in 4.1.3 machines. - dp */
-#include
-#endif
-
-/* XXX - dp
- * Need to find a general way of defining endian-ness in SunOS 5.3
- * SunOS 5.4 defines _BIG_ENDIAN and _LITTLE_ENDIAN
- * SunOS 5.3 does nothing like this.
- */
-
-#ifndef BYTE_ORDER
-
-#if defined(_BIG_ENDIAN)
-#define BYTE_ORDER BIG_ENDIAN
-#elif defined(_LITTLE_ENDIAN)
-#define BYTE_ORDER LITTLE_ENDIAN
-#elif !defined(__SVR4)
-/* 4.1.3 is always BIG_ENDIAN as it was released only on sparc platforms. */
-#define BYTE_ORDER BIG_ENDIAN
-#elif !defined(vax) && !defined(ntohl) && !defined(lint) && !defined(i386)
-/* 5.3 big endian. Copied this above line from sys/byteorder.h */
-/* Now we are in a 5.3 SunOS rather non 5.4 or above SunOS */
-#define BYTE_ORDER BIG_ENDIAN
-#else
-#define BYTE_ORDER LITTLE_ENDIAN
-#endif
-
-#endif /* !BYTE_ORDER */
-#endif /* __sun */
-
-#if defined(__hpux) || defined(__hppa)
-#define BYTE_ORDER BIG_ENDIAN
-#define BIG_ENDIAN 4321
-#define LITTLE_ENDIAN 1234 /* LSB first: i386, vax, all NT risc */
-#endif
-
-#if defined(AIXV3) || defined(AIX)
-/* BYTE_ORDER, LITTLE_ENDIAN, BIG_ENDIAN are all defined here */
-#include
-#endif
-
-/* Digital Unix */
-#ifdef __osf__
-#include
-#endif
-
-#ifdef __alpha
-#ifndef WIN32
-#else
-/* Alpha NT */
-#define BYTE_ORDER LITTLE_ENDIAN
-#define BIG_ENDIAN 4321
-#define LITTLE_ENDIAN 1234
-#endif
-#endif
-
-#ifdef NCR
-#include
-#endif
-
-#ifdef __QNX__
-#ifdef __QNXNTO__
-#include
-#else
-#define LITTLE_ENDIAN 1234
-#define BIG_ENDIAN 4321
-#define BYTE_ORDER LITTLE_ENDIAN
-#endif
-#endif
-
-#ifdef SNI
-/* #include */
-#define BYTE_ORDER BIG_ENDIAN
-#define BIG_ENDIAN 4321
-#define LITTLE_ENDIAN 1234
-#endif
-
-#ifdef _WINDOWS
-#ifdef BYTE_ORDER
-#undef BYTE_ORDER
-#endif
-
-#define BYTE_ORDER LITTLE_ENDIAN
-#define LITTLE_ENDIAN 1234 /* LSB first: i386, vax, all NT risc */
-#define BIG_ENDIAN 4321
-#endif
-
-#ifdef macintosh
-#define BIG_ENDIAN 4321
-#define LITTLE_ENDIAN 1234
-#define BYTE_ORDER BIG_ENDIAN
-#endif
-
-#endif /* __DBINTERFACE_PRIVATE */
-
-#ifdef SCO
-#define MAXPATHLEN 1024
-#endif
-
-#include
-
-#if defined(_WINDOWS) || defined(XP_OS2)
-#include
-#include
-
-#ifndef XP_OS2
-#define MAXPATHLEN 1024
-#endif
-
-#define EFTYPE EINVAL /* POSIX 1003.1 format errno. */
-
-#ifndef STDERR_FILENO
-#define STDIN_FILENO 0 /* ANSI C #defines */
-#define STDOUT_FILENO 1
-#define STDERR_FILENO 2
-#endif
-
-#ifndef O_ACCMODE /* POSIX 1003.1 access mode mask. */
-#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
-#endif
-#endif
-
-#ifdef macintosh
-#include
-#include "xp_mcom.h"
-#define O_ACCMODE 3 /* Mask for file access modes */
-#define EFTYPE 2000
-PR_BEGIN_EXTERN_C
-int mkstemp(const char *path);
-PR_END_EXTERN_C
-#endif /* MACINTOSH */
-
-#if !defined(_WINDOWS) && !defined(macintosh)
-#include
-#include
-#endif
-
-/* define EFTYPE since most don't */
-#ifndef EFTYPE
-#define EFTYPE EINVAL /* POSIX 1003.1 format errno. */
-#endif
-
-#define RET_ERROR -1 /* Return values. */
-#define RET_SUCCESS 0
-#define RET_SPECIAL 1
-
-#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */
-
-#ifndef __sgi
-typedef uint32 pgno_t;
-#endif
-
-#define MAX_PAGE_OFFSET 65535 /* >= # of bytes in a page */
-typedef uint16 indx_t;
-#define MAX_REC_NUMBER 0xffffffff /* >= # of records in a tree */
-typedef uint32 recno_t;
-
-/* Key/data structure -- a Data-Base Thang. */
-typedef struct {
- void *data; /* data */
- size_t size; /* data length */
-} DBT;
-
-/* Routine flags. */
-#define R_CURSOR 1 /* del, put, seq */
-#define __R_UNUSED 2 /* UNUSED */
-#define R_FIRST 3 /* seq */
-#define R_IAFTER 4 /* put (RECNO) */
-#define R_IBEFORE 5 /* put (RECNO) */
-#define R_LAST 6 /* seq (BTREE, RECNO) */
-#define R_NEXT 7 /* seq */
-#define R_NOOVERWRITE 8 /* put */
-#define R_PREV 9 /* seq (BTREE, RECNO) */
-#define R_SETCURSOR 10 /* put (RECNO) */
-#define R_RECNOSYNC 11 /* sync (RECNO) */
-
-typedef enum { DB_BTREE, DB_HASH, DB_RECNO } DBTYPE;
-
-typedef enum { LockOutDatabase, UnlockDatabase } DBLockFlagEnum;
-
-/*
- * !!!
- * The following flags are included in the dbopen(3) call as part of the
- * open(2) flags. In order to avoid conflicts with the open flags, start
- * at the top of the 16 or 32-bit number space and work our way down. If
- * the open flags were significantly expanded in the future, it could be
- * a problem. Wish I'd left another flags word in the dbopen call.
- *
- * !!!
- * None of this stuff is implemented yet. The only reason that it's here
- * is so that the access methods can skip copying the key/data pair when
- * the DB_LOCK flag isn't set.
- */
-#if UINT_MAX > 65535
-#define DB_LOCK 0x20000000 /* Do locking. */
-#define DB_SHMEM 0x40000000 /* Use shared memory. */
-#define DB_TXN 0x80000000 /* Do transactions. */
-#else
-#define DB_LOCK 0x2000 /* Do locking. */
-#define DB_SHMEM 0x4000 /* Use shared memory. */
-#define DB_TXN 0x8000 /* Do transactions. */
-#endif
-
-/* Access method description structure. */
-typedef struct __db {
- DBTYPE type; /* Underlying db type. */
- int (*close) (struct __db *);
- int (*del) (const struct __db *, const DBT *, uint);
- int (*get) (const struct __db *, const DBT *, DBT *, uint);
- int (*put) (const struct __db *, DBT *, const DBT *, uint);
- int (*seq) (const struct __db *, DBT *, DBT *, uint);
- int (*sync) (const struct __db *, uint);
- void *internal; /* Access method private. */
- int (*fd) (const struct __db *);
-} DB;
-
-#define BTREEMAGIC 0x053162
-#define BTREEVERSION 3
-
-/* Structure used to pass parameters to the btree routines. */
-typedef struct {
-#define R_DUP 0x01 /* duplicate keys */
- uint32 flags;
- uint cachesize; /* bytes to cache */
- int maxkeypage; /* maximum keys per page */
- int minkeypage; /* minimum keys per page */
- uint psize; /* page size */
- int (*compare) /* comparison function */
- (const DBT *, const DBT *);
- size_t (*prefix) /* prefix function */
- (const DBT *, const DBT *);
- int lorder; /* byte order */
-} BTREEINFO;
-
-#define HASHMAGIC 0x061561
-#define HASHVERSION 2
-
-/* Structure used to pass parameters to the hashing routines. */
-typedef struct {
- uint bsize; /* bucket size */
- uint ffactor; /* fill factor */
- uint nelem; /* number of elements */
- uint cachesize; /* bytes to cache */
- uint32 /* hash function */
- (*hash) (const void *, size_t);
- int lorder; /* byte order */
-} HASHINFO;
-
-/* Structure used to pass parameters to the record routines. */
-typedef struct {
-#define R_FIXEDLEN 0x01 /* fixed-length records */
-#define R_NOKEY 0x02 /* key not required */
-#define R_SNAPSHOT 0x04 /* snapshot the input */
- uint32 flags;
- uint cachesize; /* bytes to cache */
- uint psize; /* page size */
- int lorder; /* byte order */
- size_t reclen; /* record length (fixed-length records) */
- uint8 bval; /* delimiting byte (variable-length records */
- char *bfname; /* btree file name */
-} RECNOINFO;
-
-#ifdef __DBINTERFACE_PRIVATE
-/*
- * Little endian <==> big endian 32-bit swap macros.
- * M_32_SWAP swap a memory location
- * P_32_SWAP swap a referenced memory location
- * P_32_COPY swap from one location to another
- */
-#define M_32_SWAP(a) { \
- uint32 _tmp = a; \
- ((char *)&a)[0] = ((char *)&_tmp)[3]; \
- ((char *)&a)[1] = ((char *)&_tmp)[2]; \
- ((char *)&a)[2] = ((char *)&_tmp)[1]; \
- ((char *)&a)[3] = ((char *)&_tmp)[0]; \
-}
-#define P_32_SWAP(a) { \
- uint32 _tmp = *(uint32 *)a; \
- ((char *)a)[0] = ((char *)&_tmp)[3]; \
- ((char *)a)[1] = ((char *)&_tmp)[2]; \
- ((char *)a)[2] = ((char *)&_tmp)[1]; \
- ((char *)a)[3] = ((char *)&_tmp)[0]; \
-}
-#define P_32_COPY(a, b) { \
- ((char *)&(b))[0] = ((char *)&(a))[3]; \
- ((char *)&(b))[1] = ((char *)&(a))[2]; \
- ((char *)&(b))[2] = ((char *)&(a))[1]; \
- ((char *)&(b))[3] = ((char *)&(a))[0]; \
-}
-
-/*
- * Little endian <==> big endian 16-bit swap macros.
- * M_16_SWAP swap a memory location
- * P_16_SWAP swap a referenced memory location
- * P_16_COPY swap from one location to another
- */
-#define M_16_SWAP(a) { \
- uint16 _tmp = a; \
- ((char *)&a)[0] = ((char *)&_tmp)[1]; \
- ((char *)&a)[1] = ((char *)&_tmp)[0]; \
-}
-#define P_16_SWAP(a) { \
- uint16 _tmp = *(uint16 *)a; \
- ((char *)a)[0] = ((char *)&_tmp)[1]; \
- ((char *)a)[1] = ((char *)&_tmp)[0]; \
-}
-#define P_16_COPY(a, b) { \
- ((char *)&(b))[0] = ((char *)&(a))[1]; \
- ((char *)&(b))[1] = ((char *)&(a))[0]; \
-}
-#endif
-
-PR_BEGIN_EXTERN_C
-
-extern DB *
-dbopen (const char *, int, int, DBTYPE, const void *);
-
-/* set or unset a global lock flag to disable the
- * opening of any DBM file
- */
-void dbSetOrClearDBLock(DBLockFlagEnum type);
-
-#ifdef __DBINTERFACE_PRIVATE
-DB *__bt_open (const char *, int, int, const BTREEINFO *, int);
-DB *__hash_open (const char *, int, int, const HASHINFO *, int);
-DB *__rec_open (const char *, int, int, const RECNOINFO *, int);
-void __dbpanic (DB *dbp);
-#endif
-
-PR_END_EXTERN_C
-
-#endif /* !_DB_H_ */
diff --git a/dbm/include/mpool.h b/dbm/include/mpool.h
deleted file mode 100644
index 0483d243e4..0000000000
--- a/dbm/include/mpool.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/*-
- * Copyright (c) 1991, 1993, 1994
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)mpool.h 8.2 (Berkeley) 7/14/94
- */
-
-#include
-
-/*
- * The memory pool scheme is a simple one. Each in-memory page is referenced
- * by a bucket which is threaded in up to two of three ways. All active pages
- * are threaded on a hash chain (hashed by page number) and an lru chain.
- * Inactive pages are threaded on a free chain. Each reference to a memory
- * pool is handed an opaque MPOOL cookie which stores all of this information.
- */
-#define HASHSIZE 128
-#define HASHKEY(pgno) ((pgno - 1) % HASHSIZE)
-
-/* The BKT structures are the elements of the queues. */
-typedef struct _bkt {
- CIRCLEQ_ENTRY(_bkt) hq; /* hash queue */
- CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
- void *page; /* page */
- pgno_t pgno; /* page number */
-
-#define MPOOL_DIRTY 0x01 /* page needs to be written */
-#define MPOOL_PINNED 0x02 /* page is pinned into memory */
- uint8 flags; /* flags */
-} BKT;
-
-typedef struct MPOOL {
- CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
- /* hash queue array */
- CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
- pgno_t curcache; /* current number of cached pages */
- pgno_t maxcache; /* max number of cached pages */
- pgno_t npages; /* number of pages in the file */
- uint32 pagesize; /* file page size */
- int fd; /* file descriptor */
- /* page in conversion routine */
- void (*pgin) (void *, pgno_t, void *);
- /* page out conversion routine */
- void (*pgout) (void *, pgno_t, void *);
- void *pgcookie; /* cookie for page in/out routines */
-#ifdef STATISTICS
- uint32 cachehit;
- uint32 cachemiss;
- uint32 pagealloc;
- uint32 pageflush;
- uint32 pageget;
- uint32 pagenew;
- uint32 pageput;
- uint32 pageread;
- uint32 pagewrite;
-#endif
-} MPOOL;
-
-__BEGIN_DECLS
-MPOOL *mpool_open (void *, int, pgno_t, pgno_t);
-void mpool_filter (MPOOL *, void (*)(void *, pgno_t, void *),
- void (*)(void *, pgno_t, void *), void *);
-void *mpool_new (MPOOL *, pgno_t *);
-void *mpool_get (MPOOL *, pgno_t, uint);
-int mpool_put (MPOOL *, void *, uint);
-int mpool_sync (MPOOL *);
-int mpool_close (MPOOL *);
-#ifdef STATISTICS
-void mpool_stat (MPOOL *);
-#endif
-__END_DECLS
diff --git a/dbm/include/ncompat.h b/dbm/include/ncompat.h
deleted file mode 100644
index b6126f819c..0000000000
--- a/dbm/include/ncompat.h
+++ /dev/null
@@ -1,230 +0,0 @@
-/*-
- * Copyright (c) 1991, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)compat.h 8.13 (Berkeley) 2/21/94
- */
-
-#ifndef _COMPAT_H_
-#define _COMPAT_H_
-
-#include
-
-/*
- * If your system doesn't typedef u_long, u_short, or u_char, change
- * the 0 to a 1.
- */
-#if 0
-typedef unsigned char u_char; /* 4.[34]BSD names. */
-typedef unsigned int u_int;
-typedef unsigned long u_long;
-typedef unsigned short u_short;
-#endif
-
-/* If your system doesn't typedef size_t, change the 0 to a 1. */
-#if 0
-typedef unsigned int size_t; /* POSIX, 4.[34]BSD names. */
-#endif
-
-/* If your system doesn't typedef ssize_t, change the 0 to a 1. */
-#if 0
-typedef int ssize_t; /* POSIX names. */
-#endif
-
-/*
- * If your system doesn't have the POSIX type for a signal mask,
- * change the 0 to a 1.
- */
-#if 0 /* POSIX 1003.1 signal mask type. */
-typedef unsigned int sigset_t;
-#endif
-
-/*
- * If your system's vsprintf returns a char *, not an int,
- * change the 0 to a 1.
- */
-#if defined (__sun) && !defined(__SVR4) /* SUNOS */
-#define VSPRINTF_CHARSTAR
-#endif
-/*
- * If you don't have POSIX 1003.1 signals, the signal code surrounding the
- * temporary file creation is intended to block all of the possible signals
- * long enough to create the file and unlink it. All of this stuff is
- * intended to use old-style BSD calls to fake POSIX 1003.1 calls.
- */
-#ifdef NO_POSIX_SIGNALS
-#define sigemptyset(set) (*(set) = 0)
-#define sigfillset(set) (*(set) = ~(sigset_t)0, 0)
-#define sigaddset(set,signo) (*(set) |= sigmask(signo), 0)
-#define sigdelset(set,signo) (*(set) &= ~sigmask(signo), 0)
-#define sigismember(set,signo) ((*(set) & sigmask(signo)) != 0)
-
-#define SIG_BLOCK 1
-#define SIG_UNBLOCK 2
-#define SIG_SETMASK 3
-
-static int __sigtemp; /* For the use of sigprocmask */
-
-/* Repeated test of oset != NULL is to avoid "*0". */
-#define sigprocmask(how, set, oset) \
- ((__sigtemp = \
- (((how) == SIG_BLOCK) ? \
- sigblock(0) | *(set) : \
- (((how) == SIG_UNBLOCK) ? \
- sigblock(0) & ~(*(set)) : \
- ((how) == SIG_SETMASK ? \
- *(set) : sigblock(0))))), \
- ((oset) ? (*(oset ? oset : set) = sigsetmask(__sigtemp)) : \
- sigsetmask(__sigtemp)), 0)
-#endif
-
-/*
- * If your system doesn't have an include file with the appropriate
- * byte order set, make sure you specify the correct one.
- */
-#ifndef BYTE_ORDER
-#define LITTLE_ENDIAN 1234 /* LSB first: i386, vax */
-#define BIG_ENDIAN 4321 /* MSB first: 68000, ibm, net */
-#define BYTE_ORDER BIG_ENDIAN /* Set for your system. */
-#endif
-
-#if defined(SYSV) || defined(SYSTEM5) || defined(__sun)
-#define index(a, b) strchr(a, b)
-#define rindex(a, b) strrchr(a, b)
-#define bzero(a, b) memset(a, 0, b)
-#define bcmp(a, b, n) memcmp(a, b, n)
-#define bcopy(a, b, n) memmove(b, a, n)
-#endif
-
-#if defined(BSD) || defined(BSD4_3)
-#define strchr(a, b) index(a, b)
-#define strrchr(a, b) rindex(a, b)
-#define memcmp(a, b, n) bcmp(a, b, n)
-#define memmove(a, b, n) bcopy(b, a, n)
-#endif
-
-/*
- * 32-bit machine. The db routines are theoretically independent of
- * the size of u_shorts and u_longs, but I don't know that anyone has
- * ever actually tried it. At a minimum, change the following #define's
- * if you are trying to compile on a different type of system.
- */
-#ifndef USHRT_MAX
-#define USHRT_MAX 0xFFFF
-#define ULONG_MAX 0xFFFFFFFF
-#endif
-
-#ifndef O_ACCMODE /* POSIX 1003.1 access mode mask. */
-#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
-#endif
-
-#ifndef _POSIX2_RE_DUP_MAX /* POSIX 1003.2 RE limit. */
-#define _POSIX2_RE_DUP_MAX 255
-#endif
-
-/*
- * If you can't provide lock values in the open(2) call. Note, this
- * allows races to happen.
- */
-#ifndef O_EXLOCK /* 4.4BSD extension. */
-#define O_EXLOCK 0
-#endif
-
-#ifndef O_SHLOCK /* 4.4BSD extension. */
-#define O_SHLOCK 0
-#endif
-
-#ifndef EFTYPE
-#define EFTYPE EINVAL /* POSIX 1003.1 format errno. */
-#endif
-
-#ifndef WCOREDUMP /* 4.4BSD extension */
-#define WCOREDUMP(a) 0
-#endif
-
-#ifndef STDERR_FILENO
-#define STDIN_FILENO 0 /* ANSI C #defines */
-#define STDOUT_FILENO 1
-#define STDERR_FILENO 2
-#endif
-
-#ifndef SEEK_END
-#define SEEK_SET 0 /* POSIX 1003.1 seek values */
-#define SEEK_CUR 1
-#define SEEK_END 2
-#endif
-
-#ifndef _POSIX_VDISABLE /* POSIX 1003.1 disabling char. */
-#define _POSIX_VDISABLE 0 /* Some systems used 0. */
-#endif
-
-#ifndef TCSASOFT /* 4.4BSD extension. */
-#define TCSASOFT 0
-#endif
-
-#ifndef _POSIX2_RE_DUP_MAX /* POSIX 1003.2 values. */
-#define _POSIX2_RE_DUP_MAX 255
-#endif
-
-#ifndef NULL /* ANSI C #defines NULL everywhere. */
-#define NULL 0
-#endif
-
-#ifndef MAX /* Usually found in . */
-#define MAX(_a,_b) ((_a)<(_b)?(_b):(_a))
-#endif
-#ifndef MIN /* Usually found in . */
-#define MIN(_a,_b) ((_a)<(_b)?(_a):(_b))
-#endif
-
-/* Default file permissions. */
-#ifndef DEFFILEMODE /* 4.4BSD extension. */
-#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
-#endif
-
-#ifndef __sun
-#ifndef S_ISDIR /* POSIX 1003.1 file type tests. */
-#define S_ISDIR(m) ((m & 0170000) == 0040000) /* directory */
-#define S_ISCHR(m) ((m & 0170000) == 0020000) /* char special */
-#define S_ISBLK(m) ((m & 0170000) == 0060000) /* block special */
-#define S_ISREG(m) ((m & 0170000) == 0100000) /* regular file */
-#define S_ISFIFO(m) ((m & 0170000) == 0010000) /* fifo */
-#endif
-#ifndef S_ISLNK /* BSD POSIX 1003.1 extensions */
-#define S_ISLNK(m) ((m & 0170000) == 0120000) /* symbolic link */
-#define S_ISSOCK(m) ((m & 0170000) == 0140000) /* socket */
-#endif
-#endif /* __sun */
-
-/* The type of a va_list. */
-#ifndef _BSD_VA_LIST_ /* 4.4BSD #define. */
-#define _BSD_VA_LIST_ char *
-#endif
-
-#endif /* !_COMPAT_H_ */
diff --git a/dbm/include/page.h b/dbm/include/page.h
deleted file mode 100644
index be2446d4e1..0000000000
--- a/dbm/include/page.h
+++ /dev/null
@@ -1,94 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993, 1994
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Margo Seltzer.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)page.h 8.2 (Berkeley) 5/31/94
- */
-
-/*
- * Definitions for hashing page file format.
- */
-
-/*
- * routines dealing with a data page
- *
- * page format:
- * +------------------------------+
- * p | n | keyoff | datoff | keyoff |
- * +------------+--------+--------+
- * | datoff | free | ptr | --> |
- * +--------+---------------------+
- * | F R E E A R E A |
- * +--------------+---------------+
- * | <---- - - - | data |
- * +--------+-----+----+----------+
- * | key | data | key |
- * +--------+----------+----------+
- *
- * Pointer to the free space is always: p[p[0] + 2]
- * Amount of free space on the page is: p[p[0] + 1]
- */
-
-/*
- * How many bytes required for this pair?
- * 2 shorts in the table at the top of the page + room for the
- * key and room for the data
- *
- * We prohibit entering a pair on a page unless there is also room to append
- * an overflow page. The reason for this it that you can get in a situation
- * where a single key/data pair fits on a page, but you can't append an
- * overflow page and later you'd have to split the key/data and handle like
- * a big pair.
- * You might as well do this up front.
- */
-#ifndef PAGE_H
-#define PAGE_H
-
-#define PAIRSIZE(K,D) (2*sizeof(uint16) + (K)->size + (D)->size)
-#define BIGOVERHEAD (4*sizeof(uint16))
-#define KEYSIZE(K) (4*sizeof(uint16) + (K)->size);
-#define OVFLSIZE (2*sizeof(uint16))
-#define FREESPACE(P) ((P)[(P)[0]+1])
-#define OFFSET(P) ((P)[(P)[0]+2])
-#define PAIRFITS(P,K,D) \
- (((P)[2] >= REAL_KEY) && \
- (PAIRSIZE((K),(D)) + OVFLSIZE) <= FREESPACE((P)))
-#define PAGE_META(N) (((N)+3) * sizeof(uint16))
-
-typedef struct {
- BUFHEAD *newp;
- BUFHEAD *oldp;
- BUFHEAD *nextp;
- uint16 next_addr;
-} SPLIT_RETURN;
-#endif
-
diff --git a/dbm/include/queue.h b/dbm/include/queue.h
deleted file mode 100644
index 3b4ffeb2dd..0000000000
--- a/dbm/include/queue.h
+++ /dev/null
@@ -1,243 +0,0 @@
-/*
- * Copyright (c) 1991, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)queue.h 8.3 (Berkeley) 12/13/93
- */
-
-#ifndef _QUEUE_H_
-#define _QUEUE_H_
-
-/*
- * This file defines three types of data structures: lists, tail queues,
- * and circular queues.
- *
- * A list is headed by a single forward pointer (or an array of forward
- * pointers for a hash table header). The elements are doubly linked
- * so that an arbitrary element can be removed without a need to
- * traverse the list. New elements can be added to the list after
- * an existing element or at the head of the list. A list may only be
- * traversed in the forward direction.
- *
- * A tail queue is headed by a pair of pointers, one to the head of the
- * list and the other to the tail of the list. The elements are doubly
- * linked so that an arbitrary element can be removed without a need to
- * traverse the list. New elements can be added to the list after
- * an existing element, at the head of the list, or at the end of the
- * list. A tail queue may only be traversed in the forward direction.
- *
- * A circle queue is headed by a pair of pointers, one to the head of the
- * list and the other to the tail of the list. The elements are doubly
- * linked so that an arbitrary element can be removed without a need to
- * traverse the list. New elements can be added to the list before or after
- * an existing element, at the head of the list, or at the end of the list.
- * A circle queue may be traversed in either direction, but has a more
- * complex end of list detection.
- *
- * For details on the use of these macros, see the queue(3) manual page.
- */
-
-/*
- * List definitions.
- */
-#define LIST_HEAD(name, type) \
-struct name { \
- struct type *lh_first; /* first element */ \
-}
-
-#define LIST_ENTRY(type) \
-struct { \
- struct type *le_next; /* next element */ \
- struct type **le_prev; /* address of previous next element */ \
-}
-
-/*
- * List functions.
- */
-#define LIST_INIT(head) { \
- (head)->lh_first = NULL; \
-}
-
-#define LIST_INSERT_AFTER(listelm, elm, field) { \
- if (((elm)->field.le_next = (listelm)->field.le_next) != NULL) \
- (listelm)->field.le_next->field.le_prev = \
- &(elm)->field.le_next; \
- (listelm)->field.le_next = (elm); \
- (elm)->field.le_prev = &(listelm)->field.le_next; \
-}
-
-#define LIST_INSERT_HEAD(head, elm, field) { \
- if (((elm)->field.le_next = (head)->lh_first) != NULL) \
- (head)->lh_first->field.le_prev = &(elm)->field.le_next;\
- (head)->lh_first = (elm); \
- (elm)->field.le_prev = &(head)->lh_first; \
-}
-
-#define LIST_REMOVE(elm, field) { \
- if ((elm)->field.le_next != NULL) \
- (elm)->field.le_next->field.le_prev = \
- (elm)->field.le_prev; \
- *(elm)->field.le_prev = (elm)->field.le_next; \
-}
-
-/*
- * Tail queue definitions.
- */
-#define TAILQ_HEAD(name, type) \
-struct name { \
- struct type *tqh_first; /* first element */ \
- struct type **tqh_last; /* addr of last next element */ \
-}
-
-#define TAILQ_ENTRY(type) \
-struct { \
- struct type *tqe_next; /* next element */ \
- struct type **tqe_prev; /* address of previous next element */ \
-}
-
-/*
- * Tail queue functions.
- */
-#define TAILQ_INIT(head) { \
- (head)->tqh_first = NULL; \
- (head)->tqh_last = &(head)->tqh_first; \
-}
-
-#define TAILQ_INSERT_HEAD(head, elm, field) { \
- if (((elm)->field.tqe_next = (head)->tqh_first) != NULL) \
- (elm)->field.tqe_next->field.tqe_prev = \
- &(elm)->field.tqe_next; \
- else \
- (head)->tqh_last = &(elm)->field.tqe_next; \
- (head)->tqh_first = (elm); \
- (elm)->field.tqe_prev = &(head)->tqh_first; \
-}
-
-#define TAILQ_INSERT_TAIL(head, elm, field) { \
- (elm)->field.tqe_next = NULL; \
- (elm)->field.tqe_prev = (head)->tqh_last; \
- *(head)->tqh_last = (elm); \
- (head)->tqh_last = &(elm)->field.tqe_next; \
-}
-
-#define TAILQ_INSERT_AFTER(head, listelm, elm, field) { \
- if (((elm)->field.tqe_next = (listelm)->field.tqe_next) != NULL)\
- (elm)->field.tqe_next->field.tqe_prev = \
- &(elm)->field.tqe_next; \
- else \
- (head)->tqh_last = &(elm)->field.tqe_next; \
- (listelm)->field.tqe_next = (elm); \
- (elm)->field.tqe_prev = &(listelm)->field.tqe_next; \
-}
-
-#define TAILQ_REMOVE(head, elm, field) { \
- if (((elm)->field.tqe_next) != NULL) \
- (elm)->field.tqe_next->field.tqe_prev = \
- (elm)->field.tqe_prev; \
- else \
- (head)->tqh_last = (elm)->field.tqe_prev; \
- *(elm)->field.tqe_prev = (elm)->field.tqe_next; \
-}
-
-/*
- * Circular queue definitions.
- */
-#define CIRCLEQ_HEAD(name, type) \
-struct name { \
- struct type *cqh_first; /* first element */ \
- struct type *cqh_last; /* last element */ \
-}
-
-#define CIRCLEQ_ENTRY(type) \
-struct { \
- struct type *cqe_next; /* next element */ \
- struct type *cqe_prev; /* previous element */ \
-}
-
-/*
- * Circular queue functions.
- */
-#define CIRCLEQ_INIT(head) { \
- (head)->cqh_first = (void *)(head); \
- (head)->cqh_last = (void *)(head); \
-}
-
-#define CIRCLEQ_INSERT_AFTER(head, listelm, elm, field) { \
- (elm)->field.cqe_next = (listelm)->field.cqe_next; \
- (elm)->field.cqe_prev = (listelm); \
- if ((listelm)->field.cqe_next == (void *)(head)) \
- (head)->cqh_last = (elm); \
- else \
- (listelm)->field.cqe_next->field.cqe_prev = (elm); \
- (listelm)->field.cqe_next = (elm); \
-}
-
-#define CIRCLEQ_INSERT_BEFORE(head, listelm, elm, field) { \
- (elm)->field.cqe_next = (listelm); \
- (elm)->field.cqe_prev = (listelm)->field.cqe_prev; \
- if ((listelm)->field.cqe_prev == (void *)(head)) \
- (head)->cqh_first = (elm); \
- else \
- (listelm)->field.cqe_prev->field.cqe_next = (elm); \
- (listelm)->field.cqe_prev = (elm); \
-}
-
-#define CIRCLEQ_INSERT_HEAD(head, elm, field) { \
- (elm)->field.cqe_next = (head)->cqh_first; \
- (elm)->field.cqe_prev = (void *)(head); \
- if ((head)->cqh_last == (void *)(head)) \
- (head)->cqh_last = (elm); \
- else \
- (head)->cqh_first->field.cqe_prev = (elm); \
- (head)->cqh_first = (elm); \
-}
-
-#define CIRCLEQ_INSERT_TAIL(head, elm, field) { \
- (elm)->field.cqe_next = (void *)(head); \
- (elm)->field.cqe_prev = (head)->cqh_last; \
- if ((head)->cqh_first == (void *)(head)) \
- (head)->cqh_first = (elm); \
- else \
- (head)->cqh_last->field.cqe_next = (elm); \
- (head)->cqh_last = (elm); \
-}
-
-#define CIRCLEQ_REMOVE(head, elm, field) { \
- if ((elm)->field.cqe_next == (void *)(head)) \
- (head)->cqh_last = (elm)->field.cqe_prev; \
- else \
- (elm)->field.cqe_next->field.cqe_prev = \
- (elm)->field.cqe_prev; \
- if ((elm)->field.cqe_prev == (void *)(head)) \
- (head)->cqh_first = (elm)->field.cqe_next; \
- else \
- (elm)->field.cqe_prev->field.cqe_next = \
- (elm)->field.cqe_next; \
-}
-#endif /* !_QUEUE_H_ */
diff --git a/dbm/include/search.h b/dbm/include/search.h
deleted file mode 100644
index ae1df1caaa..0000000000
--- a/dbm/include/search.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Margo Seltzer.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * @(#)search.h 8.1 (Berkeley) 6/4/93
- */
-
-/* Backward compatibility to hsearch interface. */
-typedef struct entry {
- char *key;
- char *data;
-} ENTRY;
-
-typedef enum {
- FIND, ENTER
-} ACTION;
-
-int hcreate (unsigned int);
-void hdestroy (void);
-ENTRY *hsearch (ENTRY, ACTION);
diff --git a/dbm/include/winfile.h b/dbm/include/winfile.h
deleted file mode 100644
index 36b59f7212..0000000000
--- a/dbm/include/winfile.h
+++ /dev/null
@@ -1,112 +0,0 @@
-
-/* ---------------------------------------------------------------------------
- Stuff to fake unix file I/O on windows boxes
- ------------------------------------------------------------------------*/
-
-#ifndef WINFILE_H
-#define WINFILE_H
-
-#ifdef _WINDOWS
-/* hacked out of on an SGI */
-#if defined(XP_WIN32) || defined(_WIN32)
-/* 32-bit stuff here */
-#include
-#include
-#ifdef __MINGW32__
-#include
-#include
-#else
-#include
-#include
-#endif
-
-typedef struct DIR_Struct {
- void * directoryPtr;
- WIN32_FIND_DATA data;
-} DIR;
-
-#define _ST_FSTYPSZ 16
-
-#if !defined(__BORLANDC__) && !defined(__GNUC__)
- typedef unsigned long mode_t;
- typedef long uid_t;
- typedef long gid_t;
-
-#ifdef WINCE
- typedef long ino_t;
-#else
- typedef long off_t;
-#endif
-
- typedef unsigned long nlink_t;
-#endif
-
-typedef struct timestruc {
- time_t tv_sec; /* seconds */
- long tv_nsec; /* and nanoseconds */
-} timestruc_t;
-
-
-struct dirent { /* data from readdir() */
- ino_t d_ino; /* inode number of entry */
- off_t d_off; /* offset of disk direntory entry */
- unsigned short d_reclen; /* length of this record */
- char d_name[_MAX_FNAME]; /* name of file */
-};
-
-#if !defined(__BORLANDC__) && !defined (__GNUC__)
-#define S_ISDIR(s) ((s) & _S_IFDIR)
-#endif
-
-#else /* _WIN32 */
-/* 16-bit windows stuff */
-
-#include
-#include
-#include
-
-
-
-/* Getting cocky to support multiple file systems */
-typedef struct dirStruct_tag {
- struct _find_t file_data;
- char c_checkdrive;
-} dirStruct;
-
-typedef struct DIR_Struct {
- void * directoryPtr;
- dirStruct data;
-} DIR;
-
-#define _ST_FSTYPSZ 16
-typedef unsigned long mode_t;
-typedef long uid_t;
-typedef long gid_t;
-typedef long off_t;
-typedef unsigned long nlink_t;
-
-typedef struct timestruc {
- time_t tv_sec; /* seconds */
- long tv_nsec; /* and nanoseconds */
-} timestruc_t;
-
-struct dirent { /* data from readdir() */
- ino_t d_ino; /* inode number of entry */
- off_t d_off; /* offset of disk direntory entry */
- unsigned short d_reclen; /* length of this record */
-#ifdef XP_WIN32
- char d_name[_MAX_FNAME]; /* name of file */
-#else
- char d_name[20]; /* name of file */
-#endif
-};
-
-#define S_ISDIR(s) ((s) & _S_IFDIR)
-
-#endif /* 16-bit windows */
-
-#define CONST const
-
-#endif /* _WINDOWS */
-
-#endif /* WINFILE_H */
diff --git a/dbm/src/.cvsignore b/dbm/src/.cvsignore
deleted file mode 100644
index f3c7a7c5da..0000000000
--- a/dbm/src/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-Makefile
diff --git a/dbm/src/Makefile.in b/dbm/src/Makefile.in
deleted file mode 100644
index 2f7476d8c8..0000000000
--- a/dbm/src/Makefile.in
+++ /dev/null
@@ -1,95 +0,0 @@
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1998
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-DEPTH = ../..
-topsrcdir = @top_srcdir@
-srcdir = @srcdir@
-VPATH = @srcdir@
-
-include $(DEPTH)/config/autoconf.mk
-
-LIBRARY_NAME = mozdbm_s
-LIB_IS_C_ONLY = 1
-
-ifeq ($(OS_ARCH),WINNT)
-LIBRARY_NAME = dbm$(MOZ_BITS)
-endif
-
-CSRCS = \
- db.c \
- h_bigkey.c \
- h_func.c \
- h_log2.c \
- h_page.c \
- hash.c \
- hash_buf.c \
- hsearch.c \
- mktemp.c \
- ndbm.c \
- strerror.c \
- nsres.c \
- $(NULL)
-
-ifeq ($(OS_ARCH),WINNT)
-CSRCS += memmove.c snprintf.c
-else
-ifeq (,$(filter -DHAVE_MEMMOVE=1,$(ACDEFINES)))
-CSRCS += memmove.c
-endif
-
-ifeq (,$(filter -DHAVE_SNPRINTF=1,$(ACDEFINES)))
-CSRCS += snprintf.c
-endif
-endif # WINNT
-
-LOCAL_INCLUDES = -I$(srcdir)/../include
-
-FORCE_STATIC_LIB = 1
-FORCE_USE_PIC = 1
-
-include $(topsrcdir)/config/rules.mk
-
-DEFINES += -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG)
-
-ifeq ($(OS_ARCH),WINCE)
-DEFINES += -D__STDC__ -DDBM_REOPEN_ON_FLUSH
-endif
-
-ifeq ($(OS_ARCH),AIX)
-OS_LIBS += -lc_r
-endif
-
diff --git a/dbm/src/Makefile.win b/dbm/src/Makefile.win
deleted file mode 100644
index 91bdf7d209..0000000000
--- a/dbm/src/Makefile.win
+++ /dev/null
@@ -1,113 +0,0 @@
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1998
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-
-#//------------------------------------------------------------------------
-#//
-#// Makefile to build the cert library
-#//
-#//------------------------------------------------------------------------
-
-!if "$(MOZ_BITS)" == "16"
-!ifndef MOZ_DEBUG
-OPTIMIZER=-Os -UDEBUG -DNDEBUG
-!endif
-!endif
-
-#//------------------------------------------------------------------------
-#//
-#// Specify the depth of the current directory relative to the
-#// root of NS
-#//
-#//------------------------------------------------------------------------
-DEPTH= ..\..
-
-!ifndef MAKE_OBJ_TYPE
-MAKE_OBJ_TYPE=EXE
-!endif
-
-#//------------------------------------------------------------------------
-#//
-#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
-#//
-#//------------------------------------------------------------------------
-LIBNAME=dbm$(MOZ_BITS)
-PDBFILE=$(LIBNAME).pdb
-
-#//------------------------------------------------------------------------
-#//
-#// Define the files necessary to build the target (ie. OBJS)
-#//
-#//------------------------------------------------------------------------
-OBJS= \
- .\$(OBJDIR)\db.obj \
- .\$(OBJDIR)\h_bigkey.obj \
- .\$(OBJDIR)\h_func.obj \
- .\$(OBJDIR)\h_log2.obj \
- .\$(OBJDIR)\h_page.obj \
- .\$(OBJDIR)\hash.obj \
- .\$(OBJDIR)\hash_buf.obj \
- .\$(OBJDIR)\hsearch.obj \
- .\$(OBJDIR)\memmove.obj \
- .\$(OBJDIR)\mktemp.obj \
- .\$(OBJDIR)\ndbm.obj \
- .\$(OBJDIR)\snprintf.obj \
- .\$(OBJDIR)\strerror.obj \
- .\$(OBJDIR)\nsres.obj \
- $(NULL)
-
-#//------------------------------------------------------------------------
-#//
-#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
-#// (these must be defined before the common makefiles are included)
-#//
-#//------------------------------------------------------------------------
-LIBRARY = .\$(OBJDIR)\$(LIBNAME).lib
-LINCS = -I..\include
-
-#//------------------------------------------------------------------------
-#//
-#// Include the common makefile rules
-#//
-#//------------------------------------------------------------------------
-include <$(DEPTH)/config/rules.mak>
-
-CFLAGS = $(CFLAGS) -DMOZILLA_CLIENT -D__DBINTERFACE_PRIVATE
-
-install:: $(LIBRARY)
- $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
-
-
diff --git a/dbm/src/db.c b/dbm/src/db.c
deleted file mode 100644
index 264e9fac70..0000000000
--- a/dbm/src/db.c
+++ /dev/null
@@ -1,136 +0,0 @@
-/*-
- * Copyright (c) 1991, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)db.c 8.4 (Berkeley) 2/21/94";
-#endif /* LIBC_SCCS and not lint */
-
-#ifndef __DBINTERFACE_PRIVATE
-#define __DBINTERFACE_PRIVATE
-#endif
-#ifdef macintosh
-#include
-#else
-#include
-#endif
-
-#include
-#include
-#include
-#include
-
-#include "mcom_db.h"
-
-/* a global flag that locks closed all databases */
-int all_databases_locked_closed = 0;
-
-/* set or unset a global lock flag to disable the
- * opening of any DBM file
- */
-void
-dbSetOrClearDBLock(DBLockFlagEnum type)
-{
- if(type == LockOutDatabase)
- all_databases_locked_closed = 1;
- else
- all_databases_locked_closed = 0;
-}
-
-DB *
-dbopen(const char *fname, int flags,int mode, DBTYPE type, const void *openinfo)
-{
-
- /* lock out all file databases. Let in-memory databases through
- */
- if(all_databases_locked_closed && fname)
- {
- errno = EINVAL;
- return(NULL);
- }
-
-#define DB_FLAGS (DB_LOCK | DB_SHMEM | DB_TXN)
-
-
-#if 0 /* most systems don't have EXLOCK and SHLOCK */
-#define USE_OPEN_FLAGS \
- (O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
- O_RDWR | O_SHLOCK | O_TRUNC)
-#else
-#define USE_OPEN_FLAGS \
- (O_CREAT | O_EXCL | O_RDONLY | \
- O_RDWR | O_TRUNC)
-#endif
-
- if ((flags & ~(USE_OPEN_FLAGS | DB_FLAGS)) == 0)
- switch (type) {
-/* we don't need btree and recno right now */
-#if 0
- case DB_BTREE:
- return (__bt_open(fname, flags & USE_OPEN_FLAGS,
- mode, openinfo, flags & DB_FLAGS));
- case DB_RECNO:
- return (__rec_open(fname, flags & USE_OPEN_FLAGS,
- mode, openinfo, flags & DB_FLAGS));
-#endif
-
- case DB_HASH:
- return (__hash_open(fname, flags & USE_OPEN_FLAGS,
- mode, (const HASHINFO *)openinfo, flags & DB_FLAGS));
- default:
- break;
- }
- errno = EINVAL;
- return (NULL);
-}
-
-static int
-__dberr()
-{
- return (RET_ERROR);
-}
-
-/*
- * __DBPANIC -- Stop.
- *
- * Parameters:
- * dbp: pointer to the DB structure.
- */
-void
-__dbpanic(DB *dbp)
-{
- /* The only thing that can succeed is a close. */
- dbp->del = (int (*)(const struct __db *, const DBT *, uint))__dberr;
- dbp->fd = (int (*)(const struct __db *))__dberr;
- dbp->get = (int (*)(const struct __db *, const DBT *, DBT *, uint))__dberr;
- dbp->put = (int (*)(const struct __db *, DBT *, const DBT *, uint))__dberr;
- dbp->seq = (int (*)(const struct __db *, DBT *, DBT *, uint))__dberr;
- dbp->sync = (int (*)(const struct __db *, uint))__dberr;
-}
diff --git a/dbm/src/h_bigkey.c b/dbm/src/h_bigkey.c
deleted file mode 100644
index c174e32a72..0000000000
--- a/dbm/src/h_bigkey.c
+++ /dev/null
@@ -1,709 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993, 1994
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Margo Seltzer.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash_bigkey.c 8.3 (Berkeley) 5/31/94";
-#endif /* LIBC_SCCS and not lint */
-
-/*
- * PACKAGE: hash
- * DESCRIPTION:
- * Big key/data handling for the hashing package.
- *
- * ROUTINES:
- * External
- * __big_keydata
- * __big_split
- * __big_insert
- * __big_return
- * __big_delete
- * __find_last_page
- * Internal
- * collect_key
- * collect_data
- */
-
-#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
-#include
-#endif
-
-#include
-#include
-#include
-#include
-
-#ifdef DEBUG
-#include
-#endif
-
-#include "mcom_db.h"
-#include "hash.h"
-#include "page.h"
-/* #include "extern.h" */
-
-static int collect_key __P((HTAB *, BUFHEAD *, int, DBT *, int));
-static int collect_data __P((HTAB *, BUFHEAD *, int, int));
-
-/*
- * Big_insert
- *
- * You need to do an insert and the key/data pair is too big
- *
- * Returns:
- * 0 ==> OK
- *-1 ==> ERROR
- */
-extern int
-__big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val)
-{
- register uint16 *p;
- uint key_size, n, val_size;
- uint16 space, move_bytes, off;
- char *cp, *key_data, *val_data;
-
- cp = bufp->page; /* Character pointer of p. */
- p = (uint16 *)cp;
-
- key_data = (char *)key->data;
- key_size = key->size;
- val_data = (char *)val->data;
- val_size = val->size;
-
- /* First move the Key */
- for (space = FREESPACE(p) - BIGOVERHEAD; key_size;
- space = FREESPACE(p) - BIGOVERHEAD) {
- move_bytes = PR_MIN(space, key_size);
- off = OFFSET(p) - move_bytes;
- memmove(cp + off, key_data, move_bytes);
- key_size -= move_bytes;
- key_data += move_bytes;
- n = p[0];
- p[++n] = off;
- p[0] = ++n;
- FREESPACE(p) = off - PAGE_META(n);
- OFFSET(p) = off;
- p[n] = PARTIAL_KEY;
- bufp = __add_ovflpage(hashp, bufp);
- if (!bufp)
- return (-1);
- n = p[0];
- if (!key_size) {
- if (FREESPACE(p)) {
- move_bytes = PR_MIN(FREESPACE(p), val_size);
- off = OFFSET(p) - move_bytes;
- p[n] = off;
- memmove(cp + off, val_data, move_bytes);
- val_data += move_bytes;
- val_size -= move_bytes;
- p[n - 2] = FULL_KEY_DATA;
- FREESPACE(p) = FREESPACE(p) - move_bytes;
- OFFSET(p) = off;
- } else
- p[n - 2] = FULL_KEY;
- }
- p = (uint16 *)bufp->page;
- cp = bufp->page;
- bufp->flags |= BUF_MOD;
- }
-
- /* Now move the data */
- for (space = FREESPACE(p) - BIGOVERHEAD; val_size;
- space = FREESPACE(p) - BIGOVERHEAD) {
- move_bytes = PR_MIN(space, val_size);
- /*
- * Here's the hack to make sure that if the data ends on the
- * same page as the key ends, FREESPACE is at least one.
- */
- if (space == val_size && val_size == val->size)
- move_bytes--;
- off = OFFSET(p) - move_bytes;
- memmove(cp + off, val_data, move_bytes);
- val_size -= move_bytes;
- val_data += move_bytes;
- n = p[0];
- p[++n] = off;
- p[0] = ++n;
- FREESPACE(p) = off - PAGE_META(n);
- OFFSET(p) = off;
- if (val_size) {
- p[n] = FULL_KEY;
- bufp = __add_ovflpage(hashp, bufp);
- if (!bufp)
- return (-1);
- cp = bufp->page;
- p = (uint16 *)cp;
- } else
- p[n] = FULL_KEY_DATA;
- bufp->flags |= BUF_MOD;
- }
- return (0);
-}
-
-/*
- * Called when bufp's page contains a partial key (index should be 1)
- *
- * All pages in the big key/data pair except bufp are freed. We cannot
- * free bufp because the page pointing to it is lost and we can't get rid
- * of its pointer.
- *
- * Returns:
- * 0 => OK
- *-1 => ERROR
- */
-extern int
-__big_delete(HTAB *hashp, BUFHEAD *bufp)
-{
- register BUFHEAD *last_bfp, *rbufp;
- uint16 *bp, pageno;
- int key_done, n;
-
- rbufp = bufp;
- last_bfp = NULL;
- bp = (uint16 *)bufp->page;
- pageno = 0;
- key_done = 0;
-
- while (!key_done || (bp[2] != FULL_KEY_DATA)) {
- if (bp[2] == FULL_KEY || bp[2] == FULL_KEY_DATA)
- key_done = 1;
-
- /*
- * If there is freespace left on a FULL_KEY_DATA page, then
- * the data is short and fits entirely on this page, and this
- * is the last page.
- */
- if (bp[2] == FULL_KEY_DATA && FREESPACE(bp))
- break;
- pageno = bp[bp[0] - 1];
- rbufp->flags |= BUF_MOD;
- rbufp = __get_buf(hashp, pageno, rbufp, 0);
- if (last_bfp)
- __free_ovflpage(hashp, last_bfp);
- last_bfp = rbufp;
- if (!rbufp)
- return (-1); /* Error. */
- bp = (uint16 *)rbufp->page;
- }
-
- /*
- * If we get here then rbufp points to the last page of the big
- * key/data pair. Bufp points to the first one -- it should now be
- * empty pointing to the next page after this pair. Can't free it
- * because we don't have the page pointing to it.
- */
-
- /* This is information from the last page of the pair. */
- n = bp[0];
- pageno = bp[n - 1];
-
- /* Now, bp is the first page of the pair. */
- bp = (uint16 *)bufp->page;
- if (n > 2) {
- /* There is an overflow page. */
- bp[1] = pageno;
- bp[2] = OVFLPAGE;
- bufp->ovfl = rbufp->ovfl;
- } else
- /* This is the last page. */
- bufp->ovfl = NULL;
- n -= 2;
- bp[0] = n;
- FREESPACE(bp) = hashp->BSIZE - PAGE_META(n);
- OFFSET(bp) = hashp->BSIZE - 1;
-
- bufp->flags |= BUF_MOD;
- if (rbufp)
- __free_ovflpage(hashp, rbufp);
- if (last_bfp != rbufp)
- __free_ovflpage(hashp, last_bfp);
-
- hashp->NKEYS--;
- return (0);
-}
-/*
- * Returns:
- * 0 = key not found
- * -1 = get next overflow page
- * -2 means key not found and this is big key/data
- * -3 error
- */
-extern int
-__find_bigpair(HTAB *hashp, BUFHEAD *bufp, int ndx, char *key, int size)
-{
- register uint16 *bp;
- register char *p;
- int ksize;
- uint16 bytes;
- char *kkey;
-
- bp = (uint16 *)bufp->page;
- p = bufp->page;
- ksize = size;
- kkey = key;
-
- for (bytes = hashp->BSIZE - bp[ndx];
- bytes <= size && bp[ndx + 1] == PARTIAL_KEY;
- bytes = hashp->BSIZE - bp[ndx]) {
- if (memcmp(p + bp[ndx], kkey, bytes))
- return (-2);
- kkey += bytes;
- ksize -= bytes;
- bufp = __get_buf(hashp, bp[ndx + 2], bufp, 0);
- if (!bufp)
- return (-3);
- p = bufp->page;
- bp = (uint16 *)p;
- ndx = 1;
- }
-
- if (bytes != ksize || memcmp(p + bp[ndx], kkey, bytes)) {
-#ifdef HASH_STATISTICS
- ++hash_collisions;
-#endif
- return (-2);
- } else
- return (ndx);
-}
-
-/*
- * Given the buffer pointer of the first overflow page of a big pair,
- * find the end of the big pair
- *
- * This will set bpp to the buffer header of the last page of the big pair.
- * It will return the pageno of the overflow page following the last page
- * of the pair; 0 if there isn't any (i.e. big pair is the last key in the
- * bucket)
- */
-extern uint16
-__find_last_page(HTAB *hashp, BUFHEAD **bpp)
-{
- BUFHEAD *bufp;
- uint16 *bp, pageno;
- uint n;
-
- bufp = *bpp;
- bp = (uint16 *)bufp->page;
- for (;;) {
- n = bp[0];
-
- /*
- * This is the last page if: the tag is FULL_KEY_DATA and
- * either only 2 entries OVFLPAGE marker is explicit there
- * is freespace on the page.
- */
- if (bp[2] == FULL_KEY_DATA &&
- ((n == 2) || (bp[n] == OVFLPAGE) || (FREESPACE(bp))))
- break;
-
- /* LJM bound the size of n to reasonable limits
- */
- if(n > hashp->BSIZE/sizeof(uint16))
- return(0);
-
- pageno = bp[n - 1];
- bufp = __get_buf(hashp, pageno, bufp, 0);
- if (!bufp)
- return (0); /* Need to indicate an error! */
- bp = (uint16 *)bufp->page;
- }
-
- *bpp = bufp;
- if (bp[0] > 2)
- return (bp[3]);
- else
- return (0);
-}
-
-/*
- * Return the data for the key/data pair that begins on this page at this
- * index (index should always be 1).
- */
-extern int
-__big_return(
- HTAB *hashp,
- BUFHEAD *bufp,
- int ndx,
- DBT *val,
- int set_current)
-{
- BUFHEAD *save_p;
- uint16 *bp, len, off, save_addr;
- char *tp;
- int save_flags;
-
- bp = (uint16 *)bufp->page;
- while (bp[ndx + 1] == PARTIAL_KEY) {
- bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
- if (!bufp)
- return (-1);
- bp = (uint16 *)bufp->page;
- ndx = 1;
- }
-
- if (bp[ndx + 1] == FULL_KEY) {
- bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
- if (!bufp)
- return (-1);
- bp = (uint16 *)bufp->page;
- save_p = bufp;
- save_addr = save_p->addr;
- off = bp[1];
- len = 0;
- } else
- if (!FREESPACE(bp)) {
- /*
- * This is a hack. We can't distinguish between
- * FULL_KEY_DATA that contains complete data or
- * incomplete data, so we require that if the data
- * is complete, there is at least 1 byte of free
- * space left.
- */
- off = bp[bp[0]];
- len = bp[1] - off;
- save_p = bufp;
- save_addr = bufp->addr;
- bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
- if (!bufp)
- return (-1);
- bp = (uint16 *)bufp->page;
- } else {
- /* The data is all on one page. */
- tp = (char *)bp;
- off = bp[bp[0]];
- val->data = (uint8 *)tp + off;
- val->size = bp[1] - off;
- if (set_current) {
- if (bp[0] == 2) { /* No more buckets in
- * chain */
- hashp->cpage = NULL;
- hashp->cbucket++;
- hashp->cndx = 1;
- } else {
- hashp->cpage = __get_buf(hashp,
- bp[bp[0] - 1], bufp, 0);
- if (!hashp->cpage)
- return (-1);
- hashp->cndx = 1;
- if (!((uint16 *)
- hashp->cpage->page)[0]) {
- hashp->cbucket++;
- hashp->cpage = NULL;
- }
- }
- }
- return (0);
- }
-
- /* pin our saved buf so that we don't lose if
- * we run out of buffers */
- save_flags = save_p->flags;
- save_p->flags |= BUF_PIN;
- val->size = collect_data(hashp, bufp, (int)len, set_current);
- save_p->flags = save_flags;
- if (val->size == (size_t)-1)
- return (-1);
- if (save_p->addr != save_addr) {
- /* We are pretty short on buffers. */
- errno = EINVAL; /* OUT OF BUFFERS */
- return (-1);
- }
- memmove(hashp->tmp_buf, (save_p->page) + off, len);
- val->data = (uint8 *)hashp->tmp_buf;
- return (0);
-}
-
-
-/*
- * Count how big the total datasize is by looping through the pages. Then
- * allocate a buffer and copy the data in the second loop. NOTE: Our caller
- * may already have a bp which it is holding onto. The caller is
- * responsible for copying that bp into our temp buffer. 'len' is how much
- * space to reserve for that buffer.
- */
-static int
-collect_data(
- HTAB *hashp,
- BUFHEAD *bufp,
- int len, int set)
-{
- register uint16 *bp;
- BUFHEAD *save_bufp;
- int save_flags;
- int mylen, totlen;
-
- /*
- * save the input buf head because we need to walk the list twice.
- * pin it to make sure it doesn't leave the buffer pool.
- * This has the effect of growing the buffer pool if necessary.
- */
- save_bufp = bufp;
- save_flags = save_bufp->flags;
- save_bufp->flags |= BUF_PIN;
-
- /* read the length of the buffer */
- for (totlen = len; bufp ; bufp = __get_buf(hashp, bp[bp[0]-1], bufp, 0)) {
- bp = (uint16 *)bufp->page;
- mylen = hashp->BSIZE - bp[1];
-
- /* if mylen ever goes negative it means that the
- * page is screwed up.
- */
- if (mylen < 0) {
- save_bufp->flags = save_flags;
- return (-1);
- }
- totlen += mylen;
- if (bp[2] == FULL_KEY_DATA) { /* End of Data */
- break;
- }
- }
-
- if (!bufp) {
- save_bufp->flags = save_flags;
- return (-1);
- }
-
- /* allocate a temp buf */
- if (hashp->tmp_buf)
- free(hashp->tmp_buf);
- if ((hashp->tmp_buf = (char *)malloc((size_t)totlen)) == NULL) {
- save_bufp->flags = save_flags;
- return (-1);
- }
-
- /* copy the buffers back into temp buf */
- for (bufp = save_bufp; bufp ;
- bufp = __get_buf(hashp, bp[bp[0]-1], bufp, 0)) {
- bp = (uint16 *)bufp->page;
- mylen = hashp->BSIZE - bp[1];
- memmove(&hashp->tmp_buf[len], (bufp->page) + bp[1], (size_t)mylen);
- len += mylen;
- if (bp[2] == FULL_KEY_DATA) {
- break;
- }
- }
-
- /* 'clear' the pin flags */
- save_bufp->flags = save_flags;
-
- /* update the database cursor */
- if (set) {
- hashp->cndx = 1;
- if (bp[0] == 2) { /* No more buckets in chain */
- hashp->cpage = NULL;
- hashp->cbucket++;
- } else {
- hashp->cpage = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
- if (!hashp->cpage)
- return (-1);
- else if (!((uint16 *)hashp->cpage->page)[0]) {
- hashp->cbucket++;
- hashp->cpage = NULL;
- }
- }
- }
- return (totlen);
-}
-
-/*
- * Fill in the key and data for this big pair.
- */
-extern int
-__big_keydata(
- HTAB *hashp,
- BUFHEAD *bufp,
- DBT *key, DBT *val,
- int set)
-{
- key->size = collect_key(hashp, bufp, 0, val, set);
- if (key->size == (size_t)-1)
- return (-1);
- key->data = (uint8 *)hashp->tmp_key;
- return (0);
-}
-
-/*
- * Count how big the total key size is by recursing through the pages. Then
- * collect the data, allocate a buffer and copy the key as you recurse up.
- */
-static int
-collect_key(
- HTAB *hashp,
- BUFHEAD *bufp,
- int len,
- DBT *val,
- int set)
-{
- BUFHEAD *xbp;
- char *p;
- int mylen, totlen;
- uint16 *bp, save_addr;
-
- p = bufp->page;
- bp = (uint16 *)p;
- mylen = hashp->BSIZE - bp[1];
-
- save_addr = bufp->addr;
- totlen = len + mylen;
- if (bp[2] == FULL_KEY || bp[2] == FULL_KEY_DATA) { /* End of Key. */
- if (hashp->tmp_key != NULL)
- free(hashp->tmp_key);
- if ((hashp->tmp_key = (char *)malloc((size_t)totlen)) == NULL)
- return (-1);
- if (__big_return(hashp, bufp, 1, val, set))
- return (-1);
- } else {
- xbp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
- if (!xbp || ((totlen =
- collect_key(hashp, xbp, totlen, val, set)) < 1))
- return (-1);
- }
- if (bufp->addr != save_addr) {
- errno = EINVAL; /* MIS -- OUT OF BUFFERS */
- return (-1);
- }
- memmove(&hashp->tmp_key[len], (bufp->page) + bp[1], (size_t)mylen);
- return (totlen);
-}
-
-/*
- * Returns:
- * 0 => OK
- * -1 => error
- */
-extern int
-__big_split(
- HTAB *hashp,
- BUFHEAD *op, /* Pointer to where to put keys that go in old bucket */
- BUFHEAD *np, /* Pointer to new bucket page */
- /* Pointer to first page containing the big key/data */
- BUFHEAD *big_keyp,
- uint32 addr, /* Address of big_keyp */
- uint32 obucket,/* Old Bucket */
- SPLIT_RETURN *ret)
-{
- register BUFHEAD *tmpp;
- register uint16 *tp;
- BUFHEAD *bp;
- DBT key, val;
- uint32 change;
- uint16 free_space, n, off;
-
- bp = big_keyp;
-
- /* Now figure out where the big key/data goes */
- if (__big_keydata(hashp, big_keyp, &key, &val, 0))
- return (-1);
- change = (__call_hash(hashp,(char*) key.data, key.size) != obucket);
-
- if ((ret->next_addr = __find_last_page(hashp, &big_keyp))) {
- if (!(ret->nextp =
- __get_buf(hashp, ret->next_addr, big_keyp, 0)))
- return (-1);;
- } else
- ret->nextp = NULL;
-
- /* Now make one of np/op point to the big key/data pair */
-#ifdef DEBUG
- assert(np->ovfl == NULL);
-#endif
- if (change)
- tmpp = np;
- else
- tmpp = op;
-
- tmpp->flags |= BUF_MOD;
-#ifdef DEBUG1
- (void)fprintf(stderr,
- "BIG_SPLIT: %d->ovfl was %d is now %d\n", tmpp->addr,
- (tmpp->ovfl ? tmpp->ovfl->addr : 0), (bp ? bp->addr : 0));
-#endif
- tmpp->ovfl = bp; /* one of op/np point to big_keyp */
- tp = (uint16 *)tmpp->page;
-
-
-#if 0 /* this get's tripped on database corrupted error */
- assert(FREESPACE(tp) >= OVFLSIZE);
-#endif
- if(FREESPACE(tp) < OVFLSIZE)
- return(DATABASE_CORRUPTED_ERROR);
-
- n = tp[0];
- off = OFFSET(tp);
- free_space = FREESPACE(tp);
- tp[++n] = (uint16)addr;
- tp[++n] = OVFLPAGE;
- tp[0] = n;
- OFFSET(tp) = off;
- FREESPACE(tp) = free_space - OVFLSIZE;
-
- /*
- * Finally, set the new and old return values. BIG_KEYP contains a
- * pointer to the last page of the big key_data pair. Make sure that
- * big_keyp has no following page (2 elements) or create an empty
- * following page.
- */
-
- ret->newp = np;
- ret->oldp = op;
-
- tp = (uint16 *)big_keyp->page;
- big_keyp->flags |= BUF_MOD;
- if (tp[0] > 2) {
- /*
- * There may be either one or two offsets on this page. If
- * there is one, then the overflow page is linked on normally
- * and tp[4] is OVFLPAGE. If there are two, tp[4] contains
- * the second offset and needs to get stuffed in after the
- * next overflow page is added.
- */
- n = tp[4];
- free_space = FREESPACE(tp);
- off = OFFSET(tp);
- tp[0] -= 2;
- FREESPACE(tp) = free_space + OVFLSIZE;
- OFFSET(tp) = off;
- tmpp = __add_ovflpage(hashp, big_keyp);
- if (!tmpp)
- return (-1);
- tp[4] = n;
- } else
- tmpp = big_keyp;
-
- if (change)
- ret->newp = tmpp;
- else
- ret->oldp = tmpp;
- return (0);
-}
diff --git a/dbm/src/h_func.c b/dbm/src/h_func.c
deleted file mode 100644
index 8c86be64ad..0000000000
--- a/dbm/src/h_func.c
+++ /dev/null
@@ -1,207 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Margo Seltzer.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash_func.c 8.2 (Berkeley) 2/21/94";
-#endif /* LIBC_SCCS and not lint */
-
-#ifndef macintosh
-#include
-#endif
-#include "mcom_db.h"
-#include "hash.h"
-#include "page.h"
-/* #include "extern.h" */
-
-#if 0
-static uint32 hash1 __P((const void *, size_t));
-static uint32 hash2 __P((const void *, size_t));
-static uint32 hash3 __P((const void *, size_t));
-#endif
-static uint32 hash4 __P((const void *, size_t));
-
-/* Global default hash function */
-uint32 (*__default_hash) __P((const void *, size_t)) = hash4;
-
-/*
- * HASH FUNCTIONS
- *
- * Assume that we've already split the bucket to which this key hashes,
- * calculate that bucket, and check that in fact we did already split it.
- *
- * This came from ejb's hsearch.
- */
-
-#define PRIME1 37
-#define PRIME2 1048583
-
-#if 0
-static uint32
-hash1(const void *keyarg, register size_t len)
-{
- register const uint8 *key;
- register uint32 h;
-
- /* Convert string to integer */
- for (key = (const uint8 *)keyarg, h = 0; len--;)
- h = h * PRIME1 ^ (*key++ - ' ');
- h %= PRIME2;
- return (h);
-}
-
-/*
- * Phong's linear congruential hash
- */
-#define dcharhash(h, c) ((h) = 0x63c63cd9*(h) + 0x9c39c33d + (c))
-
-static uint32
-hash2(const void *keyarg, size_t len)
-{
- register const uint8 *e, *key;
- register uint32 h;
- register uint8 c;
-
- key = (const uint8 *)keyarg;
- e = key + len;
- for (h = 0; key != e;) {
- c = *key++;
- if (!c && key > e)
- break;
- dcharhash(h, c);
- }
- return (h);
-}
-
-/*
- * This is INCREDIBLY ugly, but fast. We break the string up into 8 byte
- * units. On the first time through the loop we get the "leftover bytes"
- * (strlen % 8). On every other iteration, we perform 8 HASHC's so we handle
- * all 8 bytes. Essentially, this saves us 7 cmp & branch instructions. If
- * this routine is heavily used enough, it's worth the ugly coding.
- *
- * OZ's original sdbm hash
- */
-static uint32
-hash3(const void *keyarg, register size_t len)
-{
- register const uint8 *key;
- register size_t loop;
- register uint32 h;
-
-#define HASHC h = *key++ + 65599 * h
-
- h = 0;
- key = (const uint8 *)keyarg;
- if (len > 0) {
- loop = (len + 8 - 1) >> 3;
-
- switch (len & (8 - 1)) {
- case 0:
- do {
- HASHC;
- /* FALLTHROUGH */
- case 7:
- HASHC;
- /* FALLTHROUGH */
- case 6:
- HASHC;
- /* FALLTHROUGH */
- case 5:
- HASHC;
- /* FALLTHROUGH */
- case 4:
- HASHC;
- /* FALLTHROUGH */
- case 3:
- HASHC;
- /* FALLTHROUGH */
- case 2:
- HASHC;
- /* FALLTHROUGH */
- case 1:
- HASHC;
- } while (--loop);
- }
- }
- return (h);
-}
-#endif /* 0 */
-
-/* Hash function from Chris Torek. */
-static uint32
-hash4(const void *keyarg, register size_t len)
-{
- register const uint8 *key;
- register size_t loop;
- register uint32 h;
-
-#define HASH4a h = (h << 5) - h + *key++;
-#define HASH4b h = (h << 5) + h + *key++;
-#define HASH4 HASH4b
-
- h = 0;
- key = (const uint8 *)keyarg;
- if (len > 0) {
- loop = (len + 8 - 1) >> 3;
-
- switch (len & (8 - 1)) {
- case 0:
- do {
- HASH4;
- /* FALLTHROUGH */
- case 7:
- HASH4;
- /* FALLTHROUGH */
- case 6:
- HASH4;
- /* FALLTHROUGH */
- case 5:
- HASH4;
- /* FALLTHROUGH */
- case 4:
- HASH4;
- /* FALLTHROUGH */
- case 3:
- HASH4;
- /* FALLTHROUGH */
- case 2:
- HASH4;
- /* FALLTHROUGH */
- case 1:
- HASH4;
- } while (--loop);
- }
- }
- return (h);
-}
diff --git a/dbm/src/h_log2.c b/dbm/src/h_log2.c
deleted file mode 100644
index 9c8ea06c8b..0000000000
--- a/dbm/src/h_log2.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993, 1994
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Margo Seltzer.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash_log2.c 8.2 (Berkeley) 5/31/94";
-#endif /* LIBC_SCCS and not lint */
-
-#include
-#ifndef macintosh
-#include
-#endif
-#include "mcom_db.h"
-
-uint32 __log2(uint32 num)
-{
- register uint32 i, limit;
-
- limit = 1;
- for (i = 0; limit < num; limit = limit << 1, i++) {}
- return (i);
-}
diff --git a/dbm/src/h_page.c b/dbm/src/h_page.c
deleted file mode 100644
index 3b95554dba..0000000000
--- a/dbm/src/h_page.c
+++ /dev/null
@@ -1,1286 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993, 1994
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Margo Seltzer.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(unix)
-#define MY_LSEEK lseek
-#else
-#define MY_LSEEK new_lseek
-extern long new_lseek(int fd, long pos, int start);
-#endif
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash_page.c 8.7 (Berkeley) 8/16/94";
-#endif /* LIBC_SCCS and not lint */
-
-/*
- * PACKAGE: hashing
- *
- * DESCRIPTION:
- * Page manipulation for hashing package.
- *
- * ROUTINES:
- *
- * External
- * __get_page
- * __add_ovflpage
- * Internal
- * overflow_page
- * open_temp
- */
-#ifndef macintosh
-#include
-#endif
-
-#if defined(macintosh)
-#include
-#endif
-
-#include
-#include
-#if defined(_WIN32) || defined(_WINDOWS)
-#include
-#endif
-#include
-#include
-#include
-#include
-
-#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
-#include
-#endif
-
-#include
-
-#include "mcom_db.h"
-#include "hash.h"
-#include "page.h"
-/* #include "extern.h" */
-
-extern int mkstempflags(char *path, int extraFlags);
-
-static uint32 *fetch_bitmap __P((HTAB *, uint32));
-static uint32 first_free __P((uint32));
-static int open_temp __P((HTAB *));
-static uint16 overflow_page __P((HTAB *));
-static void squeeze_key __P((uint16 *, const DBT *, const DBT *));
-static int ugly_split
- __P((HTAB *, uint32, BUFHEAD *, BUFHEAD *, int, int));
-
-#define PAGE_INIT(P) { \
- ((uint16 *)(P))[0] = 0; \
- ((uint16 *)(P))[1] = hashp->BSIZE - 3 * sizeof(uint16); \
- ((uint16 *)(P))[2] = hashp->BSIZE; \
-}
-
-/* implement a new lseek using lseek that
- * writes zero's when extending a file
- * beyond the end.
- */
-long new_lseek(int fd, long offset, int origin)
-{
- long cur_pos=0;
- long end_pos=0;
- long seek_pos=0;
-
- if(origin == SEEK_CUR)
- {
- if(offset < 1)
- return(lseek(fd, offset, SEEK_CUR));
-
- cur_pos = lseek(fd, 0, SEEK_CUR);
-
- if(cur_pos < 0)
- return(cur_pos);
- }
-
- end_pos = lseek(fd, 0, SEEK_END);
- if(end_pos < 0)
- return(end_pos);
-
- if(origin == SEEK_SET)
- seek_pos = offset;
- else if(origin == SEEK_CUR)
- seek_pos = cur_pos + offset;
- else if(origin == SEEK_END)
- seek_pos = end_pos + offset;
- else
- {
- assert(0);
- return(-1);
- }
-
- /* the seek position desired is before the
- * end of the file. We don't need
- * to do anything special except the seek.
- */
- if(seek_pos <= end_pos)
- return(lseek(fd, seek_pos, SEEK_SET));
-
- /* the seek position is beyond the end of the
- * file. Write zero's to the end.
- *
- * we are already at the end of the file so
- * we just need to "write()" zeros for the
- * difference between seek_pos-end_pos and
- * then seek to the position to finish
- * the call
- */
- {
- char buffer[1024];
- long len = seek_pos-end_pos;
- memset(&buffer, 0, 1024);
- while(len > 0)
- {
- write(fd, (char*)&buffer, (size_t)(1024 > len ? len : 1024));
- len -= 1024;
- }
- return(lseek(fd, seek_pos, SEEK_SET));
- }
-
-}
-
-/*
- * This is called AFTER we have verified that there is room on the page for
- * the pair (PAIRFITS has returned true) so we go right ahead and start moving
- * stuff on.
- */
-static void
-putpair(char *p, const DBT *key, DBT * val)
-{
- register uint16 *bp, n, off;
-
- bp = (uint16 *)p;
-
- /* Enter the key first. */
- n = bp[0];
-
- off = OFFSET(bp) - key->size;
- memmove(p + off, key->data, key->size);
- bp[++n] = off;
-
- /* Now the data. */
- off -= val->size;
- memmove(p + off, val->data, val->size);
- bp[++n] = off;
-
- /* Adjust page info. */
- bp[0] = n;
- bp[n + 1] = off - ((n + 3) * sizeof(uint16));
- bp[n + 2] = off;
-}
-
-/*
- * Returns:
- * 0 OK
- * -1 error
- */
-extern int
-__delpair(HTAB *hashp, BUFHEAD *bufp, int ndx)
-{
- register uint16 *bp, newoff;
- register int n;
- uint16 pairlen;
-
- bp = (uint16 *)bufp->page;
- n = bp[0];
-
- if (bp[ndx + 1] < REAL_KEY)
- return (__big_delete(hashp, bufp));
- if (ndx != 1)
- newoff = bp[ndx - 1];
- else
- newoff = hashp->BSIZE;
- pairlen = newoff - bp[ndx + 1];
-
- if (ndx != (n - 1)) {
- /* Hard Case -- need to shuffle keys */
- register int i;
- register char *src = bufp->page + (int)OFFSET(bp);
- uint32 dst_offset = (uint32)OFFSET(bp) + (uint32)pairlen;
- register char *dst = bufp->page + dst_offset;
- uint32 length = bp[ndx + 1] - OFFSET(bp);
-
- /*
- * +-----------+XXX+---------+XXX+---------+---------> +infinity
- * | | | |
- * 0 src_offset dst_offset BSIZE
- *
- * Dst_offset is > src_offset, so if src_offset were bad, dst_offset
- * would be too, therefore we check only dst_offset.
- *
- * If dst_offset is >= BSIZE, either OFFSET(bp), or pairlen, or both
- * is corrupted.
- *
- * Once we know dst_offset is < BSIZE, we can subtract it from BSIZE
- * to get an upper bound on length.
- */
- if(dst_offset > (uint32)hashp->BSIZE)
- return(DATABASE_CORRUPTED_ERROR);
-
- if(length > (uint32)(hashp->BSIZE - dst_offset))
- return(DATABASE_CORRUPTED_ERROR);
-
- memmove(dst, src, length);
-
- /* Now adjust the pointers */
- for (i = ndx + 2; i <= n; i += 2) {
- if (bp[i + 1] == OVFLPAGE) {
- bp[i - 2] = bp[i];
- bp[i - 1] = bp[i + 1];
- } else {
- bp[i - 2] = bp[i] + pairlen;
- bp[i - 1] = bp[i + 1] + pairlen;
- }
- }
- }
- /* Finally adjust the page data */
- bp[n] = OFFSET(bp) + pairlen;
- bp[n - 1] = bp[n + 1] + pairlen + 2 * sizeof(uint16);
- bp[0] = n - 2;
- hashp->NKEYS--;
-
- bufp->flags |= BUF_MOD;
- return (0);
-}
-/*
- * Returns:
- * 0 ==> OK
- * -1 ==> Error
- */
-extern int
-__split_page(HTAB *hashp, uint32 obucket, uint32 nbucket)
-{
- register BUFHEAD *new_bufp, *old_bufp;
- register uint16 *ino;
- register uint16 *tmp_uint16_array;
- register char *np;
- DBT key, val;
- uint16 n, ndx;
- int retval;
- uint16 copyto, diff, moved;
- size_t off;
- char *op;
-
- copyto = (uint16)hashp->BSIZE;
- off = (uint16)hashp->BSIZE;
- old_bufp = __get_buf(hashp, obucket, NULL, 0);
- if (old_bufp == NULL)
- return (-1);
- new_bufp = __get_buf(hashp, nbucket, NULL, 0);
- if (new_bufp == NULL)
- return (-1);
-
- old_bufp->flags |= (BUF_MOD | BUF_PIN);
- new_bufp->flags |= (BUF_MOD | BUF_PIN);
-
- ino = (uint16 *)(op = old_bufp->page);
- np = new_bufp->page;
-
- moved = 0;
-
- for (n = 1, ndx = 1; n < ino[0]; n += 2) {
- if (ino[n + 1] < REAL_KEY) {
- retval = ugly_split(hashp, obucket, old_bufp, new_bufp,
- (int)copyto, (int)moved);
- old_bufp->flags &= ~BUF_PIN;
- new_bufp->flags &= ~BUF_PIN;
- return (retval);
-
- }
- key.data = (uint8 *)op + ino[n];
-
- /* check here for ino[n] being greater than
- * off. If it is then the database has
- * been corrupted.
- */
- if(ino[n] > off)
- return(DATABASE_CORRUPTED_ERROR);
-
- key.size = off - ino[n];
-
-#ifdef DEBUG
- /* make sure the size is positive */
- assert(((int)key.size) > -1);
-#endif
-
- if (__call_hash(hashp, (char *)key.data, key.size) == obucket) {
- /* Don't switch page */
- diff = copyto - off;
- if (diff) {
- copyto = ino[n + 1] + diff;
- memmove(op + copyto, op + ino[n + 1],
- off - ino[n + 1]);
- ino[ndx] = copyto + ino[n] - ino[n + 1];
- ino[ndx + 1] = copyto;
- } else
- copyto = ino[n + 1];
- ndx += 2;
- } else {
- /* Switch page */
- val.data = (uint8 *)op + ino[n + 1];
- val.size = ino[n] - ino[n + 1];
-
- /* if the pair doesn't fit something is horribly
- * wrong. LJM
- */
- tmp_uint16_array = (uint16*)np;
- if(!PAIRFITS(tmp_uint16_array, &key, &val))
- return(DATABASE_CORRUPTED_ERROR);
-
- putpair(np, &key, &val);
- moved += 2;
- }
-
- off = ino[n + 1];
- }
-
- /* Now clean up the page */
- ino[0] -= moved;
- FREESPACE(ino) = copyto - sizeof(uint16) * (ino[0] + 3);
- OFFSET(ino) = copyto;
-
-#ifdef DEBUG3
- (void)fprintf(stderr, "split %d/%d\n",
- ((uint16 *)np)[0] / 2,
- ((uint16 *)op)[0] / 2);
-#endif
- /* unpin both pages */
- old_bufp->flags &= ~BUF_PIN;
- new_bufp->flags &= ~BUF_PIN;
- return (0);
-}
-
-/*
- * Called when we encounter an overflow or big key/data page during split
- * handling. This is special cased since we have to begin checking whether
- * the key/data pairs fit on their respective pages and because we may need
- * overflow pages for both the old and new pages.
- *
- * The first page might be a page with regular key/data pairs in which case
- * we have a regular overflow condition and just need to go on to the next
- * page or it might be a big key/data pair in which case we need to fix the
- * big key/data pair.
- *
- * Returns:
- * 0 ==> success
- * -1 ==> failure
- */
-
-/* the maximum number of loops we will allow UGLY split to chew
- * on before we assume the database is corrupted and throw it
- * away.
- */
-#define MAX_UGLY_SPLIT_LOOPS 10000
-
-static int
-ugly_split(HTAB *hashp, uint32 obucket, BUFHEAD *old_bufp,
- BUFHEAD *new_bufp,/* Same as __split_page. */ int copyto, int moved)
- /* int copyto; First byte on page which contains key/data values. */
- /* int moved; Number of pairs moved to new page. */
-{
- register BUFHEAD *bufp; /* Buffer header for ino */
- register uint16 *ino; /* Page keys come off of */
- register uint16 *np; /* New page */
- register uint16 *op; /* Page keys go on to if they aren't moving */
- uint32 loop_detection=0;
-
- BUFHEAD *last_bfp; /* Last buf header OVFL needing to be freed */
- DBT key, val;
- SPLIT_RETURN ret;
- uint16 n, off, ov_addr, scopyto;
- char *cino; /* Character value of ino */
- int status;
-
- bufp = old_bufp;
- ino = (uint16 *)old_bufp->page;
- np = (uint16 *)new_bufp->page;
- op = (uint16 *)old_bufp->page;
- last_bfp = NULL;
- scopyto = (uint16)copyto; /* ANSI */
-
- n = ino[0] - 1;
- while (n < ino[0]) {
-
-
- /* this function goes nuts sometimes and never returns.
- * I havent found the problem yet but I need a solution
- * so if we loop too often we assume a database curruption error
- * :LJM
- */
- loop_detection++;
-
- if(loop_detection > MAX_UGLY_SPLIT_LOOPS)
- return DATABASE_CORRUPTED_ERROR;
-
- if (ino[2] < REAL_KEY && ino[2] != OVFLPAGE) {
- if ((status = __big_split(hashp, old_bufp,
- new_bufp, bufp, bufp->addr, obucket, &ret)))
- return (status);
- old_bufp = ret.oldp;
- if (!old_bufp)
- return (-1);
- op = (uint16 *)old_bufp->page;
- new_bufp = ret.newp;
- if (!new_bufp)
- return (-1);
- np = (uint16 *)new_bufp->page;
- bufp = ret.nextp;
- if (!bufp)
- return (0);
- cino = (char *)bufp->page;
- ino = (uint16 *)cino;
- last_bfp = ret.nextp;
- } else if (ino[n + 1] == OVFLPAGE) {
- ov_addr = ino[n];
- /*
- * Fix up the old page -- the extra 2 are the fields
- * which contained the overflow information.
- */
- ino[0] -= (moved + 2);
- FREESPACE(ino) =
- scopyto - sizeof(uint16) * (ino[0] + 3);
- OFFSET(ino) = scopyto;
-
- bufp = __get_buf(hashp, ov_addr, bufp, 0);
- if (!bufp)
- return (-1);
-
- ino = (uint16 *)bufp->page;
- n = 1;
- scopyto = hashp->BSIZE;
- moved = 0;
-
- if (last_bfp)
- __free_ovflpage(hashp, last_bfp);
- last_bfp = bufp;
- }
- /* Move regular sized pairs of there are any */
- off = hashp->BSIZE;
- for (n = 1; (n < ino[0]) && (ino[n + 1] >= REAL_KEY); n += 2) {
- cino = (char *)ino;
- key.data = (uint8 *)cino + ino[n];
- key.size = off - ino[n];
- val.data = (uint8 *)cino + ino[n + 1];
- val.size = ino[n] - ino[n + 1];
- off = ino[n + 1];
-
- if (__call_hash(hashp, (char*)key.data, key.size) == obucket) {
- /* Keep on old page */
- if (PAIRFITS(op, (&key), (&val)))
- putpair((char *)op, &key, &val);
- else {
- old_bufp =
- __add_ovflpage(hashp, old_bufp);
- if (!old_bufp)
- return (-1);
- op = (uint16 *)old_bufp->page;
- putpair((char *)op, &key, &val);
- }
- old_bufp->flags |= BUF_MOD;
- } else {
- /* Move to new page */
- if (PAIRFITS(np, (&key), (&val)))
- putpair((char *)np, &key, &val);
- else {
- new_bufp =
- __add_ovflpage(hashp, new_bufp);
- if (!new_bufp)
- return (-1);
- np = (uint16 *)new_bufp->page;
- putpair((char *)np, &key, &val);
- }
- new_bufp->flags |= BUF_MOD;
- }
- }
- }
- if (last_bfp)
- __free_ovflpage(hashp, last_bfp);
- return (0);
-}
-
-/*
- * Add the given pair to the page
- *
- * Returns:
- * 0 ==> OK
- * 1 ==> failure
- */
-extern int
-__addel(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT * val)
-{
- register uint16 *bp, *sop;
- int do_expand;
-
- bp = (uint16 *)bufp->page;
- do_expand = 0;
- while (bp[0] && (bp[2] < REAL_KEY || bp[bp[0]] < REAL_KEY))
- /* Exception case */
- if (bp[2] == FULL_KEY_DATA && bp[0] == 2)
- /* This is the last page of a big key/data pair
- and we need to add another page */
- break;
- else if (bp[2] < REAL_KEY && bp[bp[0]] != OVFLPAGE) {
- bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
- if (!bufp)
- {
-#ifdef DEBUG
- assert(0);
-#endif
- return (-1);
- }
- bp = (uint16 *)bufp->page;
- } else
- /* Try to squeeze key on this page */
- if (FREESPACE(bp) > PAIRSIZE(key, val)) {
- {
- squeeze_key(bp, key, val);
-
- /* LJM: I added this because I think it was
- * left out on accident.
- * if this isn't incremented nkeys will not
- * be the actual number of keys in the db.
- */
- hashp->NKEYS++;
- return (0);
- }
- } else {
- bufp = __get_buf(hashp, bp[bp[0] - 1], bufp, 0);
- if (!bufp)
- {
-#ifdef DEBUG
- assert(0);
-#endif
- return (-1);
- }
- bp = (uint16 *)bufp->page;
- }
-
- if (PAIRFITS(bp, key, val))
- putpair(bufp->page, key, (DBT *)val);
- else {
- do_expand = 1;
- bufp = __add_ovflpage(hashp, bufp);
- if (!bufp)
- {
-#ifdef DEBUG
- assert(0);
-#endif
- return (-1);
- }
- sop = (uint16 *)bufp->page;
-
- if (PAIRFITS(sop, key, val))
- putpair((char *)sop, key, (DBT *)val);
- else
- if (__big_insert(hashp, bufp, key, val))
- {
-#ifdef DEBUG
- assert(0);
-#endif
- return (-1);
- }
- }
- bufp->flags |= BUF_MOD;
- /*
- * If the average number of keys per bucket exceeds the fill factor,
- * expand the table.
- */
- hashp->NKEYS++;
- if (do_expand ||
- (hashp->NKEYS / (hashp->MAX_BUCKET + 1) > hashp->FFACTOR))
- return (__expand_table(hashp));
- return (0);
-}
-
-/*
- *
- * Returns:
- * pointer on success
- * NULL on error
- */
-extern BUFHEAD *
-__add_ovflpage(HTAB *hashp, BUFHEAD *bufp)
-{
- register uint16 *sp;
- uint16 ndx, ovfl_num;
-#ifdef DEBUG1
- int tmp1, tmp2;
-#endif
- sp = (uint16 *)bufp->page;
-
- /* Check if we are dynamically determining the fill factor */
- if (hashp->FFACTOR == DEF_FFACTOR) {
- hashp->FFACTOR = sp[0] >> 1;
- if (hashp->FFACTOR < MIN_FFACTOR)
- hashp->FFACTOR = MIN_FFACTOR;
- }
- bufp->flags |= BUF_MOD;
- ovfl_num = overflow_page(hashp);
-#ifdef DEBUG1
- tmp1 = bufp->addr;
- tmp2 = bufp->ovfl ? bufp->ovfl->addr : 0;
-#endif
- if (!ovfl_num || !(bufp->ovfl = __get_buf(hashp, ovfl_num, bufp, 1)))
- return (NULL);
- bufp->ovfl->flags |= BUF_MOD;
-#ifdef DEBUG1
- (void)fprintf(stderr, "ADDOVFLPAGE: %d->ovfl was %d is now %d\n",
- tmp1, tmp2, bufp->ovfl->addr);
-#endif
- ndx = sp[0];
- /*
- * Since a pair is allocated on a page only if there's room to add
- * an overflow page, we know that the OVFL information will fit on
- * the page.
- */
- sp[ndx + 4] = OFFSET(sp);
- sp[ndx + 3] = FREESPACE(sp) - OVFLSIZE;
- sp[ndx + 1] = ovfl_num;
- sp[ndx + 2] = OVFLPAGE;
- sp[0] = ndx + 2;
-#ifdef HASH_STATISTICS
- hash_overflows++;
-#endif
- return (bufp->ovfl);
-}
-
-/*
- * Returns:
- * 0 indicates SUCCESS
- * -1 indicates FAILURE
- */
-extern int
-__get_page(HTAB *hashp,
- char * p,
- uint32 bucket,
- int is_bucket,
- int is_disk,
- int is_bitmap)
-{
- register int fd, page;
- size_t size;
- int rsize;
- uint16 *bp;
-
- fd = hashp->fp;
- size = hashp->BSIZE;
-
- if ((fd == -1) || !is_disk) {
- PAGE_INIT(p);
- return (0);
- }
- if (is_bucket)
- page = BUCKET_TO_PAGE(bucket);
- else
- page = OADDR_TO_PAGE(bucket);
- if ((MY_LSEEK(fd, (off_t)page << hashp->BSHIFT, SEEK_SET) == -1) ||
- ((rsize = read(fd, p, size)) == -1))
- return (-1);
-
- bp = (uint16 *)p;
- if (!rsize)
- bp[0] = 0; /* We hit the EOF, so initialize a new page */
- else
- if ((unsigned)rsize != size) {
- errno = EFTYPE;
- return (-1);
- }
-
- if (!is_bitmap && !bp[0]) {
- PAGE_INIT(p);
- } else {
-
-#ifdef DEBUG
- if(BYTE_ORDER == LITTLE_ENDIAN)
- {
- int is_little_endian;
- is_little_endian = BYTE_ORDER;
- }
- else if(BYTE_ORDER == BIG_ENDIAN)
- {
- int is_big_endian;
- is_big_endian = BYTE_ORDER;
- }
- else
- {
- assert(0);
- }
-#endif
-
- if (hashp->LORDER != BYTE_ORDER) {
- register int i, max;
-
- if (is_bitmap) {
- max = hashp->BSIZE >> 2; /* divide by 4 */
- for (i = 0; i < max; i++)
- M_32_SWAP(((int *)p)[i]);
- } else {
- M_16_SWAP(bp[0]);
- max = bp[0] + 2;
-
- /* bound the size of max by
- * the maximum number of entries
- * in the array
- */
- if((unsigned)max > (size / sizeof(uint16)))
- return(DATABASE_CORRUPTED_ERROR);
-
- /* do the byte order swap
- */
- for (i = 1; i <= max; i++)
- M_16_SWAP(bp[i]);
- }
- }
-
- /* check the validity of the page here
- * (after doing byte order swaping if necessary)
- */
- if(!is_bitmap && bp[0] != 0)
- {
- uint16 num_keys = bp[0];
- uint16 offset;
- uint16 i;
-
- /* bp[0] is supposed to be the number of
- * entries currently in the page. If
- * bp[0] is too large (larger than the whole
- * page) then the page is corrupted
- */
- if(bp[0] > (size / sizeof(uint16)))
- return(DATABASE_CORRUPTED_ERROR);
-
- /* bound free space */
- if(FREESPACE(bp) > size)
- return(DATABASE_CORRUPTED_ERROR);
-
- /* check each key and data offset to make
- * sure they are all within bounds they
- * should all be less than the previous
- * offset as well.
- */
- offset = size;
- for(i=1 ; i <= num_keys; i+=2)
- {
- /* ignore overflow pages etc. */
- if(bp[i+1] >= REAL_KEY)
- {
-
- if(bp[i] > offset || bp[i+1] > bp[i])
- return(DATABASE_CORRUPTED_ERROR);
-
- offset = bp[i+1];
- }
- else
- {
- /* there are no other valid keys after
- * seeing a non REAL_KEY
- */
- break;
- }
- }
- }
- }
- return (0);
-}
-
-/*
- * Write page p to disk
- *
- * Returns:
- * 0 ==> OK
- * -1 ==>failure
- */
-extern int
-__put_page(HTAB *hashp, char *p, uint32 bucket, int is_bucket, int is_bitmap)
-{
- register int fd, page;
- size_t size;
- int wsize;
- off_t offset;
-
- size = hashp->BSIZE;
- if ((hashp->fp == -1) && open_temp(hashp))
- return (-1);
- fd = hashp->fp;
-
- if (hashp->LORDER != BYTE_ORDER) {
- register int i;
- register int max;
-
- if (is_bitmap) {
- max = hashp->BSIZE >> 2; /* divide by 4 */
- for (i = 0; i < max; i++)
- M_32_SWAP(((int *)p)[i]);
- } else {
- max = ((uint16 *)p)[0] + 2;
-
- /* bound the size of max by
- * the maximum number of entries
- * in the array
- */
- if((unsigned)max > (size / sizeof(uint16)))
- return(DATABASE_CORRUPTED_ERROR);
-
- for (i = 0; i <= max; i++)
- M_16_SWAP(((uint16 *)p)[i]);
-
- }
- }
-
- if (is_bucket)
- page = BUCKET_TO_PAGE(bucket);
- else
- page = OADDR_TO_PAGE(bucket);
- offset = (off_t)page << hashp->BSHIFT;
- if ((MY_LSEEK(fd, offset, SEEK_SET) == -1) ||
- ((wsize = write(fd, p, size)) == -1))
- /* Errno is set */
- return (-1);
- if ((unsigned)wsize != size) {
- errno = EFTYPE;
- return (-1);
- }
-#if defined(_WIN32) || defined(_WINDOWS)
- if (offset + size > hashp->file_size) {
- hashp->updateEOF = 1;
- }
-#endif
- /* put the page back the way it was so that it isn't byteswapped
- * if it remains in memory - LJM
- */
- if (hashp->LORDER != BYTE_ORDER) {
- register int i;
- register int max;
-
- if (is_bitmap) {
- max = hashp->BSIZE >> 2; /* divide by 4 */
- for (i = 0; i < max; i++)
- M_32_SWAP(((int *)p)[i]);
- } else {
- uint16 *bp = (uint16 *)p;
-
- M_16_SWAP(bp[0]);
- max = bp[0] + 2;
-
- /* no need to bound the size if max again
- * since it was done already above
- */
-
- /* do the byte order re-swap
- */
- for (i = 1; i <= max; i++)
- M_16_SWAP(bp[i]);
- }
- }
-
- return (0);
-}
-
-#define BYTE_MASK ((1 << INT_BYTE_SHIFT) -1)
-/*
- * Initialize a new bitmap page. Bitmap pages are left in memory
- * once they are read in.
- */
-extern int
-__ibitmap(HTAB *hashp, int pnum, int nbits, int ndx)
-{
- uint32 *ip;
- size_t clearbytes, clearints;
-
- if ((ip = (uint32 *)malloc((size_t)hashp->BSIZE)) == NULL)
- return (1);
- hashp->nmaps++;
- clearints = ((nbits - 1) >> INT_BYTE_SHIFT) + 1;
- clearbytes = clearints << INT_TO_BYTE;
- (void)memset((char *)ip, 0, clearbytes);
- (void)memset(((char *)ip) + clearbytes, 0xFF,
- hashp->BSIZE - clearbytes);
- ip[clearints - 1] = ALL_SET << (nbits & BYTE_MASK);
- SETBIT(ip, 0);
- hashp->BITMAPS[ndx] = (uint16)pnum;
- hashp->mapp[ndx] = ip;
- return (0);
-}
-
-static uint32
-first_free(uint32 map)
-{
- register uint32 i, mask;
-
- mask = 0x1;
- for (i = 0; i < BITS_PER_MAP; i++) {
- if (!(mask & map))
- return (i);
- mask = mask << 1;
- }
- return (i);
-}
-
-static uint16
-overflow_page(HTAB *hashp)
-{
- register uint32 *freep=NULL;
- register int max_free, offset, splitnum;
- uint16 addr;
- uint32 i;
- int bit, first_page, free_bit, free_page, in_use_bits, j;
-#ifdef DEBUG2
- int tmp1, tmp2;
-#endif
- splitnum = hashp->OVFL_POINT;
- max_free = hashp->SPARES[splitnum];
-
- free_page = (max_free - 1) >> (hashp->BSHIFT + BYTE_SHIFT);
- free_bit = (max_free - 1) & ((hashp->BSIZE << BYTE_SHIFT) - 1);
-
- /* Look through all the free maps to find the first free block */
- first_page = hashp->LAST_FREED >>(hashp->BSHIFT + BYTE_SHIFT);
- for ( i = first_page; i <= (unsigned)free_page; i++ ) {
- if (!(freep = (uint32 *)hashp->mapp[i]) &&
- !(freep = fetch_bitmap(hashp, i)))
- return (0);
- if (i == (unsigned)free_page)
- in_use_bits = free_bit;
- else
- in_use_bits = (hashp->BSIZE << BYTE_SHIFT) - 1;
-
- if (i == (unsigned)first_page) {
- bit = hashp->LAST_FREED &
- ((hashp->BSIZE << BYTE_SHIFT) - 1);
- j = bit / BITS_PER_MAP;
- bit = bit & ~(BITS_PER_MAP - 1);
- } else {
- bit = 0;
- j = 0;
- }
- for (; bit <= in_use_bits; j++, bit += BITS_PER_MAP)
- if (freep[j] != ALL_SET)
- goto found;
- }
-
- /* No Free Page Found */
- hashp->LAST_FREED = hashp->SPARES[splitnum];
- hashp->SPARES[splitnum]++;
- offset = hashp->SPARES[splitnum] -
- (splitnum ? hashp->SPARES[splitnum - 1] : 0);
-
-#define OVMSG "HASH: Out of overflow pages. Increase page size\n"
- if (offset > SPLITMASK) {
- if (++splitnum >= NCACHED) {
-#ifndef macintosh
- (void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
-#endif
- return (0);
- }
- hashp->OVFL_POINT = splitnum;
- hashp->SPARES[splitnum] = hashp->SPARES[splitnum-1];
- hashp->SPARES[splitnum-1]--;
- offset = 1;
- }
-
- /* Check if we need to allocate a new bitmap page */
- if (free_bit == (hashp->BSIZE << BYTE_SHIFT) - 1) {
- free_page++;
- if (free_page >= NCACHED) {
-#ifndef macintosh
- (void)write(STDERR_FILENO, OVMSG, sizeof(OVMSG) - 1);
-#endif
- return (0);
- }
- /*
- * This is tricky. The 1 indicates that you want the new page
- * allocated with 1 clear bit. Actually, you are going to
- * allocate 2 pages from this map. The first is going to be
- * the map page, the second is the overflow page we were
- * looking for. The init_bitmap routine automatically, sets
- * the first bit of itself to indicate that the bitmap itself
- * is in use. We would explicitly set the second bit, but
- * don't have to if we tell init_bitmap not to leave it clear
- * in the first place.
- */
- if (__ibitmap(hashp,
- (int)OADDR_OF(splitnum, offset), 1, free_page))
- return (0);
- hashp->SPARES[splitnum]++;
-#ifdef DEBUG2
- free_bit = 2;
-#endif
- offset++;
- if (offset > SPLITMASK) {
- if (++splitnum >= NCACHED) {
-#ifndef macintosh
- (void)write(STDERR_FILENO, OVMSG,
- sizeof(OVMSG) - 1);
-#endif
- return (0);
- }
- hashp->OVFL_POINT = splitnum;
- hashp->SPARES[splitnum] = hashp->SPARES[splitnum-1];
- hashp->SPARES[splitnum-1]--;
- offset = 0;
- }
- } else {
- /*
- * Free_bit addresses the last used bit. Bump it to address
- * the first available bit.
- */
- free_bit++;
- SETBIT(freep, free_bit);
- }
-
- /* Calculate address of the new overflow page */
- addr = OADDR_OF(splitnum, offset);
-#ifdef DEBUG2
- (void)fprintf(stderr, "OVERFLOW_PAGE: ADDR: %d BIT: %d PAGE %d\n",
- addr, free_bit, free_page);
-#endif
- return (addr);
-
-found:
- bit = bit + first_free(freep[j]);
- SETBIT(freep, bit);
-#ifdef DEBUG2
- tmp1 = bit;
- tmp2 = i;
-#endif
- /*
- * Bits are addressed starting with 0, but overflow pages are addressed
- * beginning at 1. Bit is a bit addressnumber, so we need to increment
- * it to convert it to a page number.
- */
- bit = 1 + bit + (i * (hashp->BSIZE << BYTE_SHIFT));
- if (bit >= hashp->LAST_FREED)
- hashp->LAST_FREED = bit - 1;
-
- /* Calculate the split number for this page */
- for (i = 0; (i < (unsigned)splitnum) && (bit > hashp->SPARES[i]); i++) {}
- offset = (i ? bit - hashp->SPARES[i - 1] : bit);
- if (offset >= SPLITMASK)
- return (0); /* Out of overflow pages */
- addr = OADDR_OF(i, offset);
-#ifdef DEBUG2
- (void)fprintf(stderr, "OVERFLOW_PAGE: ADDR: %d BIT: %d PAGE %d\n",
- addr, tmp1, tmp2);
-#endif
-
- /* Allocate and return the overflow page */
- return (addr);
-}
-
-/*
- * Mark this overflow page as free.
- */
-extern void
-__free_ovflpage(HTAB *hashp, BUFHEAD *obufp)
-{
- uint16 addr;
- uint32 *freep;
- uint32 bit_address, free_page, free_bit;
- uint16 ndx;
-
- if(!obufp || !obufp->addr)
- return;
-
- addr = obufp->addr;
-#ifdef DEBUG1
- (void)fprintf(stderr, "Freeing %d\n", addr);
-#endif
- ndx = (((uint16)addr) >> SPLITSHIFT);
- bit_address =
- (ndx ? hashp->SPARES[ndx - 1] : 0) + (addr & SPLITMASK) - 1;
- if (bit_address < (uint32)hashp->LAST_FREED)
- hashp->LAST_FREED = bit_address;
- free_page = (bit_address >> (hashp->BSHIFT + BYTE_SHIFT));
- free_bit = bit_address & ((hashp->BSIZE << BYTE_SHIFT) - 1);
-
- if (!(freep = hashp->mapp[free_page]))
- freep = fetch_bitmap(hashp, free_page);
-
-#ifdef DEBUG
- /*
- * This had better never happen. It means we tried to read a bitmap
- * that has already had overflow pages allocated off it, and we
- * failed to read it from the file.
- */
- if (!freep)
- {
- assert(0);
- return;
- }
-#endif
- CLRBIT(freep, free_bit);
-#ifdef DEBUG2
- (void)fprintf(stderr, "FREE_OVFLPAGE: ADDR: %d BIT: %d PAGE %d\n",
- obufp->addr, free_bit, free_page);
-#endif
- __reclaim_buf(hashp, obufp);
-}
-
-/*
- * Returns:
- * 0 success
- * -1 failure
- */
-static int
-open_temp(HTAB *hashp)
-{
-#ifdef XP_OS2
- hashp->fp = mkstemp(NULL);
-#else
-#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
- sigset_t set, oset;
-#endif
-#if !defined(macintosh)
- char * tmpdir;
- size_t len;
- char last;
-#endif
- static const char namestr[] = "/_hashXXXXXX";
- char filename[1024];
-
-#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
- /* Block signals; make sure file goes away at process exit. */
- (void)sigfillset(&set);
- (void)sigprocmask(SIG_BLOCK, &set, &oset);
-#endif
-
- filename[0] = 0;
-#if defined(macintosh)
- strcat(filename, namestr + 1);
-#else
- tmpdir = getenv("TMP");
- if (!tmpdir)
- tmpdir = getenv("TMPDIR");
- if (!tmpdir)
- tmpdir = getenv("TEMP");
- if (!tmpdir)
- tmpdir = ".";
- len = strlen(tmpdir);
- if (len && len < (sizeof filename - sizeof namestr)) {
- strcpy(filename, tmpdir);
- }
- len = strlen(filename);
- last = tmpdir[len - 1];
- strcat(filename, (last == '/' || last == '\\') ? namestr + 1 : namestr);
-#endif
-
-#if defined(_WIN32) || defined(_WINDOWS)
- if ((hashp->fp = mkstempflags(filename, _O_BINARY|_O_TEMPORARY)) != -1) {
- if (hashp->filename) {
- free(hashp->filename);
- }
- hashp->filename = strdup(filename);
- hashp->is_temp = 1;
- }
-#else
- if ((hashp->fp = mkstemp(filename)) != -1) {
- (void)unlink(filename);
-#if !defined(macintosh)
- (void)fcntl(hashp->fp, F_SETFD, 1);
-#endif
- }
-#endif
-
-#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
- (void)sigprocmask(SIG_SETMASK, &oset, (sigset_t *)NULL);
-#endif
-#endif /* !OS2 */
- return (hashp->fp != -1 ? 0 : -1);
-}
-
-/*
- * We have to know that the key will fit, but the last entry on the page is
- * an overflow pair, so we need to shift things.
- */
-static void
-squeeze_key(uint16 *sp, const DBT * key, const DBT * val)
-{
- register char *p;
- uint16 free_space, n, off, pageno;
-
- p = (char *)sp;
- n = sp[0];
- free_space = FREESPACE(sp);
- off = OFFSET(sp);
-
- pageno = sp[n - 1];
- off -= key->size;
- sp[n - 1] = off;
- memmove(p + off, key->data, key->size);
- off -= val->size;
- sp[n] = off;
- memmove(p + off, val->data, val->size);
- sp[0] = n + 2;
- sp[n + 1] = pageno;
- sp[n + 2] = OVFLPAGE;
- FREESPACE(sp) = free_space - PAIRSIZE(key, val);
- OFFSET(sp) = off;
-}
-
-static uint32 *
-fetch_bitmap(HTAB *hashp, uint32 ndx)
-{
- if (ndx >= (unsigned)hashp->nmaps)
- return (NULL);
- if ((hashp->mapp[ndx] = (uint32 *)malloc((size_t)hashp->BSIZE)) == NULL)
- return (NULL);
- if (__get_page(hashp,
- (char *)hashp->mapp[ndx], hashp->BITMAPS[ndx], 0, 1, 1)) {
- free(hashp->mapp[ndx]);
- hashp->mapp[ndx] = NULL; /* NEW: 9-11-95 */
- return (NULL);
- }
- return (hashp->mapp[ndx]);
-}
-
-#ifdef DEBUG4
-int
-print_chain(int addr)
-{
- BUFHEAD *bufp;
- short *bp, oaddr;
-
- (void)fprintf(stderr, "%d ", addr);
- bufp = __get_buf(hashp, addr, NULL, 0);
- bp = (short *)bufp->page;
- while (bp[0] && ((bp[bp[0]] == OVFLPAGE) ||
- ((bp[0] > 2) && bp[2] < REAL_KEY))) {
- oaddr = bp[bp[0] - 1];
- (void)fprintf(stderr, "%d ", (int)oaddr);
- bufp = __get_buf(hashp, (int)oaddr, bufp, 0);
- bp = (short *)bufp->page;
- }
- (void)fprintf(stderr, "\n");
-}
-#endif
diff --git a/dbm/src/hash.c b/dbm/src/hash.c
deleted file mode 100644
index c7b1d18133..0000000000
--- a/dbm/src/hash.c
+++ /dev/null
@@ -1,1175 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993, 1994
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Margo Seltzer.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash.c 8.9 (Berkeley) 6/16/94";
-#endif /* LIBC_SCCS and not lint */
-
-#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
-#include
-#endif
-
-#if !defined(macintosh)
-#ifdef XP_OS2
-#include
-#endif
-#include
-#endif
-
-#if defined(macintosh)
-#include
-#include
-#endif
-
-#include
-#include
-#include
-#include
-#include
-
-#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
-#include
-#endif
-#if defined(_WIN32) || defined(_WINDOWS)
-#include
-#endif
-
-#include
-
-#include "mcom_db.h"
-#include "hash.h"
-#include "page.h"
-
-/*
-#include "extern.h"
-*/
-static int alloc_segs __P((HTAB *, int));
-static int flush_meta __P((HTAB *));
-static int hash_access __P((HTAB *, ACTION, DBT *, DBT *));
-static int hash_close __P((DB *));
-static int hash_delete __P((const DB *, const DBT *, uint));
-static int hash_fd __P((const DB *));
-static int hash_get __P((const DB *, const DBT *, DBT *, uint));
-static int hash_put __P((const DB *, DBT *, const DBT *, uint));
-static void *hash_realloc __P((SEGMENT **, size_t, size_t));
-static int hash_seq __P((const DB *, DBT *, DBT *, uint));
-static int hash_sync __P((const DB *, uint));
-static int hdestroy __P((HTAB *));
-static HTAB *init_hash __P((HTAB *, const char *, HASHINFO *));
-static int init_htab __P((HTAB *, int));
-#if BYTE_ORDER == LITTLE_ENDIAN
-static void swap_header __P((HTAB *));
-static void swap_header_copy __P((HASHHDR *, HASHHDR *));
-#endif
-
-/* Fast arithmetic, relying on powers of 2, */
-#define MOD(x, y) ((x) & ((y) - 1))
-
-#define RETURN_ERROR(ERR, LOC) { save_errno = ERR; goto LOC; }
-
-/* Return values */
-#define SUCCESS (0)
-#define DBM_ERROR (-1)
-#define ABNORMAL (1)
-
-#ifdef HASH_STATISTICS
-int hash_accesses, hash_collisions, hash_expansions, hash_overflows;
-#endif
-
-/* A new Lou (montulli@mozilla.com) routine.
- *
- * The database is screwed.
- *
- * This closes the file, flushing buffers as appropriate.
- */
-static void
-__remove_database(DB *dbp)
-{
- HTAB *hashp = (HTAB *)dbp->internal;
-
- assert(0);
-
- if (!hashp)
- return;
- hdestroy(hashp);
- dbp->internal = NULL;
-}
-
-/************************** INTERFACE ROUTINES ***************************/
-/* OPEN/CLOSE */
-
-
-extern DB *
-__hash_open(const char *file, int flags, int mode, const HASHINFO *info, int dflags)
-{
- HTAB *hashp=NULL;
- struct stat statbuf;
- DB *dbp;
- int bpages, hdrsize, new_table, nsegs, save_errno;
-
- if ((flags & O_ACCMODE) == O_WRONLY) {
- errno = EINVAL;
- return NULL;
- }
-
- /* zero the statbuffer so that
- * we can check it for a non-zero
- * date to see if stat succeeded
- */
- memset(&statbuf, 0, sizeof(struct stat));
-
- if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB)))) {
- errno = ENOMEM;
- return NULL;
- }
- hashp->fp = NO_FILE;
- if(file)
- hashp->filename = strdup(file);
-
- /*
- * Even if user wants write only, we need to be able to read
- * the actual file, so we need to open it read/write. But, the
- * field in the hashp structure needs to be accurate so that
- * we can check accesses.
- */
- hashp->flags = flags;
-
- new_table = 0;
- if (!file || (flags & O_TRUNC) || (stat(file, &statbuf) && (errno == ENOENT)))
- {
- if (errno == ENOENT)
- errno = 0; /* Just in case someone looks at errno */
- new_table = 1;
- }
- else if(statbuf.st_mtime && statbuf.st_size == 0)
- {
- /* check for a zero length file and delete it
- * if it exists
- */
- new_table = 1;
- }
- hashp->file_size = statbuf.st_size;
-
- if (file) {
-#if defined(_WIN32) || defined(_WINDOWS) || defined (macintosh) || defined(XP_OS2)
- if ((hashp->fp = DBFILE_OPEN(file, flags | O_BINARY, mode)) == -1)
- RETURN_ERROR(errno, error1);
-#else
- if ((hashp->fp = open(file, flags, mode)) == -1)
- RETURN_ERROR(errno, error1);
- (void)fcntl(hashp->fp, F_SETFD, 1);
-#endif
- }
- if (new_table) {
- if (!init_hash(hashp, file, (HASHINFO *)info))
- RETURN_ERROR(errno, error1);
- } else {
- /* Table already exists */
- if (info && info->hash)
- hashp->hash = info->hash;
- else
- hashp->hash = __default_hash;
-
- hdrsize = read(hashp->fp, (char *)&hashp->hdr, sizeof(HASHHDR));
- if (hdrsize == -1)
- RETURN_ERROR(errno, error1);
- if (hdrsize != sizeof(HASHHDR))
- RETURN_ERROR(EFTYPE, error1);
-#if BYTE_ORDER == LITTLE_ENDIAN
- swap_header(hashp);
-#endif
- /* Verify file type, versions and hash function */
- if (hashp->MAGIC != HASHMAGIC)
- RETURN_ERROR(EFTYPE, error1);
-#define OLDHASHVERSION 1
- if (hashp->VERSION != HASHVERSION &&
- hashp->VERSION != OLDHASHVERSION)
- RETURN_ERROR(EFTYPE, error1);
- if (hashp->hash(CHARKEY, sizeof(CHARKEY)) != hashp->H_CHARKEY)
- RETURN_ERROR(EFTYPE, error1);
- if (hashp->NKEYS < 0) /* Old bad database. */
- RETURN_ERROR(EFTYPE, error1);
-
- /*
- * Figure out how many segments we need. Max_Bucket is the
- * maximum bucket number, so the number of buckets is
- * max_bucket + 1.
- */
- nsegs = (hashp->MAX_BUCKET + 1 + hashp->SGSIZE - 1) /
- hashp->SGSIZE;
- hashp->nsegs = 0;
- if (alloc_segs(hashp, nsegs))
- /* If alloc_segs fails, errno will have been set. */
- RETURN_ERROR(errno, error1);
- /* Read in bitmaps */
- bpages = (hashp->SPARES[hashp->OVFL_POINT] +
- (hashp->BSIZE << BYTE_SHIFT) - 1) >>
- (hashp->BSHIFT + BYTE_SHIFT);
-
- hashp->nmaps = bpages;
- (void)memset(&hashp->mapp[0], 0, bpages * sizeof(uint32 *));
- }
-
- /* Initialize Buffer Manager */
- if (info && info->cachesize)
- __buf_init(hashp, (int32) info->cachesize);
- else
- __buf_init(hashp, DEF_BUFSIZE);
-
- hashp->new_file = new_table;
-#ifdef macintosh
- hashp->save_file = file && !(hashp->flags & O_RDONLY);
-#else
- hashp->save_file = file && (hashp->flags & O_RDWR);
-#endif
- hashp->cbucket = -1;
- if (!(dbp = (DB *)malloc(sizeof(DB)))) {
- RETURN_ERROR(ENOMEM, error1);
- }
- dbp->internal = hashp;
- dbp->close = hash_close;
- dbp->del = hash_delete;
- dbp->fd = hash_fd;
- dbp->get = hash_get;
- dbp->put = hash_put;
- dbp->seq = hash_seq;
- dbp->sync = hash_sync;
- dbp->type = DB_HASH;
-
-#ifdef HASH_STATISTICS
- hash_overflows = hash_accesses = hash_collisions = hash_expansions = 0;
-#endif
- return (dbp);
-
-error1:
- hdestroy(hashp);
- errno = save_errno;
- return (NULL);
-}
-
-static int
-hash_close(DB *dbp)
-{
- HTAB *hashp;
- int retval;
-
- if (!dbp)
- return (DBM_ERROR);
-
- hashp = (HTAB *)dbp->internal;
- if(!hashp)
- return (DBM_ERROR);
-
- retval = hdestroy(hashp);
- free(dbp);
- return (retval);
-}
-
-static int hash_fd(const DB *dbp)
-{
- HTAB *hashp;
-
- if (!dbp)
- return (DBM_ERROR);
-
- hashp = (HTAB *)dbp->internal;
- if(!hashp)
- return (DBM_ERROR);
-
- if (hashp->fp == -1) {
- errno = ENOENT;
- return (-1);
- }
- return (hashp->fp);
-}
-
-/************************** LOCAL CREATION ROUTINES **********************/
-static HTAB *
-init_hash(HTAB *hashp, const char *file, HASHINFO *info)
-{
- struct stat statbuf;
- int nelem;
-
- nelem = 1;
- hashp->NKEYS = 0;
- hashp->LORDER = BYTE_ORDER;
- hashp->BSIZE = DEF_BUCKET_SIZE;
- hashp->BSHIFT = DEF_BUCKET_SHIFT;
- hashp->SGSIZE = DEF_SEGSIZE;
- hashp->SSHIFT = DEF_SEGSIZE_SHIFT;
- hashp->DSIZE = DEF_DIRSIZE;
- hashp->FFACTOR = DEF_FFACTOR;
- hashp->hash = __default_hash;
- memset(hashp->SPARES, 0, sizeof(hashp->SPARES));
- memset(hashp->BITMAPS, 0, sizeof (hashp->BITMAPS));
-
- /* Fix bucket size to be optimal for file system */
- if (file != NULL) {
- if (stat(file, &statbuf))
- return (NULL);
-
-#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh) && !defined(XP_OS2)
-#if defined(__QNX__) && !defined(__QNXNTO__)
- hashp->BSIZE = 512; /* preferred blk size on qnx4 */
-#else
- hashp->BSIZE = statbuf.st_blksize;
-#endif
-
- /* new code added by Lou to reduce block
- * size down below MAX_BSIZE
- */
- if (hashp->BSIZE > MAX_BSIZE)
- hashp->BSIZE = MAX_BSIZE;
-#endif
- hashp->BSHIFT = __log2((uint32)hashp->BSIZE);
- }
-
- if (info) {
- if (info->bsize) {
- /* Round pagesize up to power of 2 */
- hashp->BSHIFT = __log2(info->bsize);
- hashp->BSIZE = 1 << hashp->BSHIFT;
- if (hashp->BSIZE > MAX_BSIZE) {
- errno = EINVAL;
- return (NULL);
- }
- }
- if (info->ffactor)
- hashp->FFACTOR = info->ffactor;
- if (info->hash)
- hashp->hash = info->hash;
- if (info->nelem)
- nelem = info->nelem;
- if (info->lorder) {
- if (info->lorder != BIG_ENDIAN &&
- info->lorder != LITTLE_ENDIAN) {
- errno = EINVAL;
- return (NULL);
- }
- hashp->LORDER = info->lorder;
- }
- }
- /* init_htab sets errno if it fails */
- if (init_htab(hashp, nelem))
- return (NULL);
- else
- return (hashp);
-}
-/*
- * This calls alloc_segs which may run out of memory. Alloc_segs will
- * set errno, so we just pass the error information along.
- *
- * Returns 0 on No Error
- */
-static int
-init_htab(HTAB *hashp, int nelem)
-{
- register int nbuckets, nsegs;
- int l2;
-
- /*
- * Divide number of elements by the fill factor and determine a
- * desired number of buckets. Allocate space for the next greater
- * power of two number of buckets.
- */
- nelem = (nelem - 1) / hashp->FFACTOR + 1;
-
- l2 = __log2((uint32)PR_MAX(nelem, 2));
- nbuckets = 1 << l2;
-
- hashp->SPARES[l2] = l2 + 1;
- hashp->SPARES[l2 + 1] = l2 + 1;
- hashp->OVFL_POINT = l2;
- hashp->LAST_FREED = 2;
-
- /* First bitmap page is at: splitpoint l2 page offset 1 */
- if (__ibitmap(hashp, (int)OADDR_OF(l2, 1), l2 + 1, 0))
- return (-1);
-
- hashp->MAX_BUCKET = hashp->LOW_MASK = nbuckets - 1;
- hashp->HIGH_MASK = (nbuckets << 1) - 1;
- hashp->HDRPAGES = ((PR_MAX(sizeof(HASHHDR), MINHDRSIZE) - 1) >>
- hashp->BSHIFT) + 1;
-
- nsegs = (nbuckets - 1) / hashp->SGSIZE + 1;
- nsegs = 1 << __log2((uint32)nsegs);
-
- if (nsegs > hashp->DSIZE)
- hashp->DSIZE = nsegs;
- return (alloc_segs(hashp, nsegs));
-}
-
-/********************** DESTROY/CLOSE ROUTINES ************************/
-
-/*
- * Flushes any changes to the file if necessary and destroys the hashp
- * structure, freeing all allocated space.
- */
-static int
-hdestroy(HTAB *hashp)
-{
- int i, save_errno;
-
- save_errno = 0;
-
-#ifdef HASH_STATISTICS
- (void)fprintf(stderr, "hdestroy: accesses %ld collisions %ld\n",
- hash_accesses, hash_collisions);
- (void)fprintf(stderr, "hdestroy: expansions %ld\n",
- hash_expansions);
- (void)fprintf(stderr, "hdestroy: overflows %ld\n",
- hash_overflows);
- (void)fprintf(stderr, "keys %ld maxp %d segmentcount %d\n",
- hashp->NKEYS, hashp->MAX_BUCKET, hashp->nsegs);
-
- for (i = 0; i < NCACHED; i++)
- (void)fprintf(stderr,
- "spares[%d] = %d\n", i, hashp->SPARES[i]);
-#endif
- /*
- * Call on buffer manager to free buffers, and if required,
- * write them to disk.
- */
- if (__buf_free(hashp, 1, hashp->save_file))
- save_errno = errno;
- if (hashp->dir) {
- free(*hashp->dir); /* Free initial segments */
- /* Free extra segments */
- while (hashp->exsegs--)
- free(hashp->dir[--hashp->nsegs]);
- free(hashp->dir);
- }
- if (flush_meta(hashp) && !save_errno)
- save_errno = errno;
- /* Free Bigmaps */
- for (i = 0; i < hashp->nmaps; i++)
- if (hashp->mapp[i])
- free(hashp->mapp[i]);
-
- if (hashp->fp != -1)
- (void)close(hashp->fp);
-
- if(hashp->filename) {
-#if defined(_WIN32) || defined(_WINDOWS) || defined(XP_OS2)
- if (hashp->is_temp)
- (void)unlink(hashp->filename);
-#endif
- free(hashp->filename);
- }
- if (hashp->tmp_buf)
- free(hashp->tmp_buf);
- if (hashp->tmp_key)
- free(hashp->tmp_key);
- free(hashp);
- if (save_errno) {
- errno = save_errno;
- return (DBM_ERROR);
- }
- return (SUCCESS);
-}
-
-#if defined(_WIN32) || defined(_WINDOWS)
-/*
- * Close and reopen file to force file length update on windows.
- *
- * Returns:
- * 0 == OK
- * -1 DBM_ERROR
- */
-static int
-update_EOF(HTAB *hashp)
-{
-#if defined(DBM_REOPEN_ON_FLUSH)
- char * file = hashp->filename;
- off_t file_size;
- int flags;
- int mode = -1;
- struct stat statbuf;
-
- memset(&statbuf, 0, sizeof statbuf);
-
- /* make sure we won't lose the file by closing it. */
- if (!file || (stat(file, &statbuf) && (errno == ENOENT))) {
- /* pretend we did it. */
- return 0;
- }
-
- (void)close(hashp->fp);
-
- flags = hashp->flags & ~(O_TRUNC | O_CREAT | O_EXCL);
-
- if ((hashp->fp = DBFILE_OPEN(file, flags | O_BINARY, mode)) == -1)
- return -1;
- file_size = lseek(hashp->fp, (off_t)0, SEEK_END);
- if (file_size == -1)
- return -1;
- hashp->file_size = file_size;
- return 0;
-#else
- int fd = hashp->fp;
- off_t file_size = lseek(fd, (off_t)0, SEEK_END);
- HANDLE handle = (HANDLE)_get_osfhandle(fd);
- BOOL cool = FlushFileBuffers(handle);
-#ifdef DEBUG3
- if (!cool) {
- DWORD err = GetLastError();
- (void)fprintf(stderr,
- "FlushFileBuffers failed, last error = %d, 0x%08x\n",
- err, err);
- }
-#endif
- if (file_size == -1)
- return -1;
- hashp->file_size = file_size;
- return cool ? 0 : -1;
-#endif
-}
-#endif
-
-/*
- * Write modified pages to disk
- *
- * Returns:
- * 0 == OK
- * -1 DBM_ERROR
- */
-static int
-hash_sync(const DB *dbp, uint flags)
-{
- HTAB *hashp;
-
- if (flags != 0) {
- errno = EINVAL;
- return (DBM_ERROR);
- }
-
- if (!dbp)
- return (DBM_ERROR);
-
- hashp = (HTAB *)dbp->internal;
- if(!hashp)
- return (DBM_ERROR);
-
- if (!hashp->save_file)
- return (0);
- if (__buf_free(hashp, 0, 1) || flush_meta(hashp))
- return (DBM_ERROR);
-#if defined(_WIN32) || defined(_WINDOWS)
- if (hashp->updateEOF && hashp->filename && !hashp->is_temp) {
- int status = update_EOF(hashp);
- hashp->updateEOF = 0;
- if (status)
- return status;
- }
-#endif
- hashp->new_file = 0;
- return (0);
-}
-
-/*
- * Returns:
- * 0 == OK
- * -1 indicates that errno should be set
- */
-static int
-flush_meta(HTAB *hashp)
-{
- HASHHDR *whdrp;
-#if BYTE_ORDER == LITTLE_ENDIAN
- HASHHDR whdr;
-#endif
- int fp, i, wsize;
-
- if (!hashp->save_file)
- return (0);
- hashp->MAGIC = HASHMAGIC;
- hashp->VERSION = HASHVERSION;
- hashp->H_CHARKEY = hashp->hash(CHARKEY, sizeof(CHARKEY));
-
- fp = hashp->fp;
- whdrp = &hashp->hdr;
-#if BYTE_ORDER == LITTLE_ENDIAN
- whdrp = &whdr;
- swap_header_copy(&hashp->hdr, whdrp);
-#endif
- if ((lseek(fp, (off_t)0, SEEK_SET) == -1) ||
- ((wsize = write(fp, (char*)whdrp, sizeof(HASHHDR))) == -1))
- return (-1);
- else
- if (wsize != sizeof(HASHHDR)) {
- errno = EFTYPE;
- hashp->dbmerrno = errno;
- return (-1);
- }
- for (i = 0; i < NCACHED; i++)
- if (hashp->mapp[i])
- if (__put_page(hashp, (char *)hashp->mapp[i],
- hashp->BITMAPS[i], 0, 1))
- return (-1);
- return (0);
-}
-
-/*******************************SEARCH ROUTINES *****************************/
-/*
- * All the access routines return
- *
- * Returns:
- * 0 on SUCCESS
- * 1 to indicate an external DBM_ERROR (i.e. key not found, etc)
- * -1 to indicate an internal DBM_ERROR (i.e. out of memory, etc)
- */
-static int
-hash_get(
- const DB *dbp,
- const DBT *key,
- DBT *data,
- uint flag)
-{
- HTAB *hashp;
- int rv;
-
- hashp = (HTAB *)dbp->internal;
- if (!hashp)
- return (DBM_ERROR);
-
- if (flag) {
- hashp->dbmerrno = errno = EINVAL;
- return (DBM_ERROR);
- }
-
- rv = hash_access(hashp, HASH_GET, (DBT *)key, data);
-
- if(rv == DATABASE_CORRUPTED_ERROR)
- {
-#if defined(unix) && defined(DEBUG)
- printf("\n\nDBM Database has been corrupted, tell Lou...\n\n");
-#endif
- __remove_database((DB *)dbp);
- }
-
- return(rv);
-}
-
-static int
-hash_put(
- const DB *dbp,
- DBT *key,
- const DBT *data,
- uint flag)
-{
- HTAB *hashp;
- int rv;
-
- hashp = (HTAB *)dbp->internal;
- if (!hashp)
- return (DBM_ERROR);
-
- if (flag && flag != R_NOOVERWRITE) {
- hashp->dbmerrno = errno = EINVAL;
- return (DBM_ERROR);
- }
- if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
- hashp->dbmerrno = errno = EPERM;
- return (DBM_ERROR);
- }
-
- rv = hash_access(hashp, flag == R_NOOVERWRITE ?
- HASH_PUTNEW : HASH_PUT, (DBT *)key, (DBT *)data);
-
- if(rv == DATABASE_CORRUPTED_ERROR)
- {
-#if defined(unix) && defined(DEBUG)
- printf("\n\nDBM Database has been corrupted, tell Lou...\n\n");
-#endif
- __remove_database((DB *)dbp);
- }
-
- return(rv);
-}
-
-static int
-hash_delete(
- const DB *dbp,
- const DBT *key,
- uint flag) /* Ignored */
-{
- HTAB *hashp;
- int rv;
-
- hashp = (HTAB *)dbp->internal;
- if (!hashp)
- return (DBM_ERROR);
-
- if (flag && flag != R_CURSOR) {
- hashp->dbmerrno = errno = EINVAL;
- return (DBM_ERROR);
- }
- if ((hashp->flags & O_ACCMODE) == O_RDONLY) {
- hashp->dbmerrno = errno = EPERM;
- return (DBM_ERROR);
- }
- rv = hash_access(hashp, HASH_DELETE, (DBT *)key, NULL);
-
- if(rv == DATABASE_CORRUPTED_ERROR)
- {
-#if defined(unix) && defined(DEBUG)
- printf("\n\nDBM Database has been corrupted, tell Lou...\n\n");
-#endif
- __remove_database((DB *)dbp);
- }
-
- return(rv);
-}
-
-#define MAX_OVERFLOW_HASH_ACCESS_LOOPS 2000
-/*
- * Assume that hashp has been set in wrapper routine.
- */
-static int
-hash_access(
- HTAB *hashp,
- ACTION action,
- DBT *key, DBT *val)
-{
- register BUFHEAD *rbufp;
- BUFHEAD *bufp, *save_bufp;
- register uint16 *bp;
- register long n, ndx, off;
- register size_t size;
- register char *kp;
- uint16 pageno;
- uint32 ovfl_loop_count=0;
- int32 last_overflow_page_no = -1;
-
-#ifdef HASH_STATISTICS
- hash_accesses++;
-#endif
-
- off = hashp->BSIZE;
- size = key->size;
- kp = (char *)key->data;
- rbufp = __get_buf(hashp, __call_hash(hashp, kp, size), NULL, 0);
- if (!rbufp)
- return (DATABASE_CORRUPTED_ERROR);
- save_bufp = rbufp;
-
- /* Pin the bucket chain */
- rbufp->flags |= BUF_PIN;
- for (bp = (uint16 *)rbufp->page, n = *bp++, ndx = 1; ndx < n;)
- {
-
- if (bp[1] >= REAL_KEY) {
- /* Real key/data pair */
- if (size == (unsigned long)(off - *bp) &&
- memcmp(kp, rbufp->page + *bp, size) == 0)
- goto found;
- off = bp[1];
-#ifdef HASH_STATISTICS
- hash_collisions++;
-#endif
- bp += 2;
- ndx += 2;
- } else if (bp[1] == OVFLPAGE) {
-
- /* database corruption: overflow loop detection */
- if(last_overflow_page_no == (int32)*bp)
- return (DATABASE_CORRUPTED_ERROR);
-
- last_overflow_page_no = *bp;
-
- rbufp = __get_buf(hashp, *bp, rbufp, 0);
- if (!rbufp) {
- save_bufp->flags &= ~BUF_PIN;
- return (DBM_ERROR);
- }
-
- ovfl_loop_count++;
- if(ovfl_loop_count > MAX_OVERFLOW_HASH_ACCESS_LOOPS)
- return (DATABASE_CORRUPTED_ERROR);
-
- /* FOR LOOP INIT */
- bp = (uint16 *)rbufp->page;
- n = *bp++;
- ndx = 1;
- off = hashp->BSIZE;
- } else if (bp[1] < REAL_KEY) {
- if ((ndx =
- __find_bigpair(hashp, rbufp, ndx, kp, (int)size)) > 0)
- goto found;
- if (ndx == -2) {
- bufp = rbufp;
- if (!(pageno =
- __find_last_page(hashp, &bufp))) {
- ndx = 0;
- rbufp = bufp;
- break; /* FOR */
- }
- rbufp = __get_buf(hashp, pageno, bufp, 0);
- if (!rbufp) {
- save_bufp->flags &= ~BUF_PIN;
- return (DBM_ERROR);
- }
- /* FOR LOOP INIT */
- bp = (uint16 *)rbufp->page;
- n = *bp++;
- ndx = 1;
- off = hashp->BSIZE;
- } else {
- save_bufp->flags &= ~BUF_PIN;
- return (DBM_ERROR);
-
- }
- }
- }
-
- /* Not found */
- switch (action) {
- case HASH_PUT:
- case HASH_PUTNEW:
- if (__addel(hashp, rbufp, key, val)) {
- save_bufp->flags &= ~BUF_PIN;
- return (DBM_ERROR);
- } else {
- save_bufp->flags &= ~BUF_PIN;
- return (SUCCESS);
- }
- case HASH_GET:
- case HASH_DELETE:
- default:
- save_bufp->flags &= ~BUF_PIN;
- return (ABNORMAL);
- }
-
-found:
- switch (action) {
- case HASH_PUTNEW:
- save_bufp->flags &= ~BUF_PIN;
- return (ABNORMAL);
- case HASH_GET:
- bp = (uint16 *)rbufp->page;
- if (bp[ndx + 1] < REAL_KEY) {
- if (__big_return(hashp, rbufp, ndx, val, 0))
- return (DBM_ERROR);
- } else {
- val->data = (uint8 *)rbufp->page + (int)bp[ndx + 1];
- val->size = bp[ndx] - bp[ndx + 1];
- }
- break;
- case HASH_PUT:
- if ((__delpair(hashp, rbufp, ndx)) ||
- (__addel(hashp, rbufp, key, val))) {
- save_bufp->flags &= ~BUF_PIN;
- return (DBM_ERROR);
- }
- break;
- case HASH_DELETE:
- if (__delpair(hashp, rbufp, ndx))
- return (DBM_ERROR);
- break;
- default:
- abort();
- }
- save_bufp->flags &= ~BUF_PIN;
- return (SUCCESS);
-}
-
-static int
-hash_seq(
- const DB *dbp,
- DBT *key, DBT *data,
- uint flag)
-{
- register uint32 bucket;
- register BUFHEAD *bufp;
- HTAB *hashp;
- uint16 *bp, ndx;
-
- hashp = (HTAB *)dbp->internal;
- if (!hashp)
- return (DBM_ERROR);
-
- if (flag && flag != R_FIRST && flag != R_NEXT) {
- hashp->dbmerrno = errno = EINVAL;
- return (DBM_ERROR);
- }
-#ifdef HASH_STATISTICS
- hash_accesses++;
-#endif
- if ((hashp->cbucket < 0) || (flag == R_FIRST)) {
- hashp->cbucket = 0;
- hashp->cndx = 1;
- hashp->cpage = NULL;
- }
-
- for (bp = NULL; !bp || !bp[0]; ) {
- if (!(bufp = hashp->cpage)) {
- for (bucket = hashp->cbucket;
- bucket <= (uint32)hashp->MAX_BUCKET;
- bucket++, hashp->cndx = 1) {
- bufp = __get_buf(hashp, bucket, NULL, 0);
- if (!bufp)
- return (DBM_ERROR);
- hashp->cpage = bufp;
- bp = (uint16 *)bufp->page;
- if (bp[0])
- break;
- }
- hashp->cbucket = bucket;
- if (hashp->cbucket > hashp->MAX_BUCKET) {
- hashp->cbucket = -1;
- return (ABNORMAL);
- }
- } else
- bp = (uint16 *)hashp->cpage->page;
-
-#ifdef DEBUG
- assert(bp);
- assert(bufp);
-#endif
- while (bp[hashp->cndx + 1] == OVFLPAGE) {
- bufp = hashp->cpage =
- __get_buf(hashp, bp[hashp->cndx], bufp, 0);
- if (!bufp)
- return (DBM_ERROR);
- bp = (uint16 *)(bufp->page);
- hashp->cndx = 1;
- }
- if (!bp[0]) {
- hashp->cpage = NULL;
- ++hashp->cbucket;
- }
- }
- ndx = hashp->cndx;
- if (bp[ndx + 1] < REAL_KEY) {
- if (__big_keydata(hashp, bufp, key, data, 1))
- return (DBM_ERROR);
- } else {
- key->data = (uint8 *)hashp->cpage->page + bp[ndx];
- key->size = (ndx > 1 ? bp[ndx - 1] : hashp->BSIZE) - bp[ndx];
- data->data = (uint8 *)hashp->cpage->page + bp[ndx + 1];
- data->size = bp[ndx] - bp[ndx + 1];
- ndx += 2;
- if (ndx > bp[0]) {
- hashp->cpage = NULL;
- hashp->cbucket++;
- hashp->cndx = 1;
- } else
- hashp->cndx = ndx;
- }
- return (SUCCESS);
-}
-
-/********************************* UTILITIES ************************/
-
-/*
- * Returns:
- * 0 ==> OK
- * -1 ==> Error
- */
-extern int
-__expand_table(HTAB *hashp)
-{
- uint32 old_bucket, new_bucket;
- int new_segnum, spare_ndx;
- size_t dirsize;
-
-#ifdef HASH_STATISTICS
- hash_expansions++;
-#endif
- new_bucket = ++hashp->MAX_BUCKET;
- old_bucket = (hashp->MAX_BUCKET & hashp->LOW_MASK);
-
- new_segnum = new_bucket >> hashp->SSHIFT;
-
- /* Check if we need a new segment */
- if (new_segnum >= hashp->nsegs) {
- /* Check if we need to expand directory */
- if (new_segnum >= hashp->DSIZE) {
- /* Reallocate directory */
- dirsize = hashp->DSIZE * sizeof(SEGMENT *);
- if (!hash_realloc(&hashp->dir, dirsize, dirsize << 1))
- return (-1);
- hashp->DSIZE = dirsize << 1;
- }
- if ((hashp->dir[new_segnum] =
- (SEGMENT)calloc((size_t)hashp->SGSIZE, sizeof(SEGMENT))) == NULL)
- return (-1);
- hashp->exsegs++;
- hashp->nsegs++;
- }
- /*
- * If the split point is increasing (MAX_BUCKET's log base 2
- * * increases), we need to copy the current contents of the spare
- * split bucket to the next bucket.
- */
- spare_ndx = __log2((uint32)(hashp->MAX_BUCKET + 1));
- if (spare_ndx > hashp->OVFL_POINT) {
- hashp->SPARES[spare_ndx] = hashp->SPARES[hashp->OVFL_POINT];
- hashp->OVFL_POINT = spare_ndx;
- }
-
- if (new_bucket > (uint32)hashp->HIGH_MASK) {
- /* Starting a new doubling */
- hashp->LOW_MASK = hashp->HIGH_MASK;
- hashp->HIGH_MASK = new_bucket | hashp->LOW_MASK;
- }
- /* Relocate records to the new bucket */
- return (__split_page(hashp, old_bucket, new_bucket));
-}
-
-/*
- * If realloc guarantees that the pointer is not destroyed if the realloc
- * fails, then this routine can go away.
- */
-static void *
-hash_realloc(
- SEGMENT **p_ptr,
- size_t oldsize, size_t newsize)
-{
- register void *p;
-
- if ((p = malloc(newsize))) {
- memmove(p, *p_ptr, oldsize);
- memset((char *)p + oldsize, 0, newsize - oldsize);
- free(*p_ptr);
- *p_ptr = (SEGMENT *)p;
- }
- return (p);
-}
-
-extern uint32
-__call_hash(HTAB *hashp, char *k, size_t len)
-{
- uint32 n, bucket;
-
- n = hashp->hash(k, len);
- bucket = n & hashp->HIGH_MASK;
- if (bucket > (uint32)hashp->MAX_BUCKET)
- bucket = bucket & hashp->LOW_MASK;
- return (bucket);
-}
-
-/*
- * Allocate segment table. On error, set errno.
- *
- * Returns 0 on success
- */
-static int
-alloc_segs(
- HTAB *hashp,
- int nsegs)
-{
- register int i;
- register SEGMENT store;
-
- if ((hashp->dir =
- (SEGMENT *)calloc((size_t)hashp->DSIZE, sizeof(SEGMENT *))) == NULL) {
- errno = ENOMEM;
- return (-1);
- }
- /* Allocate segments */
- if ((store =
- (SEGMENT)calloc((size_t)nsegs << hashp->SSHIFT, sizeof(SEGMENT))) == NULL) {
- errno = ENOMEM;
- return (-1);
- }
- for (i = 0; i < nsegs; i++, hashp->nsegs++)
- hashp->dir[i] = &store[i << hashp->SSHIFT];
- return (0);
-}
-
-#if BYTE_ORDER == LITTLE_ENDIAN
-/*
- * Hashp->hdr needs to be byteswapped.
- */
-static void
-swap_header_copy(
- HASHHDR *srcp, HASHHDR *destp)
-{
- int i;
-
- P_32_COPY(srcp->magic, destp->magic);
- P_32_COPY(srcp->version, destp->version);
- P_32_COPY(srcp->lorder, destp->lorder);
- P_32_COPY(srcp->bsize, destp->bsize);
- P_32_COPY(srcp->bshift, destp->bshift);
- P_32_COPY(srcp->dsize, destp->dsize);
- P_32_COPY(srcp->ssize, destp->ssize);
- P_32_COPY(srcp->sshift, destp->sshift);
- P_32_COPY(srcp->ovfl_point, destp->ovfl_point);
- P_32_COPY(srcp->last_freed, destp->last_freed);
- P_32_COPY(srcp->max_bucket, destp->max_bucket);
- P_32_COPY(srcp->high_mask, destp->high_mask);
- P_32_COPY(srcp->low_mask, destp->low_mask);
- P_32_COPY(srcp->ffactor, destp->ffactor);
- P_32_COPY(srcp->nkeys, destp->nkeys);
- P_32_COPY(srcp->hdrpages, destp->hdrpages);
- P_32_COPY(srcp->h_charkey, destp->h_charkey);
- for (i = 0; i < NCACHED; i++) {
- P_32_COPY(srcp->spares[i], destp->spares[i]);
- P_16_COPY(srcp->bitmaps[i], destp->bitmaps[i]);
- }
-}
-
-static void
-swap_header(HTAB *hashp)
-{
- HASHHDR *hdrp;
- int i;
-
- hdrp = &hashp->hdr;
-
- M_32_SWAP(hdrp->magic);
- M_32_SWAP(hdrp->version);
- M_32_SWAP(hdrp->lorder);
- M_32_SWAP(hdrp->bsize);
- M_32_SWAP(hdrp->bshift);
- M_32_SWAP(hdrp->dsize);
- M_32_SWAP(hdrp->ssize);
- M_32_SWAP(hdrp->sshift);
- M_32_SWAP(hdrp->ovfl_point);
- M_32_SWAP(hdrp->last_freed);
- M_32_SWAP(hdrp->max_bucket);
- M_32_SWAP(hdrp->high_mask);
- M_32_SWAP(hdrp->low_mask);
- M_32_SWAP(hdrp->ffactor);
- M_32_SWAP(hdrp->nkeys);
- M_32_SWAP(hdrp->hdrpages);
- M_32_SWAP(hdrp->h_charkey);
- for (i = 0; i < NCACHED; i++) {
- M_32_SWAP(hdrp->spares[i]);
- M_16_SWAP(hdrp->bitmaps[i]);
- }
-}
-#endif
diff --git a/dbm/src/hash_buf.c b/dbm/src/hash_buf.c
deleted file mode 100644
index 727164c653..0000000000
--- a/dbm/src/hash_buf.c
+++ /dev/null
@@ -1,410 +0,0 @@
-/*-
- * Copyright (c) 1990, 1993, 1994
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Margo Seltzer.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)hash_buf.c 8.5 (Berkeley) 7/15/94";
-#endif /* LIBC_SCCS and not lint */
-
-/*
- * PACKAGE: hash
- *
- * DESCRIPTION:
- * Contains buffer management
- *
- * ROUTINES:
- * External
- * __buf_init
- * __get_buf
- * __buf_free
- * __reclaim_buf
- * Internal
- * newbuf
- */
-#if !defined(_WIN32) && !defined(_WINDOWS) && !defined(macintosh)
-#include
-#endif
-
-#include
-#include
-#include
-#include
-#include
-
-#ifdef DEBUG
-#include
-#endif
-
-#include "mcom_db.h"
-#include "hash.h"
-#include "page.h"
-/* #include "extern.h" */
-
-static BUFHEAD *newbuf __P((HTAB *, uint32, BUFHEAD *));
-
-/* Unlink B from its place in the lru */
-#define BUF_REMOVE(B) { \
- (B)->prev->next = (B)->next; \
- (B)->next->prev = (B)->prev; \
-}
-
-/* Insert B after P */
-#define BUF_INSERT(B, P) { \
- (B)->next = (P)->next; \
- (B)->prev = (P); \
- (P)->next = (B); \
- (B)->next->prev = (B); \
-}
-
-#define MRU hashp->bufhead.next
-#define LRU hashp->bufhead.prev
-
-#define MRU_INSERT(B) BUF_INSERT((B), &hashp->bufhead)
-#define LRU_INSERT(B) BUF_INSERT((B), LRU)
-
-/*
- * We are looking for a buffer with address "addr". If prev_bp is NULL, then
- * address is a bucket index. If prev_bp is not NULL, then it points to the
- * page previous to an overflow page that we are trying to find.
- *
- * CAVEAT: The buffer header accessed via prev_bp's ovfl field may no longer
- * be valid. Therefore, you must always verify that its address matches the
- * address you are seeking.
- */
-extern BUFHEAD *
-__get_buf(HTAB *hashp, uint32 addr, BUFHEAD *prev_bp, int newpage)
-/* If prev_bp set, indicates a new overflow page. */
-{
- register BUFHEAD *bp;
- register uint32 is_disk_mask;
- register int is_disk, segment_ndx = 0;
- SEGMENT segp = 0;
-
- is_disk = 0;
- is_disk_mask = 0;
- if (prev_bp) {
- bp = prev_bp->ovfl;
- if (!bp || (bp->addr != addr))
- bp = NULL;
- if (!newpage)
- is_disk = BUF_DISK;
- } else {
- /* Grab buffer out of directory */
- segment_ndx = addr & (hashp->SGSIZE - 1);
-
- /* valid segment ensured by __call_hash() */
- segp = hashp->dir[addr >> hashp->SSHIFT];
-#ifdef DEBUG
- assert(segp != NULL);
-#endif
-
- bp = PTROF(segp[segment_ndx]);
-
- is_disk_mask = ISDISK(segp[segment_ndx]);
- is_disk = is_disk_mask || !hashp->new_file;
- }
-
- if (!bp) {
- bp = newbuf(hashp, addr, prev_bp);
- if (!bp)
- return(NULL);
- if(__get_page(hashp, bp->page, addr, !prev_bp, is_disk, 0))
- {
- /* free bp and its page */
- if(prev_bp)
- {
- /* if prev_bp is set then the new page that
- * failed is hooked onto prev_bp as an overflow page.
- * if we don't remove the pointer to the bad page
- * we may try and access it later and we will die
- * horribly because it will have already been
- * free'd and overwritten with bogus data.
- */
- prev_bp->ovfl = NULL;
- }
- BUF_REMOVE(bp);
- free(bp->page);
- free(bp);
- return (NULL);
- }
-
- if (!prev_bp)
- {
-#if 0
- /* 16 bit windows and mac can't handle the
- * oring of the is disk flag.
- */
- segp[segment_ndx] =
- (BUFHEAD *)((ptrdiff_t)bp | is_disk_mask);
-#else
- /* set the is_disk thing inside the structure
- */
- bp->is_disk = is_disk_mask;
- segp[segment_ndx] = bp;
-#endif
- }
- } else {
- BUF_REMOVE(bp);
- MRU_INSERT(bp);
- }
- return (bp);
-}
-
-/*
- * We need a buffer for this page. Either allocate one, or evict a resident
- * one (if we have as many buffers as we're allowed) and put this one in.
- *
- * If newbuf finds an error (returning NULL), it also sets errno.
- */
-static BUFHEAD *
-newbuf(HTAB *hashp, uint32 addr, BUFHEAD *prev_bp)
-{
- register BUFHEAD *bp; /* The buffer we're going to use */
- register BUFHEAD *xbp; /* Temp pointer */
- register BUFHEAD *next_xbp;
- SEGMENT segp;
- int segment_ndx;
- uint16 oaddr, *shortp;
-
- oaddr = 0;
- bp = LRU;
- /*
- * If LRU buffer is pinned, the buffer pool is too small. We need to
- * allocate more buffers.
- */
- if (hashp->nbufs || (bp->flags & BUF_PIN)) {
- /* Allocate a new one */
- if ((bp = (BUFHEAD *)malloc(sizeof(BUFHEAD))) == NULL)
- return (NULL);
-
- /* this memset is supposedly unnecessary but lets add
- * it anyways.
- */
- memset(bp, 0xff, sizeof(BUFHEAD));
-
- if ((bp->page = (char *)malloc((size_t)hashp->BSIZE)) == NULL) {
- free(bp);
- return (NULL);
- }
-
- /* this memset is supposedly unnecessary but lets add
- * it anyways.
- */
- memset(bp->page, 0xff, (size_t)hashp->BSIZE);
-
- if (hashp->nbufs)
- hashp->nbufs--;
- } else {
- /* Kick someone out */
- BUF_REMOVE(bp);
- /*
- * If this is an overflow page with addr 0, it's already been
- * flushed back in an overflow chain and initialized.
- */
- if ((bp->addr != 0) || (bp->flags & BUF_BUCKET)) {
- /*
- * Set oaddr before __put_page so that you get it
- * before bytes are swapped.
- */
- shortp = (uint16 *)bp->page;
- if (shortp[0])
- {
- if(shortp[0] > (hashp->BSIZE / sizeof(uint16)))
- {
- return(NULL);
- }
- oaddr = shortp[shortp[0] - 1];
- }
- if ((bp->flags & BUF_MOD) && __put_page(hashp, bp->page,
- bp->addr, (int)IS_BUCKET(bp->flags), 0))
- return (NULL);
- /*
- * Update the pointer to this page (i.e. invalidate it).
- *
- * If this is a new file (i.e. we created it at open
- * time), make sure that we mark pages which have been
- * written to disk so we retrieve them from disk later,
- * rather than allocating new pages.
- */
- if (IS_BUCKET(bp->flags)) {
- segment_ndx = bp->addr & (hashp->SGSIZE - 1);
- segp = hashp->dir[bp->addr >> hashp->SSHIFT];
-#ifdef DEBUG
- assert(segp != NULL);
-#endif
-
- if (hashp->new_file &&
- ((bp->flags & BUF_MOD) ||
- ISDISK(segp[segment_ndx])))
- segp[segment_ndx] = (BUFHEAD *)BUF_DISK;
- else
- segp[segment_ndx] = NULL;
- }
- /*
- * Since overflow pages can only be access by means of
- * their bucket, free overflow pages associated with
- * this bucket.
- */
- for (xbp = bp; xbp->ovfl;) {
- next_xbp = xbp->ovfl;
- xbp->ovfl = 0;
- xbp = next_xbp;
-
- /* leave pinned pages alone, we are still using
- * them. */
- if (xbp->flags & BUF_PIN) {
- continue;
- }
-
- /* Check that ovfl pointer is up date. */
- if (IS_BUCKET(xbp->flags) ||
- (oaddr != xbp->addr))
- break;
-
- shortp = (uint16 *)xbp->page;
- if (shortp[0])
- {
- /* LJM is the number of reported
- * pages way too much?
- */
- if(shortp[0] > hashp->BSIZE/sizeof(uint16))
- return NULL;
- /* set before __put_page */
- oaddr = shortp[shortp[0] - 1];
- }
- if ((xbp->flags & BUF_MOD) && __put_page(hashp,
- xbp->page, xbp->addr, 0, 0))
- return (NULL);
- xbp->addr = 0;
- xbp->flags = 0;
- BUF_REMOVE(xbp);
- LRU_INSERT(xbp);
- }
- }
- }
-
- /* Now assign this buffer */
- bp->addr = addr;
-#ifdef DEBUG1
- (void)fprintf(stderr, "NEWBUF1: %d->ovfl was %d is now %d\n",
- bp->addr, (bp->ovfl ? bp->ovfl->addr : 0), 0);
-#endif
- bp->ovfl = NULL;
- if (prev_bp) {
- /*
- * If prev_bp is set, this is an overflow page, hook it in to
- * the buffer overflow links.
- */
-#ifdef DEBUG1
- (void)fprintf(stderr, "NEWBUF2: %d->ovfl was %d is now %d\n",
- prev_bp->addr, (prev_bp->ovfl ? bp->ovfl->addr : 0),
- (bp ? bp->addr : 0));
-#endif
- prev_bp->ovfl = bp;
- bp->flags = 0;
- } else
- bp->flags = BUF_BUCKET;
- MRU_INSERT(bp);
- return (bp);
-}
-
-extern void __buf_init(HTAB *hashp, int32 nbytes)
-{
- BUFHEAD *bfp;
- int npages;
-
- bfp = &(hashp->bufhead);
- npages = (nbytes + hashp->BSIZE - 1) >> hashp->BSHIFT;
- npages = PR_MAX(npages, MIN_BUFFERS);
-
- hashp->nbufs = npages;
- bfp->next = bfp;
- bfp->prev = bfp;
- /*
- * This space is calloc'd so these are already null.
- *
- * bfp->ovfl = NULL;
- * bfp->flags = 0;
- * bfp->page = NULL;
- * bfp->addr = 0;
- */
-}
-
-extern int
-__buf_free(HTAB *hashp, int do_free, int to_disk)
-{
- BUFHEAD *bp;
- int status = -1;
-
- /* Need to make sure that buffer manager has been initialized */
- if (!LRU)
- return (0);
- for (bp = LRU; bp != &hashp->bufhead;) {
- /* Check that the buffer is valid */
- if (bp->addr || IS_BUCKET(bp->flags)) {
- if (to_disk && (bp->flags & BUF_MOD) &&
- (status = __put_page(hashp, bp->page,
- bp->addr, IS_BUCKET(bp->flags), 0))) {
-
- if (do_free) {
- if (bp->page)
- free(bp->page);
- BUF_REMOVE(bp);
- free(bp);
- }
-
- return (status);
- }
- }
- /* Check if we are freeing stuff */
- if (do_free) {
- if (bp->page)
- free(bp->page);
- BUF_REMOVE(bp);
- free(bp);
- bp = LRU;
- } else
- bp = bp->prev;
- }
- return (0);
-}
-
-extern void
-__reclaim_buf(HTAB *hashp, BUFHEAD *bp)
-{
- bp->ovfl = 0;
- bp->addr = 0;
- bp->flags = 0;
- BUF_REMOVE(bp);
- LRU_INSERT(bp);
-}
diff --git a/dbm/src/memmove.c b/dbm/src/memmove.c
deleted file mode 100644
index 935ab46387..0000000000
--- a/dbm/src/memmove.c
+++ /dev/null
@@ -1,146 +0,0 @@
-#if defined(__sun) && !defined(__SVR4)
-/*-
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Chris Torek.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)bcopy.c 8.1 (Berkeley) 6/4/93";
-#endif /* LIBC_SCCS and not lint */
-
-#ifdef HAVE_SYS_CDEFS_H
-#include
-#else
-#include "cdefs.h"
-#endif
-#include
-
-/*
- * sizeof(word) MUST BE A POWER OF TWO
- * SO THAT wmask BELOW IS ALL ONES
- */
-typedef int word; /* "word" used for optimal copy speed */
-
-#define wsize sizeof(word)
-#define wmask (wsize - 1)
-
-/*
- * Copy a block of memory, handling overlap.
- * This is the routine that actually implements
- * (the portable versions of) bcopy, memcpy, and memmove.
- */
-#ifdef MEMCOPY
-void *
-memcpy(dst0, src0, length)
-#else
-#ifdef MEMMOVE
-void *
-memmove(dst0, src0, length)
-#else
-void
-bcopy(src0, dst0, length)
-#endif
-#endif
- void *dst0;
- const void *src0;
- register size_t length;
-{
- register char *dst = dst0;
- register const char *src = src0;
- register size_t t;
-
- if (length == 0 || dst == src) /* nothing to do */
- goto done;
-
- /*
- * Macros: loop-t-times; and loop-t-times, t>0
- */
-#define TLOOP(s) if (t) TLOOP1(s)
-#define TLOOP1(s) do { s; } while (--t)
-
- if ((unsigned long)dst < (unsigned long)src) {
- /*
- * Copy forward.
- */
- t = (int)src; /* only need low bits */
- if ((t | (int)dst) & wmask) {
- /*
- * Try to align operands. This cannot be done
- * unless the low bits match.
- */
- if ((t ^ (int)dst) & wmask || length < wsize)
- t = length;
- else
- t = wsize - (t & wmask);
- length -= t;
- TLOOP1(*dst++ = *src++);
- }
- /*
- * Copy whole words, then mop up any trailing bytes.
- */
- t = length / wsize;
- TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize);
- t = length & wmask;
- TLOOP(*dst++ = *src++);
- } else {
- /*
- * Copy backwards. Otherwise essentially the same.
- * Alignment works as before, except that it takes
- * (t&wmask) bytes to align, not wsize-(t&wmask).
- */
- src += length;
- dst += length;
- t = (int)src;
- if ((t | (int)dst) & wmask) {
- if ((t ^ (int)dst) & wmask || length <= wsize)
- t = length;
- else
- t &= wmask;
- length -= t;
- TLOOP1(*--dst = *--src);
- }
- t = length / wsize;
- TLOOP(src -= wsize; dst -= wsize; *(word *)dst = *(word *)src);
- t = length & wmask;
- TLOOP(*--dst = *--src);
- }
-done:
-#if defined(MEMCOPY) || defined(MEMMOVE)
- return (dst0);
-#else
- return;
-#endif
-}
-#endif /* no __sgi */
-
-/* Some compilers don't like an empty source file. */
-static int dummy = 0;
diff --git a/dbm/src/mktemp.c b/dbm/src/mktemp.c
deleted file mode 100644
index d93da9f5b9..0000000000
--- a/dbm/src/mktemp.c
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
- * Copyright (c) 1987, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93";
-#endif /* LIBC_SCCS and not lint */
-
-#ifdef macintosh
-#include
-#else
-#include
-#include
-#endif
-#include
-#include
-#include
-#include
-#include "mcom_db.h"
-
-#ifndef _WINDOWS
-#include
-#endif
-
-#ifdef _WINDOWS
-#include
-#include "winfile.h"
-#endif
-
-static int _gettemp(char *path, register int *doopen, int extraFlags);
-
-int
-mkstemp(char *path)
-{
-#ifdef XP_OS2
- FILE *temp = tmpfile();
-
- return (temp ? fileno(temp) : -1);
-#else
- int fd;
-
- return (_gettemp(path, &fd, 0) ? fd : -1);
-#endif
-}
-
-int
-mkstempflags(char *path, int extraFlags)
-{
- int fd;
-
- return (_gettemp(path, &fd, extraFlags) ? fd : -1);
-}
-
-#ifdef WINCE /* otherwise, use the one in libc */
-char *
-mktemp(char *path)
-{
- return(_gettemp(path, (int *)NULL, 0) ? path : (char *)NULL);
-}
-#endif
-
-/* NB: This routine modifies its input string, and does not always restore it.
-** returns 1 on success, 0 on failure.
-*/
-static int
-_gettemp(char *path, register int *doopen, int extraFlags)
-{
-#if !defined(_WINDOWS) || defined(_WIN32)
- extern int errno;
-#endif
- register char *start, *trv;
- struct stat sbuf;
- unsigned int pid;
-
- pid = getpid();
- for (trv = path; *trv; ++trv); /* extra X's get set to 0's */
- while (*--trv == 'X') {
- *trv = (pid % 10) + '0';
- pid /= 10;
- }
-
- /*
- * check the target directory; if you have six X's and it
- * doesn't exist this runs for a *very* long time.
- */
- for (start = trv + 1;; --trv) {
- char saved;
- if (trv <= path)
- break;
- saved = *trv;
- if (saved == '/' || saved == '\\') {
- int rv;
- *trv = '\0';
- rv = stat(path, &sbuf);
- *trv = saved;
- if (rv)
- return(0);
- if (!S_ISDIR(sbuf.st_mode)) {
- errno = ENOTDIR;
- return(0);
- }
- break;
- }
- }
-
- for (;;) {
- if (doopen) {
- if ((*doopen =
- open(path, O_CREAT|O_EXCL|O_RDWR|extraFlags, 0600)) >= 0)
- return(1);
- if (errno != EEXIST)
- return(0);
- }
- else if (stat(path, &sbuf))
- return(errno == ENOENT ? 1 : 0);
-
- /* tricky little algorithm for backward compatibility */
- for (trv = start;;) {
- if (!*trv)
- return(0);
- if (*trv == 'z')
- *trv++ = 'a';
- else {
- if (isdigit(*trv))
- *trv = 'a';
- else
- ++*trv;
- break;
- }
- }
- }
- /*NOTREACHED*/
-}
diff --git a/dbm/src/snprintf.c b/dbm/src/snprintf.c
deleted file mode 100644
index 96696d8e87..0000000000
--- a/dbm/src/snprintf.c
+++ /dev/null
@@ -1,73 +0,0 @@
-#ifndef HAVE_SNPRINTF
-
-#include
-#include
-#include
-
-#ifdef HAVE_SYS_CDEFS_H
-#include
-#else
-#include "cdefs.h"
-#endif
-
-#include "prtypes.h"
-
-#include
-
-#ifdef __STDC__
-#include
-#else
-#include
-#endif
-
-int
-#ifdef __STDC__
-snprintf(char *str, size_t n, const char *fmt, ...)
-#else
-snprintf(str, n, fmt, va_alist)
- char *str;
- size_t n;
- const char *fmt;
- va_dcl
-#endif
-{
- va_list ap;
-#ifdef VSPRINTF_CHARSTAR
- char *rp;
-#else
- int rval;
-#endif
-#ifdef __STDC__
- va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
-#ifdef VSPRINTF_CHARSTAR
- rp = vsprintf(str, fmt, ap);
- va_end(ap);
- return (strlen(rp));
-#else
- rval = vsprintf(str, fmt, ap);
- va_end(ap);
- return (rval);
-#endif
-}
-
-int
-vsnprintf(str, n, fmt, ap)
- char *str;
- size_t n;
- const char *fmt;
- va_list ap;
-{
-#ifdef VSPRINTF_CHARSTAR
- return (strlen(vsprintf(str, fmt, ap)));
-#else
- return (vsprintf(str, fmt, ap));
-#endif
-}
-
-#endif /* HAVE_SNPRINTF */
-
-/* Some compilers don't like an empty source file. */
-static int dummy = 0;
diff --git a/dbm/src/strerror.c b/dbm/src/strerror.c
deleted file mode 100644
index 83d16e7c26..0000000000
--- a/dbm/src/strerror.c
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright (c) 1988, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. ***REMOVED*** - see
- * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- * 4. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)strerror.c 8.1 (Berkeley) 6/4/93";
-#endif /* LIBC_SCCS and not lint */
-
-#include
-
-#ifdef _DLL
-#define sys_nerr (*_sys_nerr_dll)
-#endif
-
-#ifndef HAVE_STRERROR
-#ifndef _AFXDLL
-char *
-strerror(num)
- int num;
-{
- extern int sys_nerr;
- extern char *sys_errlist[];
-#define UPREFIX "Unknown error: "
- static char ebuf[40] = UPREFIX; /* 64-bit number + slop */
- register unsigned int errnum;
- register char *p, *t;
- char tmp[40];
-
- errnum = num; /* convert to unsigned */
- if (errnum < sys_nerr)
- return(sys_errlist[errnum]);
-
- /* Do this by hand, so we don't include stdio(3). */
- t = tmp;
- do {
- *t++ = "0123456789"[errnum % 10];
- } while (errnum /= 10);
- for (p = ebuf + sizeof(UPREFIX) - 1;;) {
- *p++ = *--t;
- if (t <= tmp)
- break;
- }
- return(ebuf);
-}
-
-#endif
-#endif /* !HAVE_STRERROR */
diff --git a/dbm/tests/.cvsignore b/dbm/tests/.cvsignore
deleted file mode 100644
index a21fbfc35f..0000000000
--- a/dbm/tests/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-Makefile
-lots
-test.db
diff --git a/dbm/tests/Makefile.in b/dbm/tests/Makefile.in
deleted file mode 100644
index ffb83f29b3..0000000000
--- a/dbm/tests/Makefile.in
+++ /dev/null
@@ -1,62 +0,0 @@
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1998
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-DEPTH = ../..
-topsrcdir = @top_srcdir@
-srcdir = @srcdir@
-VPATH = @srcdir@
-
-include $(DEPTH)/config/autoconf.mk
-
-MODULE = dbm
-
-PACKAGE_FILE = dbmtest.pkg
-
-PROGRAM = lots$(BIN_SUFFIX)
-
-CSRCS = lots.c
-
-ifeq ($(OS_ARCH),WINNT)
-EXTRA_DSO_LIBS = dbm$(MOZ_BITS)
-else
-EXTRA_DSO_LIBS = mozdbm_s
-endif
-
-LIBS = $(EXTRA_DSO_LIBS)
-
-include $(topsrcdir)/config/rules.mk
-
diff --git a/dbm/tests/dbmtest.pkg b/dbm/tests/dbmtest.pkg
deleted file mode 100644
index abd564bedf..0000000000
--- a/dbm/tests/dbmtest.pkg
+++ /dev/null
@@ -1,2 +0,0 @@
-[gecko-tests]
-dist/bin/lots@BINS@
diff --git a/dbm/tests/lots.c b/dbm/tests/lots.c
deleted file mode 100644
index ea8bc6ea23..0000000000
--- a/dbm/tests/lots.c
+++ /dev/null
@@ -1,638 +0,0 @@
-/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is mozilla.org code.
- *
- * The Initial Developer of the Original Code is
- * Netscape Communications Corporation.
- * Portions created by the Initial Developer are Copyright (C) 1998
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-/* use sequental numbers printed to strings
- * to store lots and lots of entries in the
- * database.
- *
- * Start with 100 entries, put them and then
- * read them out. Then delete the first
- * half and verify that all of the first half
- * is gone and then verify that the second
- * half is still there.
- * Then add the first half back and verify
- * again. Then delete the middle third
- * and verify again.
- * Then increase the size by 1000 and do
- * the whole add delete thing again.
- *
- * The data for each object is the number string translated
- * to hex and replicated a random number of times. The
- * number of times that the data is replicated is the first
- * int32 in the data.
- */
-
-#include
-
-#include
-#ifdef STDC_HEADERS
-#include
-#else
-#include
-#endif
-
-#ifdef HAVE_MEMORY_H
-#include
-#endif
-#include
-#include
-#include "mcom_db.h"
-
-DB *database=0;
-int MsgPriority=5;
-
-#if defined(_WINDOWS) && !defined(WIN32)
-#define int32 long
-#define uint32 unsigned long
-#else
-#define int32 int
-#define uint32 unsigned int
-#endif
-
-typedef enum {
-USE_LARGE_KEY,
-USE_SMALL_KEY
-} key_type_enum;
-
-#define TraceMe(priority, msg) \
- do { \
- if(priority <= MsgPriority) \
- { \
- ReportStatus msg; \
- } \
- } while(0)
-
-int
-ReportStatus(char *string, ...)
-{
- va_list args;
-
-#ifdef STDC_HEADERS
- va_start(args, string);
-#else
- va_start(args);
-#endif
- vfprintf(stderr, string, args);
- va_end(args);
-
- fprintf (stderr, "\n");
-
- return(0);
-}
-
-int
-ReportError(char *string, ...)
-{
- va_list args;
-
-#ifdef STDC_HEADERS
- va_start(args, string);
-#else
- va_start(args);
-#endif
- fprintf (stderr, "\n ");
- vfprintf(stderr, string, args);
- fprintf (stderr, "\n");
- va_end(args);
-
- return(0);
-}
-
-DBT * MakeLargeKey(int32 num)
-{
- int32 low_bits;
- static DBT rv;
- static char *string_rv=0;
- int rep_char;
- size_t size;
-
- if(string_rv)
- free(string_rv);
-
- /* generate a really large text key derived from
- * an int32
- */
- low_bits = (num % 10000) + 1;
-
- /* get the repeat char from the low 26 */
- rep_char = (char) ((low_bits % 26) + 'a');
-
- /* malloc a string low_bits wide */
- size = low_bits*sizeof(char);
- string_rv = (char *)malloc(size);
-
- memset(string_rv, rep_char, size);
-
- rv.data = string_rv;
- rv.size = size;
-
- return(&rv);
-}
-
-DBT * MakeSmallKey(int32 num)
-{
- static DBT rv;
- static char data_string[64];
-
- rv.data = data_string;
-
- sprintf(data_string, "%ld", (long)num);
- rv.size = strlen(data_string);
-
- return(&rv);
-
-}
-
-DBT * GenKey(int32 num, key_type_enum key_type)
-{
- DBT *key;
-
- switch(key_type)
- {
- case USE_LARGE_KEY:
- key = MakeLargeKey(num);
- break;
- case USE_SMALL_KEY:
- key = MakeSmallKey(num);
- break;
- default:
- abort();
- break;
- }
-
- return(key);
-}
-
-int
-SeqDatabase()
-{
- int status;
- DBT key, data;
-
- ReportStatus("SEQuencing through database...");
-
- /* seq through the whole database */
- if(!(status = (*database->seq)(database, &key, &data, R_FIRST)))
- {
- while(!(status = (database->seq) (database, &key, &data, R_NEXT)))
- ; /* null body */
- }
-
- if(status < 0)
- ReportError("Error seq'ing database");
-
- return(status);
-}
-
-int
-VerifyData(DBT *data, int32 num, key_type_enum key_type)
-{
- int32 count, compare_num;
- size_t size;
- int32 *int32_array;
-
- /* The first int32 is count
- * The other n entries should
- * all equal num
- */
- if(data->size < sizeof(int32))
- {
- ReportError("Data size corrupted");
- return -1;
- }
-
- memcpy(&count, data->data, sizeof(int32));
-
- size = sizeof(int32)*(count+1);
-
- if(size != data->size)
- {
- ReportError("Data size corrupted");
- return -1;
- }
-
- int32_array = (int32*)data->data;
-
- for(;count > 0; count--)
- {
- memcpy(&compare_num, &int32_array[count], sizeof(int32));
-
- if(compare_num != num)
- {
- ReportError("Data corrupted");
- return -1;
- }
- }
-
- return(0);
-}
-
-
-/* verify that a range of number strings exist
- * or don't exist. And that the data is valid
- */
-#define SHOULD_EXIST 1
-#define SHOULD_NOT_EXIST 0
-int
-VerifyRange(int32 low, int32 high, int32 should_exist, key_type_enum key_type)
-{
- DBT *key, data;
- int32 num;
- int status;
-
- TraceMe(1, ("Verifying: %ld to %ld, using %s keys",
- low, high, key_type == USE_SMALL_KEY ? "SMALL" : "LARGE"));
-
- for(num = low; num <= high; num++)
- {
-
- key = GenKey(num, key_type);
-
- status = (*database->get)(database, key, &data, 0);
-
- if(status == 0)
- {
- /* got the item */
- if(!should_exist)
- {
- ReportError("Item exists but shouldn't: %ld", num);
- }
- else
- {
- /* else verify the data */
- VerifyData(&data, num, key_type);
- }
- }
- else if(status > 0)
- {
- /* item not found */
- if(should_exist)
- {
- ReportError("Item not found but should be: %ld", num);
- }
- }
- else
- {
- /* database error */
- ReportError("Database error");
- return(-1);
- }
-
- }
-
- TraceMe(1, ("Correctly verified: %ld to %ld", low, high));
-
- return(0);
-
-}
-
-DBT *
-GenData(int32 num)
-{
- int32 n;
- static DBT *data=0;
- int32 *int32_array;
- size_t size;
-
- if(!data)
- {
- data = (DBT*)malloc(sizeof(DBT));
- data->size = 0;
- data->data = 0;
- }
- else if(data->data)
- {
- free(data->data);
- }
-
- n = rand();
-
- n = n % 512; /* bound to a 2K size */
-
-
- size = sizeof(int32)*(n+1);
- int32_array = (int32 *) malloc(size);
-
- memcpy(&int32_array[0], &n, sizeof(int32));
-
- for(; n > 0; n--)
- {
- memcpy(&int32_array[n], &num, sizeof(int32));
- }
-
- data->data = (void*)int32_array;
- data->size = size;
-
- return(data);
-}
-
-#define ADD_RANGE 1
-#define DELETE_RANGE 2
-
-int
-AddOrDelRange(int32 low, int32 high, int action, key_type_enum key_type)
-{
- DBT *key, *data;
-#if 0 /* only do this if your really analy checking the puts */
- DBT tmp_data;
-#endif
- int32 num;
- int status;
-
- if(action != ADD_RANGE && action != DELETE_RANGE)
- assert(0);
-
- if(action == ADD_RANGE)
- {
- TraceMe(1, ("Adding: %ld to %ld: %s keys", low, high,
- key_type == USE_SMALL_KEY ? "SMALL" : "LARGE"));
- }
- else
- {
- TraceMe(1, ("Deleting: %ld to %ld: %s keys", low, high,
- key_type == USE_SMALL_KEY ? "SMALL" : "LARGE"));
- }
-
- for(num = low; num <= high; num++)
- {
-
- key = GenKey(num, key_type);
-
- if(action == ADD_RANGE)
- {
- data = GenData(num);
- status = (*database->put)(database, key, data, 0);
- }
- else
- {
- status = (*database->del)(database, key, 0);
- }
-
- if(status < 0)
- {
- ReportError("Database error %s item: %ld",
- action == ADD_RANGE ? "ADDING" : "DELETING",
- num);
- }
- else if(status > 0)
- {
- ReportError("Could not %s item: %ld",
- action == ADD_RANGE ? "ADD" : "DELETE",
- num);
- }
- else if(action == ADD_RANGE)
- {
-#define SYNC_EVERY_TIME
-#ifdef SYNC_EVERY_TIME
- status = (*database->sync)(database, 0);
- if(status != 0)
- ReportError("Database error syncing after add");
-#endif
-
-#if 0 /* only do this if your really analy checking the puts */
-
- /* make sure we can still get it
- */
- status = (*database->get)(database, key, &tmp_data, 0);
-
- if(status != 0)
- {
- ReportError("Database error checking item just added: %d",
- num);
- }
- else
- {
- /* now verify that none of the ones we already
- * put in have disappeared
- */
- VerifyRange(low, num, SHOULD_EXIST, key_type);
- }
-#endif
-
- }
- }
-
-
- if(action == ADD_RANGE)
- {
- TraceMe(1, ("Successfully added: %ld to %ld", low, high));
- }
- else
- {
- TraceMe(1, ("Successfully deleted: %ld to %ld", low, high));
- }
-
- return(0);
-}
-
-int
-TestRange(int32 low, int32 range, key_type_enum key_type)
-{
- int status; int32 low_of_range1, high_of_range1; int32 low_of_range2, high_of_range2;
- int32 low_of_range3, high_of_range3;
-
- status = AddOrDelRange(low, low+range, ADD_RANGE, key_type);
- status = VerifyRange(low, low+range, SHOULD_EXIST, key_type);
-
- TraceMe(1, ("Finished with sub test 1"));
-
- SeqDatabase();
-
- low_of_range1 = low;
- high_of_range1 = low+(range/2);
- low_of_range2 = high_of_range1+1;
- high_of_range2 = low+range;
- status = AddOrDelRange(low_of_range1, high_of_range1, DELETE_RANGE, key_type);
- status = VerifyRange(low_of_range1, high_of_range1, SHOULD_NOT_EXIST, key_type);
- status = VerifyRange(low_of_range2, low_of_range2, SHOULD_EXIST, key_type);
-
- TraceMe(1, ("Finished with sub test 2"));
-
- SeqDatabase();
-
- status = AddOrDelRange(low_of_range1, high_of_range1, ADD_RANGE, key_type);
- /* the whole thing should exist now */
- status = VerifyRange(low, low+range, SHOULD_EXIST, key_type);
-
- TraceMe(1, ("Finished with sub test 3"));
-
- SeqDatabase();
-
- status = AddOrDelRange(low_of_range2, high_of_range2, DELETE_RANGE, key_type);
- status = VerifyRange(low_of_range1, high_of_range1, SHOULD_EXIST, key_type);
- status = VerifyRange(low_of_range2, high_of_range2, SHOULD_NOT_EXIST, key_type);
-
- TraceMe(1, ("Finished with sub test 4"));
-
- SeqDatabase();
-
- status = AddOrDelRange(low_of_range2, high_of_range2, ADD_RANGE, key_type);
- /* the whole thing should exist now */
- status = VerifyRange(low, low+range, SHOULD_EXIST, key_type);
-
- TraceMe(1, ("Finished with sub test 5"));
-
- SeqDatabase();
-
- low_of_range1 = low;
- high_of_range1 = low+(range/3);
- low_of_range2 = high_of_range1+1;
- high_of_range2 = high_of_range1+(range/3);
- low_of_range3 = high_of_range2+1;
- high_of_range3 = low+range;
- /* delete range 2 */
- status = AddOrDelRange(low_of_range2, high_of_range2, DELETE_RANGE, key_type);
- status = VerifyRange(low_of_range1, high_of_range1, SHOULD_EXIST, key_type);
- status = VerifyRange(low_of_range2, low_of_range2, SHOULD_NOT_EXIST, key_type);
- status = VerifyRange(low_of_range3, low_of_range2, SHOULD_EXIST, key_type);
-
- TraceMe(1, ("Finished with sub test 6"));
-
- SeqDatabase();
-
- status = AddOrDelRange(low_of_range2, high_of_range2, ADD_RANGE, key_type);
- /* the whole thing should exist now */
- status = VerifyRange(low, low+range, SHOULD_EXIST, key_type);
-
- TraceMe(1, ("Finished with sub test 7"));
-
- return(0);
-}
-
-#define START_RANGE 109876
-int
-main(int argc, char **argv)
-{
- int32 i, j=0;
- int quick_exit = 0;
- int large_keys = 0;
- HASHINFO hash_info = {
- 16*1024,
- 0,
- 0,
- 0,
- 0,
- 0};
-
-
- if(argc > 1)
- {
- while(argc > 1)
- {
- if(!strcmp(argv[argc-1], "-quick"))
- quick_exit = 1;
- else if(!strcmp(argv[argc-1], "-large"))
- {
- large_keys = 1;
- }
- argc--;
- }
- }
-
- database = dbopen("test.db", O_RDWR | O_CREAT, 0644, DB_HASH, &hash_info);
-
- if(!database)
- {
- ReportError("Could not open database");
-#ifdef unix
- perror("");
-#endif
- exit(1);
- }
-
- if(quick_exit)
- {
- if(large_keys)
- TestRange(START_RANGE, 200, USE_LARGE_KEY);
- else
- TestRange(START_RANGE, 200, USE_SMALL_KEY);
-
- (*database->sync)(database, 0);
- (*database->close)(database);
- exit(0);
- }
-
- for(i=100; i < 10000000; i+=200)
- {
- if(1 || j)
- {
- TestRange(START_RANGE, i, USE_LARGE_KEY);
- j = 0;
- }
- else
- {
- TestRange(START_RANGE, i, USE_SMALL_KEY);
- j = 1;
- }
-
- if(1 == rand() % 3)
- {
- (*database->sync)(database, 0);
- }
-
- if(1 == rand() % 3)
- {
- /* close and reopen */
- (*database->close)(database);
- database = dbopen("test.db", O_RDWR | O_CREAT, 0644, DB_HASH, 0);
- if(!database)
- {
- ReportError("Could not reopen database");
-#ifdef unix
- perror("");
-#endif
- exit(1);
- }
- }
- else
- {
- /* reopen database without closeing the other */
- database = dbopen("test.db", O_RDWR | O_CREAT, 0644, DB_HASH, 0);
- if(!database)
- {
- ReportError("Could not reopen database "
- "after not closing the other");
-#ifdef unix
- perror("");
-#endif
- exit(1);
- }
- }
- }
-
- return(0);
-}
diff --git a/security/dbm/Makefile b/security/dbm/Makefile
deleted file mode 100644
index bfcff6a177..0000000000
--- a/security/dbm/Makefile
+++ /dev/null
@@ -1,88 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-#######################################################################
-# (1) Include initial platform-independent assignments (MANDATORY). #
-#######################################################################
-
-include manifest.mn
-
-ifdef NSS_DISABLE_DBM
-DIRS = dummy
-endif
-
-#######################################################################
-# (2) Include "global" configuration information. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/config.mk
-
-#######################################################################
-# (3) Include "component" configuration information. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (4) Include "local" platform-dependent assignments (OPTIONAL). #
-#######################################################################
-
-
-
-#######################################################################
-# (5) Execute "global" rules. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/rules.mk
-
-#######################################################################
-# (6) Execute "component" rules. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (7) Execute "local" rules. (OPTIONAL). #
-#######################################################################
-
-coreconf_hack:
- cd ../coreconf; gmake
- gmake import
-
-RelEng_bld: coreconf_hack
- gmake
diff --git a/security/dbm/config/config.mk b/security/dbm/config/config.mk
deleted file mode 100644
index adab124476..0000000000
--- a/security/dbm/config/config.mk
+++ /dev/null
@@ -1,71 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-#
-# These macros are defined by mozilla's configure script.
-# We define them manually here.
-#
-
-DEFINES += -DSTDC_HEADERS -DHAVE_STRERROR
-
-#
-# Most platforms have snprintf, so it's simpler to list the exceptions.
-#
-HAVE_SNPRINTF = 1
-#
-# OSF1 V4.0D doesn't have snprintf but V5.0A does.
-#
-ifeq ($(OS_TARGET)$(OS_RELEASE),OSF1V4.0D)
-HAVE_SNPRINTF =
-endif
-ifdef HAVE_SNPRINTF
-DEFINES += -DHAVE_SNPRINTF
-endif
-
-ifeq (,$(filter-out IRIX Linux,$(OS_TARGET)))
-DEFINES += -DHAVE_SYS_CDEFS_H
-endif
-
-ifeq (,$(filter-out DGUX NCR ReliantUNIX SCO_SV SCOOS UNIXWARE,$(OS_TARGET)))
-DEFINES += -DHAVE_SYS_BYTEORDER_H
-endif
-
-#
-# None of the platforms that we are interested in need to
-# define HAVE_MEMORY_H.
-#
diff --git a/security/dbm/include/Makefile b/security/dbm/include/Makefile
deleted file mode 100644
index 5189628239..0000000000
--- a/security/dbm/include/Makefile
+++ /dev/null
@@ -1,80 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-#######################################################################
-# (1) Include initial platform-independent assignments (MANDATORY). #
-#######################################################################
-
-include manifest.mn
-
-#######################################################################
-# (2) Include "global" configuration information. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/config.mk
-
-#######################################################################
-# (3) Include "component" configuration information. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (4) Include "local" platform-dependent assignments (OPTIONAL). #
-#######################################################################
-
-
-
-#######################################################################
-# (5) Execute "global" rules. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/rules.mk
-
-#######################################################################
-# (6) Execute "component" rules. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (7) Execute "local" rules. (OPTIONAL). #
-#######################################################################
-
-
-
diff --git a/security/dbm/include/manifest.mn b/security/dbm/include/manifest.mn
deleted file mode 100644
index 31cbe56eff..0000000000
--- a/security/dbm/include/manifest.mn
+++ /dev/null
@@ -1,59 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-CORE_DEPTH = ../..
-
-VPATH = $(CORE_DEPTH)/../dbm/include
-
-MODULE = dbm
-
-EXPORTS = cdefs.h \
- mcom_db.h \
- ncompat.h \
- winfile.h \
- $(NULL)
-
-PRIVATE_EXPORTS = hsearch.h \
- page.h \
- extern.h \
- queue.h \
- hash.h \
- mpool.h \
- search.h \
- $(NULL)
-
diff --git a/security/dbm/manifest.mn b/security/dbm/manifest.mn
deleted file mode 100644
index 48b39176a0..0000000000
--- a/security/dbm/manifest.mn
+++ /dev/null
@@ -1,49 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-CORE_DEPTH = ..
-
-MODULE = dbm
-
-IMPORTS = nspr20/v4.4.1
-
-RELEASE = dbm
-
-DIRS = include \
- src \
- $(NULL)
diff --git a/security/dbm/src/Makefile b/security/dbm/src/Makefile
deleted file mode 100644
index 6d9a95bdd3..0000000000
--- a/security/dbm/src/Makefile
+++ /dev/null
@@ -1,80 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-#######################################################################
-# (1) Include initial platform-independent assignments (MANDATORY). #
-#######################################################################
-
-include manifest.mn
-
-#######################################################################
-# (2) Include "global" configuration information. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/config.mk
-
-#######################################################################
-# (3) Include "component" configuration information. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/dbm/config/config.mk
-
-#######################################################################
-# (4) Include "local" platform-dependent assignments (OPTIONAL). #
-#######################################################################
-
-include config.mk
-
-#######################################################################
-# (5) Execute "global" rules. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/rules.mk
-
-#######################################################################
-# (6) Execute "component" rules. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (7) Execute "local" rules. (OPTIONAL). #
-#######################################################################
-
-
-
diff --git a/security/dbm/src/config.mk b/security/dbm/src/config.mk
deleted file mode 100644
index e64d886d18..0000000000
--- a/security/dbm/src/config.mk
+++ /dev/null
@@ -1,67 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-DEFINES += -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG)
-
-INCLUDES += -I$(CORE_DEPTH)/../dbm/include
-
-#
-# Currently, override TARGETS variable so that only static libraries
-# are specifed as dependencies within rules.mk.
-#
-
-TARGETS = $(LIBRARY)
-SHARED_LIBRARY =
-IMPORT_LIBRARY =
-PURE_LIBRARY =
-PROGRAM =
-
-ifdef SHARED_LIBRARY
- ifeq (,$(filter-out WIN%,$(OS_TARGET)))
- DLLBASE=/BASE:0x30000000
- RES=$(OBJDIR)/dbm.res
- RESNAME=../include/dbm.rc
- endif
- ifeq ($(DLL_SUFFIX),dll)
- DEFINES += -D_DLL
- endif
-endif
-
-ifeq ($(OS_TARGET),AIX)
- OS_LIBS += -lc_r
-endif
diff --git a/security/dbm/src/dirent.c b/security/dbm/src/dirent.c
deleted file mode 100644
index cae92d81b7..0000000000
--- a/security/dbm/src/dirent.c
+++ /dev/null
@@ -1,348 +0,0 @@
-#ifdef OS2
-
-#include
-#include
-#include
-#include
-
-#include
-#include
-
-/*#ifndef __EMX__
-#include
-#endif */
-
-#define INCL_DOSFILEMGR
-#define INCL_DOSERRORS
-#include
-
-#if OS2 >= 2
-# define FFBUF FILEFINDBUF3
-# define Word ULONG
- /*
- * LS20 recommends a request count of 100, but according to the
- * APAR text it does not lead to missing files, just to funny
- * numbers of returned entries.
- *
- * LS30 HPFS386 requires a count greater than 2, or some files
- * are missing (those starting with a character less that '.').
- *
- * Novell loses entries which overflow the buffer. In previous
- * versions of dirent2, this could have lead to missing files
- * when the average length of 100 directory entries was 40 bytes
- * or more (quite unlikely for files on a Novell server).
- *
- * Conclusion: Make sure that the entries all fit into the buffer
- * and that the buffer is large enough for more than 2 entries
- * (each entry is at most 300 bytes long). And ignore the LS20
- * effect.
- */
-# define Count 25
-# define BufSz (25 * (sizeof(FILEFINDBUF3)+1))
-#else
-# define FFBUF FILEFINDBUF
-# define Word USHORT
-# define BufSz 1024
-# define Count 3
-#endif
-
-#if defined(__IBMC__) || defined(__IBMCPP__)
- #define error(rc) _doserrno = rc, errno = EOS2ERR
-#elif defined(MICROSOFT)
- #define error(rc) _doserrno = rc, errno = 255
-#else
- #define error(rc) errno = 255
-#endif
-
-struct _dirdescr {
- HDIR handle; /* DosFindFirst handle */
- char fstype; /* filesystem type */
- Word count; /* valid entries in */
- long number; /* absolute number of next entry */
- int index; /* relative number of next entry */
- FFBUF * next; /* pointer to next entry */
- char name[MAXPATHLEN+3]; /* directory name */
- unsigned attrmask; /* attribute mask for seekdir */
- struct dirent entry; /* buffer for directory entry */
- BYTE ffbuf[BufSz];
-};
-
-/*
- * Return first char of filesystem type, or 0 if unknown.
- */
-static char
-getFSType(const char *path)
-{
- static char cache[1+26];
- char drive[3], info[512];
- Word unit, infolen;
- char r;
-
- if (isalpha(path[0]) && path[1] == ':') {
- unit = toupper(path[0]) - '@';
- path += 2;
- } else {
- ULONG driveMap;
-#if OS2 >= 2
- if (DosQueryCurrentDisk(&unit, &driveMap))
-#else
- if (DosQCurDisk(&unit, &driveMap))
-#endif
- return 0;
- }
-
- if ((path[0] == '\\' || path[0] == '/')
- && (path[1] == '\\' || path[1] == '/'))
- return 0;
-
- if (cache [unit])
- return cache [unit];
-
- drive[0] = '@' + unit;
- drive[1] = ':';
- drive[2] = '\0';
- infolen = sizeof info;
-#if OS2 >= 2
- if (DosQueryFSAttach(drive, 0, FSAIL_QUERYNAME, (PVOID)info, &infolen))
- return 0;
- if (infolen >= sizeof(FSQBUFFER2)) {
- FSQBUFFER2 *p = (FSQBUFFER2 *)info;
- r = p->szFSDName[p->cbName];
- } else
-#else
- if (DosQFSAttach((PSZ)drive, 0, FSAIL_QUERYNAME, (PVOID)info, &infolen, 0))
- return 0;
- if (infolen >= 9) {
- char *p = info + sizeof(USHORT);
- p += sizeof(USHORT) + *(USHORT *)p + 1 + sizeof(USHORT);
- r = *p;
- } else
-#endif
- r = 0;
- return cache [unit] = r;
-}
-
-char *
-abs_path(const char *name, char *buffer, int len)
-{
- char buf[4];
- if (isalpha(name[0]) && name[1] == ':' && name[2] == '\0') {
- buf[0] = name[0];
- buf[1] = name[1];
- buf[2] = '.';
- buf[3] = '\0';
- name = buf;
- }
-#if OS2 >= 2
- if (DosQueryPathInfo((PSZ)name, FIL_QUERYFULLNAME, buffer, len))
-#else
- if (DosQPathInfo((PSZ)name, FIL_QUERYFULLNAME, (PBYTE)buffer, len, 0L))
-#endif
- return NULL;
- return buffer;
-}
-
-DIR *
-openxdir(const char *path, unsigned att_mask)
-{
- DIR *dir;
- char name[MAXPATHLEN+3];
- Word rc;
-
- dir = malloc(sizeof(DIR));
- if (dir == NULL) {
- errno = ENOMEM;
- return NULL;
- }
-
- strncpy(name, path, MAXPATHLEN);
- name[MAXPATHLEN] = '\0';
- switch (name[strlen(name)-1]) {
- default:
- strcat(name, "\\");
- case '\\':
- case '/':
- case ':':
- ;
- }
- strcat(name, ".");
- if (!abs_path(name, dir->name, MAXPATHLEN+1))
- strcpy(dir->name, name);
- if (dir->name[strlen(dir->name)-1] == '\\')
- strcat(dir->name, "*");
- else
- strcat(dir->name, "\\*");
-
- dir->fstype = getFSType(dir->name);
- dir->attrmask = att_mask | A_DIR;
-
- dir->handle = HDIR_CREATE;
- dir->count = 100;
-#if OS2 >= 2
- rc = DosFindFirst(dir->name, &dir->handle, dir->attrmask,
- dir->ffbuf, sizeof dir->ffbuf, &dir->count, FIL_STANDARD);
-#else
- rc = DosFindFirst((PSZ)dir->name, &dir->handle, dir->attrmask,
- (PFILEFINDBUF)dir->ffbuf, sizeof dir->ffbuf, &dir->count, 0);
-#endif
- switch (rc) {
- default:
- free(dir);
- error(rc);
- return NULL;
- case NO_ERROR:
- case ERROR_NO_MORE_FILES:
- ;
- }
-
- dir->number = 0;
- dir->index = 0;
- dir->next = (FFBUF *)dir->ffbuf;
-
- return (DIR *)dir;
-}
-
-DIR *
-opendir(const char *pathname)
-{
- return openxdir(pathname, 0);
-}
-
-struct dirent *
-readdir(DIR *dir)
-{
- static int dummy_ino = 2;
-
- if (dir->index == dir->count) {
- Word rc;
- dir->count = 100;
-#if OS2 >= 2
- rc = DosFindNext(dir->handle, dir->ffbuf,
- sizeof dir->ffbuf, &dir->count);
-#else
- rc = DosFindNext(dir->handle, (PFILEFINDBUF)dir->ffbuf,
- sizeof dir->ffbuf, &dir->count);
-#endif
- if (rc) {
- error(rc);
- return NULL;
- }
-
- dir->index = 0;
- dir->next = (FFBUF *)dir->ffbuf;
- }
-
- if (dir->index == dir->count)
- return NULL;
-
- memcpy(dir->entry.d_name, dir->next->achName, dir->next->cchName);
- dir->entry.d_name[dir->next->cchName] = '\0';
- dir->entry.d_ino = dummy_ino++;
- dir->entry.d_reclen = dir->next->cchName;
- dir->entry.d_namlen = dir->next->cchName;
- dir->entry.d_size = dir->next->cbFile;
- dir->entry.d_attribute = dir->next->attrFile;
- dir->entry.d_time = *(USHORT *)&dir->next->ftimeLastWrite;
- dir->entry.d_date = *(USHORT *)&dir->next->fdateLastWrite;
-
- switch (dir->fstype) {
- case 'F': /* FAT */
- case 'C': /* CDFS */
- if (dir->next->attrFile & FILE_DIRECTORY)
- strupr(dir->entry.d_name);
- else
- strlwr(dir->entry.d_name);
- }
-
-#if OS2 >= 2
- dir->next = (FFBUF *)((BYTE *)dir->next + dir->next->oNextEntryOffset);
-#else
- dir->next = (FFBUF *)((BYTE *)dir->next->achName + dir->next->cchName + 1);
-#endif
- ++dir->number;
- ++dir->index;
-
- return &dir->entry;
-}
-
-long
-telldir(DIR *dir)
-{
- return dir->number;
-}
-
-void
-seekdir(DIR *dir, long off)
-{
- if (dir->number > off) {
- char name[MAXPATHLEN+2];
- Word rc;
-
- DosFindClose(dir->handle);
-
- strcpy(name, dir->name);
- strcat(name, "*");
-
- dir->handle = HDIR_CREATE;
- dir->count = 32767;
-#if OS2 >= 2
- rc = DosFindFirst(name, &dir->handle, dir->attrmask,
- dir->ffbuf, sizeof dir->ffbuf, &dir->count, FIL_STANDARD);
-#else
- rc = DosFindFirst((PSZ)name, &dir->handle, dir->attrmask,
- (PFILEFINDBUF)dir->ffbuf, sizeof dir->ffbuf, &dir->count, 0);
-#endif
- switch (rc) {
- default:
- error(rc);
- return;
- case NO_ERROR:
- case ERROR_NO_MORE_FILES:
- ;
- }
-
- dir->number = 0;
- dir->index = 0;
- dir->next = (FFBUF *)dir->ffbuf;
- }
-
- while (dir->number < off && readdir(dir))
- ;
-}
-
-void
-closedir(DIR *dir)
-{
- DosFindClose(dir->handle);
- free(dir);
-}
-
-/*****************************************************************************/
-
-#ifdef TEST
-
-main(int argc, char **argv)
-{
- int i;
- DIR *dir;
- struct dirent *ep;
-
- for (i = 1; i < argc; ++i) {
- dir = opendir(argv[i]);
- if (!dir)
- continue;
- while (ep = readdir(dir))
- if (strchr("\\/:", argv[i] [strlen(argv[i]) - 1]))
- printf("%s%s\n", argv[i], ep->d_name);
- else
- printf("%s/%s\n", argv[i], ep->d_name);
- closedir(dir);
- }
-
- return 0;
-}
-
-#endif
-
-#endif /* OS2 */
-
diff --git a/security/dbm/src/dirent.h b/security/dbm/src/dirent.h
deleted file mode 100644
index 07a6c0ac87..0000000000
--- a/security/dbm/src/dirent.h
+++ /dev/null
@@ -1,97 +0,0 @@
-#ifndef __DIRENT_H__
-#define __DIRENT_H__
-/*
- * @(#)msd_dir.h 1.4 87/11/06 Public Domain.
- *
- * A public domain implementation of BSD directory routines for
- * MS-DOS. Written by Michael Rendell ({uunet,utai}michael@garfield),
- * August 1897
- *
- * Extended by Peter Lim (lim@mullian.oz) to overcome some MS DOS quirks
- * and returns 2 more pieces of information - file size & attribute.
- * Plus a little reshuffling of some #define's positions December 1987
- *
- * Some modifications by Martin Junius 02-14-89
- *
- * AK900712
- * AK910410 abs_path - make absolute path
- *
- */
-
-#ifdef __EMX__
-#include
-#else
-#if defined(__IBMC__) || defined(__IBMCPP__) || defined(XP_W32_MSVC)
-#include
-#ifdef MAXPATHLEN
- #undef MAXPATHLEN
-#endif
-#define MAXPATHLEN (FILENAME_MAX*4)
-#define MAXNAMLEN FILENAME_MAX
-
-#else
-#include
-#endif
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* attribute stuff */
-#ifndef A_RONLY
-# define A_RONLY 0x01
-# define A_HIDDEN 0x02
-# define A_SYSTEM 0x04
-# define A_LABEL 0x08
-# define A_DIR 0x10
-# define A_ARCHIVE 0x20
-#endif
-
-struct dirent {
-#if defined(OS2) || defined(WIN32) /* use the layout of EMX to avoid trouble */
- int d_ino; /* Dummy */
- int d_reclen; /* Dummy, same as d_namlen */
- int d_namlen; /* length of name */
- char d_name[MAXNAMLEN + 1];
- unsigned long d_size;
- unsigned short d_attribute; /* attributes (see above) */
- unsigned short d_time; /* modification time */
- unsigned short d_date; /* modification date */
-#else
- char d_name[MAXNAMLEN + 1]; /* garentee null termination */
- char d_attribute; /* .. extension .. */
- unsigned long d_size; /* .. extension .. */
-#endif
-};
-
-typedef struct _dirdescr DIR;
-/* the structs do not have to be defined here */
-
-extern DIR *opendir(const char *);
-extern DIR *openxdir(const char *, unsigned);
-extern struct dirent *readdir(DIR *);
-extern void seekdir(DIR *, long);
-extern long telldir(DIR *);
-extern void closedir(DIR *);
-#define rewinddir(dirp) seekdir(dirp, 0L)
-
-extern char * abs_path(const char *name, char *buffer, int len);
-
-#ifndef S_IFMT
-#define S_IFMT ( S_IFDIR | S_IFREG )
-#endif
-
-#ifndef S_ISDIR
-#define S_ISDIR( m ) (((m) & S_IFMT) == S_IFDIR)
-#endif
-
-#ifndef S_ISREG
-#define S_ISREG( m ) (((m) & S_IFMT) == S_IFREG)
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/security/dbm/src/manifest.mn b/security/dbm/src/manifest.mn
deleted file mode 100644
index 392f564070..0000000000
--- a/security/dbm/src/manifest.mn
+++ /dev/null
@@ -1,62 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-CORE_DEPTH = ../..
-
-VPATH = $(CORE_DEPTH)/../dbm/src
-
-MODULE = dbm
-
-#
-# memmove.c, snprintf.c, and strerror.c are not in CSRCS because
-# the Standard C Library has memmove and strerror and DBM is not
-# using snprintf.
-#
-
-CSRCS = db.c \
- h_bigkey.c \
- h_func.c \
- h_log2.c \
- h_page.c \
- hash.c \
- hash_buf.c \
- mktemp.c \
- dirent.c \
- $(NULL)
-
-LIBRARY_NAME = dbm
diff --git a/security/dbm/tests/Makefile b/security/dbm/tests/Makefile
deleted file mode 100644
index 63bc293880..0000000000
--- a/security/dbm/tests/Makefile
+++ /dev/null
@@ -1,73 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-DEPTH = ../..
-CORE_DEPTH = ../..
-
-VPATH = $(CORE_DEPTH)/../dbm/tests
-
-MODULE = dbm
-
-CSRCS = lots.c
-
-PROGRAM = lots
-
-include $(DEPTH)/coreconf/config.mk
-
-include $(DEPTH)/dbm/config/config.mk
-
-ifeq (,$(filter-out WIN%,$(OS_TARGET)))
-LIBDBM = ../src/$(PLATFORM)/dbm$(STATIC_LIB_SUFFIX)
-else
-LIBDBM = ../src/$(PLATFORM)/libdbm$(STATIC_LIB_SUFFIX)
-endif
-
-INCLUDES += -I$(CORE_DEPTH)/../dbm/include
-
-LDFLAGS = $(LDOPTS) $(LIBDBM)
-
-include $(DEPTH)/coreconf/rules.mk
-
-lots.pure: lots
- purify $(CC) -o lots.pure $(CFLAGS) $(OBJS) $(MYLIBS)
-
-crash: crash.o $(MYLIBS)
- $(CC) -o crash $(CFLAGS) $^
-
-crash.pure: crash.o $(MYLIBS)
- purify $(CC) -o crash.pure $(CFLAGS) $^
-
diff --git a/security/nss/Makefile b/security/nss/Makefile
deleted file mode 100644
index 0590b7410f..0000000000
--- a/security/nss/Makefile
+++ /dev/null
@@ -1,185 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-#######################################################################
-# (1) Include initial platform-independent assignments (MANDATORY). #
-#######################################################################
-
-include manifest.mn
-
-#######################################################################
-# (2) Include "global" configuration information. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/config.mk
-
-#######################################################################
-# (3) Include "component" configuration information. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (4) Include "local" platform-dependent assignments (OPTIONAL). #
-#######################################################################
-
-ifeq ($(OS_TARGET),WINCE)
-DIRS = lib # omit cmd since wince has no command line shell
-endif
-
-#######################################################################
-# (5) Execute "global" rules. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/rules.mk
-
-#######################################################################
-# (6) Execute "component" rules. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (7) Execute "local" rules. (OPTIONAL). #
-#######################################################################
-
-nss_build_all: build_coreconf build_nspr build_dbm all
-
-nss_clean_all: clobber_coreconf clobber_nspr clobber_dbm clobber
-
-build_coreconf:
- cd $(CORE_DEPTH)/coreconf ; $(MAKE)
-
-clobber_coreconf:
- cd $(CORE_DEPTH)/coreconf ; $(MAKE) clobber
-
-NSPR_CONFIG_STATUS = $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME)/config.status
-NSPR_CONFIGURE = $(CORE_DEPTH)/../nsprpub/configure
-
-#
-# Translate coreconf build options to NSPR configure options.
-#
-
-ifdef BUILD_OPT
-NSPR_CONFIGURE_OPTS += --disable-debug --enable-optimize
-endif
-ifdef USE_64
-NSPR_CONFIGURE_OPTS += --enable-64bit
-endif
-ifeq ($(OS_TARGET),WIN95)
-NSPR_CONFIGURE_OPTS += --enable-win32-target=WIN95
-endif
-ifdef USE_DEBUG_RTL
-NSPR_CONFIGURE_OPTS += --enable-debug-rtl
-endif
-ifdef NS_USE_GCC
-NSPR_COMPILERS = CC=gcc CXX=g++
-endif
-
-#
-# Some pwd commands on Windows (for example, the pwd
-# command in Cygwin) return a pathname that begins
-# with a (forward) slash. When such a pathname is
-# passed to Windows build tools (for example, cl), it
-# is mistaken as a command-line option. If that is the case,
-# we use a relative pathname as NSPR's prefix on Windows.
-#
-
-USEABSPATH="YES"
-ifeq (,$(filter-out WIN%,$(OS_TARGET)))
-ifeq (,$(findstring :,$(shell pwd)))
-USEABSPATH="NO"
-endif
-endif
-ifeq ($(USEABSPATH),"YES")
-NSPR_PREFIX = $(shell pwd)/../../dist/$(OBJDIR_NAME)
-else
-NSPR_PREFIX = $$(topsrcdir)/../dist/$(OBJDIR_NAME)
-endif
-
-$(NSPR_CONFIG_STATUS): $(NSPR_CONFIGURE)
- $(NSINSTALL) -D $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME)
- cd $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) ; \
- $(NSPR_COMPILERS) sh ../configure \
- $(NSPR_CONFIGURE_OPTS) \
- --with-dist-prefix='$(NSPR_PREFIX)' \
- --with-dist-includedir='$(NSPR_PREFIX)/include'
-
-build_nspr: $(NSPR_CONFIG_STATUS)
- cd $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) ; $(MAKE)
-
-clobber_nspr: $(NSPR_CONFIG_STATUS)
- cd $(CORE_DEPTH)/../nsprpub/$(OBJDIR_NAME) ; $(MAKE) clobber
-
-build_dbm:
-ifndef NSS_DISABLE_DBM
- cd $(CORE_DEPTH)/dbm ; $(MAKE) export libs
-else
- echo "skipping the build of DBM"
-endif
-
-clobber_dbm:
- cd $(CORE_DEPTH)/dbm ; $(MAKE) clobber
-
-moz_import::
-ifeq (,$(filter-out WIN%,$(OS_TARGET)))
- $(NSINSTALL) -D $(DIST)/include/nspr
- cp $(DIST)/../include/nspr/*.h $(DIST)/include/nspr
- cp $(DIST)/../include/* $(DIST)/include
-ifdef BUILD_OPT
- cp $(DIST)/../WIN32_O.OBJ/lib/* $(DIST)/lib
-else
- cp $(DIST)/../WIN32_D.OBJ/lib/* $(DIST)/lib
-endif
- mv $(DIST)/lib/dbm32.lib $(DIST)/lib/dbm.lib
-else
-ifeq ($(OS_TARGET),OS2)
- cp -rf $(DIST)/../include $(DIST)
- cp -rf $(DIST)/../lib $(DIST)
- cp -f $(DIST)/lib/libmozdbm_s.$(LIB_SUFFIX) $(DIST)/lib/libdbm.$(LIB_SUFFIX)
-else
- $(NSINSTALL) -L ../../dist include $(DIST)
- $(NSINSTALL) -L ../../dist lib $(DIST)
- cp $(DIST)/lib/libmozdbm_s.$(LIB_SUFFIX) $(DIST)/lib/libdbm.$(LIB_SUFFIX)
-endif
-endif
-
-nss_RelEng_bld: build_coreconf import build_dbm all
-
-package:
- $(MAKE) -C pkg publish
diff --git a/security/nss/cmd/.cvsignore b/security/nss/cmd/.cvsignore
deleted file mode 100644
index 6329db22e8..0000000000
--- a/security/nss/cmd/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-.gdbinit
diff --git a/security/nss/cmd/Makefile b/security/nss/cmd/Makefile
deleted file mode 100644
index ed5819847d..0000000000
--- a/security/nss/cmd/Makefile
+++ /dev/null
@@ -1,61 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-CORE_DEPTH = ../..
-DEPTH = ../..
-
-include manifest.mn
-include $(CORE_DEPTH)/coreconf/config.mk
-
-ifdef BUILD_LIBPKIX_TESTS
-DIRS += libpkix
-endif
-
-ifndef USE_SYSTEM_ZLIB
-ZLIB_SRCDIR = zlib # Add the zlib directory to DIRS.
-endif
-
-INCLUDES += \
- -I$(DIST)/../public/security \
- -I./include \
- $(NULL)
-
-include $(CORE_DEPTH)/coreconf/rules.mk
-
-symbols::
- @echo "TARGETS = $(TARGETS)"
diff --git a/security/nss/cmd/addbuiltin/Makefile b/security/nss/cmd/addbuiltin/Makefile
deleted file mode 100644
index fe7991878f..0000000000
--- a/security/nss/cmd/addbuiltin/Makefile
+++ /dev/null
@@ -1,80 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-#######################################################################
-# (1) Include initial platform-independent assignments (MANDATORY). #
-#######################################################################
-
-include manifest.mn
-
-#######################################################################
-# (2) Include "global" configuration information. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/config.mk
-
-#######################################################################
-# (3) Include "component" configuration information. (OPTIONAL) #
-#######################################################################
-
-#######################################################################
-# (4) Include "local" platform-dependent assignments (OPTIONAL). #
-#######################################################################
-
-include ../platlibs.mk
-
-
-#######################################################################
-# (5) Execute "global" rules. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/rules.mk
-
-#######################################################################
-# (6) Execute "component" rules. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (7) Execute "local" rules. (OPTIONAL). #
-#######################################################################
-
-
-include ../platrules.mk
-
diff --git a/security/nss/cmd/addbuiltin/addbuiltin.c b/security/nss/cmd/addbuiltin/addbuiltin.c
deleted file mode 100644
index 8bb99547ce..0000000000
--- a/security/nss/cmd/addbuiltin/addbuiltin.c
+++ /dev/null
@@ -1,391 +0,0 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is the Netscape security libraries.
- *
- * The Initial Developer of the Original Code is
- * Netscape Communications Corporation.
- * Portions created by the Initial Developer are Copyright (C) 1994-2000
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-/*
- * Tool for converting builtin CA certs.
- *
- * $Id$
- */
-
-#include "nssrenam.h"
-#include "nss.h"
-#include "cert.h"
-#include "certdb.h"
-#include "secutil.h"
-#include "pk11func.h"
-
-#if defined(WIN32)
-#include
-#include
-#endif
-
-void dumpbytes(unsigned char *buf, int len)
-{
- int i;
- for (i=0; i < len; i++) {
- if ((i !=0) && ((i & 0xf) == 0)) {
- printf("\n");
- }
- printf("\\%03o",buf[i]);
- }
- printf("\n");
-}
-
-char *getTrustString(unsigned int trust)
-{
- if (trust & CERTDB_TRUSTED) {
- if (trust & CERTDB_TRUSTED_CA) {
- return "CKT_NETSCAPE_TRUSTED_DELEGATOR|CKT_NETSCAPE_TRUSTED";
- } else {
- return "CKT_NETSCAPE_TRUSTED";
- }
- } else {
- if (trust & CERTDB_TRUSTED_CA) {
- return "CKT_NETSCAPE_TRUSTED_DELEGATOR";
- } else if (trust & CERTDB_VALID_CA) {
- return "CKT_NETSCAPE_VALID_DELEGATOR";
- } else {
- return "CKT_NETSCAPE_TRUST_UNKNOWN";
- }
- }
- return "CKT_NETSCAPE_TRUST_UNKNOWN"; /* not reached */
-}
-
-static const SEC_ASN1Template serialTemplate[] = {
- { SEC_ASN1_INTEGER, offsetof(CERTCertificate,serialNumber) },
- { 0 }
-};
-
-static SECStatus
-ConvertCertificate(SECItem *sdder, char *nickname, CERTCertTrust *trust)
-{
- SECStatus rv = SECSuccess;
- CERTCertificate *cert;
- unsigned char sha1_hash[SHA1_LENGTH];
- unsigned char md5_hash[MD5_LENGTH];
- SECItem *serial = NULL;
-
- cert = CERT_DecodeDERCertificate(sdder, PR_FALSE, nickname);
- if (!cert) {
- return SECFailure;
- }
- serial = SEC_ASN1EncodeItem(NULL,NULL,cert,serialTemplate);
- if (!serial) {
- return SECFailure;
- }
-
- printf("\n#\n# Certificate \"%s\"\n#\n",nickname);
- printf("CKA_CLASS CK_OBJECT_CLASS CKO_CERTIFICATE\n");
- printf("CKA_TOKEN CK_BBOOL CK_TRUE\n");
- printf("CKA_PRIVATE CK_BBOOL CK_FALSE\n");
- printf("CKA_MODIFIABLE CK_BBOOL CK_FALSE\n");
- printf("CKA_LABEL UTF8 \"%s\"\n",nickname);
- printf("CKA_CERTIFICATE_TYPE CK_CERTIFICATE_TYPE CKC_X_509\n");
- printf("CKA_SUBJECT MULTILINE_OCTAL\n");
- dumpbytes(cert->derSubject.data,cert->derSubject.len);
- printf("END\n");
- printf("CKA_ID UTF8 \"0\"\n");
- printf("CKA_ISSUER MULTILINE_OCTAL\n");
- dumpbytes(cert->derIssuer.data,cert->derIssuer.len);
- printf("END\n");
- printf("CKA_SERIAL_NUMBER MULTILINE_OCTAL\n");
- dumpbytes(serial->data,serial->len);
- printf("END\n");
- printf("CKA_VALUE MULTILINE_OCTAL\n");
- dumpbytes(sdder->data,sdder->len);
- printf("END\n");
-
- PK11_HashBuf(SEC_OID_SHA1, sha1_hash, sdder->data, sdder->len);
- PK11_HashBuf(SEC_OID_MD5, md5_hash, sdder->data, sdder->len);
- printf("\n# Trust for Certificate \"%s\"\n",nickname);
- printf("CKA_CLASS CK_OBJECT_CLASS CKO_NETSCAPE_TRUST\n");
- printf("CKA_TOKEN CK_BBOOL CK_TRUE\n");
- printf("CKA_PRIVATE CK_BBOOL CK_FALSE\n");
- printf("CKA_MODIFIABLE CK_BBOOL CK_FALSE\n");
- printf("CKA_LABEL UTF8 \"%s\"\n",nickname);
- printf("CKA_CERT_SHA1_HASH MULTILINE_OCTAL\n");
- dumpbytes(sha1_hash,SHA1_LENGTH);
- printf("END\n");
- printf("CKA_CERT_MD5_HASH MULTILINE_OCTAL\n");
- dumpbytes(md5_hash,MD5_LENGTH);
- printf("END\n");
-
- printf("CKA_ISSUER MULTILINE_OCTAL\n");
- dumpbytes(cert->derIssuer.data,cert->derIssuer.len);
- printf("END\n");
- printf("CKA_SERIAL_NUMBER MULTILINE_OCTAL\n");
- dumpbytes(serial->data,serial->len);
- printf("END\n");
-
- printf("CKA_TRUST_SERVER_AUTH CK_TRUST %s\n",
- getTrustString(trust->sslFlags));
- printf("CKA_TRUST_EMAIL_PROTECTION CK_TRUST %s\n",
- getTrustString(trust->emailFlags));
- printf("CKA_TRUST_CODE_SIGNING CK_TRUST %s\n",
- getTrustString(trust->objectSigningFlags));
-#ifdef notdef
- printf("CKA_TRUST_CLIENT_AUTH CK_TRUST CKT_NETSCAPE_TRUSTED\n");*/
- printf("CKA_TRUST_DIGITAL_SIGNATURE CK_TRUST CKT_NETSCAPE_TRUSTED_DELEGATOR\n");
- printf("CKA_TRUST_NON_REPUDIATION CK_TRUST CKT_NETSCAPE_TRUSTED_DELEGATOR\n");
- printf("CKA_TRUST_KEY_ENCIPHERMENT CK_TRUST CKT_NETSCAPE_TRUSTED_DELEGATOR\n");
- printf("CKA_TRUST_DATA_ENCIPHERMENT CK_TRUST CKT_NETSCAPE_TRUSTED_DELEGATOR\n");
- printf("CKA_TRUST_KEY_AGREEMENT CK_TRUST CKT_NETSCAPE_TRUSTED_DELEGATOR\n");
- printf("CKA_TRUST_KEY_CERT_SIGN CK_TRUST CKT_NETSCAPE_TRUSTED_DELEGATOR\n");
-#endif
- printf("CKA_TRUST_STEP_UP_APPROVED CK_BBOOL %s\n",
- trust->sslFlags & CERTDB_GOVT_APPROVED_CA ?
- "CK_TRUE" : "CK_FALSE");
-
-
- PORT_Free(sdder->data);
- return(rv);
-
-}
-
-void printheader() {
- printf("# \n"
-"# ***** BEGIN LICENSE BLOCK *****\n"
-"# Version: MPL 1.1/GPL 2.0/LGPL 2.1\n"
-"#\n"
-"# The contents of this file are subject to the Mozilla Public License Version\n"
-"# 1.1 (the \"License\"); you may not use this file except in compliance with\n"
-"# the License. You may obtain a copy of the License at\n"
-"# http://www.mozilla.org/MPL/\n"
-"#\n"
-"# Software distributed under the License is distributed on an \"AS IS\" basis,\n"
-"# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\n"
-"# for the specific language governing rights and limitations under the\n"
-"# License.\n"
-"#\n"
-"# The Original Code is the Netscape security libraries..\n"
-"#\n"
-"# The Initial Developer of the Original Code is\n"
-"# Netscape Communications Corporation.\n"
-"# Portions created by the Initial Developer are Copyright (C) 1994-2000\n"
-"# the Initial Developer. All Rights Reserved.\n"
-"#\n"
-"# Contributor(s):\n"
-"#\n"
-"# Alternatively, the contents of this file may be used under the terms of\n"
-"# either the GNU General Public License Version 2 or later (the \"GPL\"), or\n"
-"# the GNU Lesser General Public License Version 2.1 or later (the \"LGPL\"),\n"
-"# in which case the provisions of the GPL or the LGPL are applicable instead\n"
-"# of those above. If you wish to allow use of your version of this file only\n"
-"# under the terms of either the GPL or the LGPL, and not to allow others to\n"
-"# use your version of this file under the terms of the MPL, indicate your\n"
-"# decision by deleting the provisions above and replace them with the notice\n"
-"# and other provisions required by the GPL or the LGPL. If you do not delete\n"
-"# the provisions above, a recipient may use your version of this file under\n"
-"# the terms of any one of the MPL, the GPL or the LGPL.\n"
-"#\n"
-"# ***** END LICENSE BLOCK *****\n"
- "#\n"
- "CVS_ID \"@(#) $RCSfile$ $Revision$ $Date$\"\n"
- "\n"
- "#\n"
- "# certdata.txt\n"
- "#\n"
- "# This file contains the object definitions for the certs and other\n"
- "# information \"built into\" NSS.\n"
- "#\n"
- "# Object definitions:\n"
- "#\n"
- "# Certificates\n"
- "#\n"
- "# -- Attribute -- -- type -- -- value --\n"
- "# CKA_CLASS CK_OBJECT_CLASS CKO_CERTIFICATE\n"
- "# CKA_TOKEN CK_BBOOL CK_TRUE\n"
- "# CKA_PRIVATE CK_BBOOL CK_FALSE\n"
- "# CKA_MODIFIABLE CK_BBOOL CK_FALSE\n"
- "# CKA_LABEL UTF8 (varies)\n"
- "# CKA_CERTIFICATE_TYPE CK_CERTIFICATE_TYPE CKC_X_509\n"
- "# CKA_SUBJECT DER+base64 (varies)\n"
- "# CKA_ID byte array (varies)\n"
- "# CKA_ISSUER DER+base64 (varies)\n"
- "# CKA_SERIAL_NUMBER DER+base64 (varies)\n"
- "# CKA_VALUE DER+base64 (varies)\n"
- "# CKA_NETSCAPE_EMAIL ASCII7 (unused here)\n"
- "#\n"
- "# Trust\n"
- "#\n"
- "# -- Attribute -- -- type -- -- value --\n"
- "# CKA_CLASS CK_OBJECT_CLASS CKO_TRUST\n"
- "# CKA_TOKEN CK_BBOOL CK_TRUE\n"
- "# CKA_PRIVATE CK_BBOOL CK_FALSE\n"
- "# CKA_MODIFIABLE CK_BBOOL CK_FALSE\n"
- "# CKA_LABEL UTF8 (varies)\n"
- "# CKA_ISSUER DER+base64 (varies)\n"
- "# CKA_SERIAL_NUMBER DER+base64 (varies)\n"
- "# CKA_CERT_HASH binary+base64 (varies)\n"
- "# CKA_EXPIRES CK_DATE (not used here)\n"
- "# CKA_TRUST_DIGITAL_SIGNATURE CK_TRUST (varies)\n"
- "# CKA_TRUST_NON_REPUDIATION CK_TRUST (varies)\n"
- "# CKA_TRUST_KEY_ENCIPHERMENT CK_TRUST (varies)\n"
- "# CKA_TRUST_DATA_ENCIPHERMENT CK_TRUST (varies)\n"
- "# CKA_TRUST_KEY_AGREEMENT CK_TRUST (varies)\n"
- "# CKA_TRUST_KEY_CERT_SIGN CK_TRUST (varies)\n"
- "# CKA_TRUST_CRL_SIGN CK_TRUST (varies)\n"
- "# CKA_TRUST_SERVER_AUTH CK_TRUST (varies)\n"
- "# CKA_TRUST_CLIENT_AUTH CK_TRUST (varies)\n"
- "# CKA_TRUST_CODE_SIGNING CK_TRUST (varies)\n"
- "# CKA_TRUST_EMAIL_PROTECTION CK_TRUST (varies)\n"
- "# CKA_TRUST_IPSEC_END_SYSTEM CK_TRUST (varies)\n"
- "# CKA_TRUST_IPSEC_TUNNEL CK_TRUST (varies)\n"
- "# CKA_TRUST_IPSEC_USER CK_TRUST (varies)\n"
- "# CKA_TRUST_TIME_STAMPING CK_TRUST (varies)\n"
- "# (other trust attributes can be defined)\n"
- "#\n"
- "\n"
- "#\n"
- "# The object to tell NSS that this is a root list and we don't\n"
- "# have to go looking for others.\n"
- "#\n"
- "BEGINDATA\n"
- "CKA_CLASS CK_OBJECT_CLASS CKO_NETSCAPE_BUILTIN_ROOT_LIST\n"
- "CKA_TOKEN CK_BBOOL CK_TRUE\n"
- "CKA_PRIVATE CK_BBOOL CK_FALSE\n"
- "CKA_MODIFIABLE CK_BBOOL CK_FALSE\n"
- "CKA_LABEL UTF8 \"Mozilla Builtin Roots\"\n");
-}
-
-static void Usage(char *progName)
-{
- fprintf(stderr, "%s -n nickname -t trust [-i certfile]\n", progName);
- fprintf(stderr,
- "\tRead a der-encoded cert from certfile or stdin, and output\n"
- "\tit to stdout in a format suitable for the builtin root module.\n"
- "\tExample: %s -n MyCA -t \"C,C,C\" -i myca.der >> certdata.txt\n"
- "\t(pipe through atob if the cert is b64-encoded)\n", progName);
- fprintf(stderr, "%-15s nickname to assign to builtin cert.\n",
- "-n nickname");
- fprintf(stderr, "%-15s trust flags (cCTpPuw).\n", "-t trust");
- fprintf(stderr, "%-15s file to read (default stdin)\n", "-i certfile");
- exit(-1);
-}
-
-enum {
- opt_Input = 0,
- opt_Nickname,
- opt_Trust
-};
-
-static secuCommandFlag addbuiltin_options[] =
-{
- { /* opt_Input */ 'i', PR_TRUE, 0, PR_FALSE },
- { /* opt_Nickname */ 'n', PR_TRUE, 0, PR_FALSE },
- { /* opt_Trust */ 't', PR_TRUE, 0, PR_FALSE }
-};
-
-int main(int argc, char **argv)
-{
- SECStatus rv;
- char *nickname;
- char *trusts;
- char *progName;
- PRFileDesc *infile;
- CERTCertTrust trust = { 0 };
- SECItem derCert = { 0 };
-
- secuCommand addbuiltin = { 0 };
- addbuiltin.numOptions = sizeof(addbuiltin_options)/sizeof(secuCommandFlag);
- addbuiltin.options = addbuiltin_options;
-
- progName = strrchr(argv[0], '/');
- progName = progName ? progName+1 : argv[0];
-
- rv = SECU_ParseCommandLine(argc, argv, progName, &addbuiltin);
-
- if (rv != SECSuccess)
- Usage(progName);
-
- if (!addbuiltin.options[opt_Nickname].activated &&
- !addbuiltin.options[opt_Trust].activated) {
- fprintf(stderr, "%s: you must specify both a nickname and trust.\n",
- progName);
- Usage(progName);
- }
-
- if (addbuiltin.options[opt_Input].activated) {
- infile = PR_Open(addbuiltin.options[opt_Input].arg, PR_RDONLY, 00660);
- if (!infile) {
- fprintf(stderr, "%s: failed to open input file.\n", progName);
- exit(1);
- }
- } else {
-#if defined(WIN32)
- /* If we're going to read binary data from stdin, we must put stdin
- ** into O_BINARY mode or else incoming \r\n's will become \n's,
- ** and latin-1 characters will be altered.
- */
-
- int smrv = _setmode(_fileno(stdin), _O_BINARY);
- if (smrv == -1) {
- fprintf(stderr,
- "%s: Cannot change stdin to binary mode. Use -i option instead.\n",
- progName);
- exit(1);
- }
-#endif
- infile = PR_STDIN;
- }
-
- nickname = strdup(addbuiltin.options[opt_Nickname].arg);
- trusts = strdup(addbuiltin.options[opt_Trust].arg);
-
- NSS_NoDB_Init(NULL);
-
- rv = CERT_DecodeTrustString(&trust, trusts);
- if (rv) {
- fprintf(stderr, "%s: incorrectly formatted trust string.\n", progName);
- Usage(progName);
- }
-
- SECU_FileToItem(&derCert, infile);
-
- /*printheader();*/
-
- rv = ConvertCertificate(&derCert, nickname, &trust);
- if (rv) {
- fprintf(stderr, "%s: failed to convert certificate.\n", progName);
- exit(1);
- }
-
- if (NSS_Shutdown() != SECSuccess) {
- exit(1);
- }
-
- return(SECSuccess);
-}
diff --git a/security/nss/cmd/addbuiltin/manifest.mn b/security/nss/cmd/addbuiltin/manifest.mn
deleted file mode 100644
index 0729834a72..0000000000
--- a/security/nss/cmd/addbuiltin/manifest.mn
+++ /dev/null
@@ -1,52 +0,0 @@
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-CORE_DEPTH = ../../..
-
-# MODULE public and private header directories are implicitly REQUIRED.
-MODULE = nss
-
-CSRCS = \
- addbuiltin.c \
- $(NULL)
-
-# The MODULE is always implicitly required.
-# Listing it here in REQUIRES makes it appear twice in the cc command line.
-REQUIRES = seccmd
-
-PROGRAM = addbuiltin
-
diff --git a/security/nss/cmd/atob/Makefile b/security/nss/cmd/atob/Makefile
deleted file mode 100644
index 61e2cb3598..0000000000
--- a/security/nss/cmd/atob/Makefile
+++ /dev/null
@@ -1,80 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-#######################################################################
-# (1) Include initial platform-independent assignments (MANDATORY). #
-#######################################################################
-
-include manifest.mn
-
-#######################################################################
-# (2) Include "global" configuration information. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/config.mk
-
-#######################################################################
-# (3) Include "component" configuration information. (OPTIONAL) #
-#######################################################################
-
-#######################################################################
-# (4) Include "local" platform-dependent assignments (OPTIONAL). #
-#######################################################################
-
-include ../platlibs.mk
-
-
-#######################################################################
-# (5) Execute "global" rules. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/rules.mk
-
-#######################################################################
-# (6) Execute "component" rules. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (7) Execute "local" rules. (OPTIONAL). #
-#######################################################################
-
-
-include ../platrules.mk
-
diff --git a/security/nss/cmd/atob/atob.c b/security/nss/cmd/atob/atob.c
deleted file mode 100644
index e5fad05ecf..0000000000
--- a/security/nss/cmd/atob/atob.c
+++ /dev/null
@@ -1,180 +0,0 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is the Netscape security libraries.
- *
- * The Initial Developer of the Original Code is
- * Netscape Communications Corporation.
- * Portions created by the Initial Developer are Copyright (C) 1994-2000
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-#include "plgetopt.h"
-#include "secutil.h"
-#include "nssb64.h"
-#include
-
-#if defined(XP_WIN) || (defined(__sun) && !defined(SVR4))
-#if !defined(WIN32)
-extern int fread(char *, size_t, size_t, FILE*);
-extern int fwrite(char *, size_t, size_t, FILE*);
-extern int fprintf(FILE *, char *, ...);
-#endif
-#endif
-
-#if defined(WIN32)
-#include "fcntl.h"
-#include "io.h"
-#endif
-
-static PRInt32
-output_binary (void *arg, const unsigned char *obuf, PRInt32 size)
-{
- FILE *outFile = arg;
- int nb;
-
- nb = fwrite(obuf, 1, size, outFile);
- if (nb != size) {
- PORT_SetError(SEC_ERROR_IO);
- return -1;
- }
-
- return nb;
-}
-
-static SECStatus
-decode_file(FILE *outFile, FILE *inFile)
-{
- NSSBase64Decoder *cx;
- int nb;
- SECStatus status = SECFailure;
- char ibuf[4096];
-
- cx = NSSBase64Decoder_Create(output_binary, outFile);
- if (!cx) {
- return -1;
- }
-
- for (;;) {
- if (feof(inFile)) break;
- nb = fread(ibuf, 1, sizeof(ibuf), inFile);
- if (nb != sizeof(ibuf)) {
- if (nb == 0) {
- if (ferror(inFile)) {
- PORT_SetError(SEC_ERROR_IO);
- goto loser;
- }
- /* eof */
- break;
- }
- }
-
- status = NSSBase64Decoder_Update(cx, ibuf, nb);
- if (status != SECSuccess) goto loser;
- }
-
- return NSSBase64Decoder_Destroy(cx, PR_FALSE);
-
- loser:
- (void) NSSBase64Decoder_Destroy(cx, PR_TRUE);
- return status;
-}
-
-static void Usage(char *progName)
-{
- fprintf(stderr,
- "Usage: %s [-i input] [-o output]\n",
- progName);
- fprintf(stderr, "%-20s Define an input file to use (default is stdin)\n",
- "-i input");
- fprintf(stderr, "%-20s Define an output file to use (default is stdout)\n",
- "-o output");
- exit(-1);
-}
-
-int main(int argc, char **argv)
-{
- char *progName;
- SECStatus rv;
- FILE *inFile, *outFile;
- PLOptState *optstate;
- PLOptStatus status;
-
- inFile = 0;
- outFile = 0;
- progName = strrchr(argv[0], '/');
- progName = progName ? progName+1 : argv[0];
-
- /* Parse command line arguments */
- optstate = PL_CreateOptState(argc, argv, "i:o:");
- while ((status = PL_GetNextOpt(optstate)) == PL_OPT_OK) {
- switch (optstate->option) {
- case '?':
- Usage(progName);
- break;
-
- case 'i':
- inFile = fopen(optstate->value, "r");
- if (!inFile) {
- fprintf(stderr, "%s: unable to open \"%s\" for reading\n",
- progName, optstate->value);
- return -1;
- }
- break;
-
- case 'o':
- outFile = fopen(optstate->value, "wb");
- if (!outFile) {
- fprintf(stderr, "%s: unable to open \"%s\" for writing\n",
- progName, optstate->value);
- return -1;
- }
- break;
- }
- }
- if (!inFile) inFile = stdin;
- if (!outFile) {
-#if defined(WIN32)
- int smrv = _setmode(_fileno(stdout), _O_BINARY);
- if (smrv == -1) {
- fprintf(stderr,
- "%s: Cannot change stdout to binary mode. Use -o option instead.\n",
- progName);
- return smrv;
- }
-#endif
- outFile = stdout;
- }
- rv = decode_file(outFile, inFile);
- if (rv != SECSuccess) {
- fprintf(stderr, "%s: lossage: error=%d errno=%d\n",
- progName, PORT_GetError(), errno);
- return -1;
- }
- return 0;
-}
diff --git a/security/nss/cmd/atob/manifest.mn b/security/nss/cmd/atob/manifest.mn
deleted file mode 100644
index 363cad1923..0000000000
--- a/security/nss/cmd/atob/manifest.mn
+++ /dev/null
@@ -1,54 +0,0 @@
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-CORE_DEPTH = ../../..
-
-# MODULE public and private header directories are implicitly REQUIRED.
-MODULE = nss
-
-# This next line is used by .mk files
-# and gets translated into $LINCS in manifest.mnw
-# The MODULE is always implicitly required.
-# Listing it here in REQUIRES makes it appear twice in the cc command line.
-REQUIRES = seccmd dbm
-
-DEFINES = -DNSPR20
-
-CSRCS = atob.c
-
-PROGRAM = atob
-
diff --git a/security/nss/cmd/bltest/Makefile b/security/nss/cmd/bltest/Makefile
deleted file mode 100644
index 115886cd75..0000000000
--- a/security/nss/cmd/bltest/Makefile
+++ /dev/null
@@ -1,86 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-#######################################################################
-# (1) Include initial platform-independent assignments (MANDATORY). #
-#######################################################################
-
-include manifest.mn
-#MKPROG = purify -cache-dir=/u/mcgreer/pcache -best-effort \
-# -always-use-cache-dir $(CC)
-
-#######################################################################
-# (2) Include "global" configuration information. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/config.mk
-
-#######################################################################
-# (3) Include "component" configuration information. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (4) Include "local" platform-dependent assignments (OPTIONAL). #
-#######################################################################
-
-include ../platlibs.mk
-
-#EXTRA_SHARED_LIBS += \
-# -L/usr/lib \
-# -lposix4 \
-# $(NULL)
-
-#######################################################################
-# (5) Execute "global" rules. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/rules.mk
-
-#######################################################################
-# (6) Execute "component" rules. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (7) Execute "local" rules. (OPTIONAL). #
-#######################################################################
-
-include ../platrules.mk
diff --git a/security/nss/cmd/bltest/blapitest.c b/security/nss/cmd/bltest/blapitest.c
deleted file mode 100644
index 051ea7c43d..0000000000
--- a/security/nss/cmd/bltest/blapitest.c
+++ /dev/null
@@ -1,3745 +0,0 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is the Netscape security libraries.
- *
- * The Initial Developer of the Original Code is
- * Netscape Communications Corporation.
- * Portions created by the Initial Developer are Copyright (C) 1994-2000
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- * Douglas Stebila , Sun Microsystems Laboratories
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-#include
-#include
-
-#include "blapi.h"
-#include "secrng.h"
-#include "prmem.h"
-#include "prprf.h"
-#include "prtime.h"
-#include "prsystem.h"
-#include "plstr.h"
-#include "nssb64.h"
-#include "secutil.h"
-#include "plgetopt.h"
-#include "softoken.h"
-#include "nspr.h"
-#include "nss.h"
-#include "secoid.h"
-
-#ifdef NSS_ENABLE_ECC
-#include "ecl-curve.h"
-SECStatus EC_DecodeParams(const SECItem *encodedParams,
- ECParams **ecparams);
-SECStatus EC_CopyParams(PRArenaPool *arena, ECParams *dstParams,
- const ECParams *srcParams);
-#endif
-
-/* Temporary - add debugging ouput on windows for RSA to track QA failure */
-#ifdef _WIN32
-#define TRACK_BLTEST_BUG
- char __bltDBG[] = "BLTEST DEBUG";
-#endif
-
-char *progName;
-char *testdir = NULL;
-
-#define BLTEST_DEFAULT_CHUNKSIZE 4096
-
-#define WORDSIZE sizeof(unsigned long)
-
-#define CHECKERROR(rv, ln) \
- if (rv) { \
- PRErrorCode prerror = PR_GetError(); \
- PR_fprintf(PR_STDERR, "%s: ERR %d (%s) at line %d.\n", progName, \
- prerror, SECU_Strerror(prerror), ln); \
- exit(-1); \
- }
-
-/* Macros for performance timing. */
-#define TIMESTART() \
- time1 = PR_IntervalNow();
-
-#define TIMEFINISH(time, reps) \
- time2 = (PRIntervalTime)(PR_IntervalNow() - time1); \
- time1 = PR_IntervalToMilliseconds(time2); \
- time = ((double)(time1))/reps;
-
-#define TIMEMARK(seconds) \
- time1 = PR_SecondsToInterval(seconds); \
- { \
- PRInt64 tmp, L100; \
- LL_I2L(L100, 100); \
- if (time2 == 0) { \
- time2 = 1; \
- } \
- LL_DIV(tmp, time1, time2); \
- if (tmp < 10) { \
- if (tmp == 0) { \
- opsBetweenChecks = 1; \
- } else { \
- LL_L2I(opsBetweenChecks, tmp); \
- } \
- } else { \
- opsBetweenChecks = 10; \
- } \
- } \
- time2 = time1; \
- time1 = PR_IntervalNow();
-
-#define TIMETOFINISH() \
- PR_IntervalNow() - time1 >= time2
-
-static void Usage()
-{
-#define PRINTUSAGE(subject, option, predicate) \
- fprintf(stderr, "%10s %s\t%s\n", subject, option, predicate);
- fprintf(stderr, "\n");
- PRINTUSAGE(progName, "[-DEHSV]", "List available cipher modes"); /* XXX */
- fprintf(stderr, "\n");
- PRINTUSAGE(progName, "-E -m mode ", "Encrypt a buffer");
- PRINTUSAGE("", "", "[-i plaintext] [-o ciphertext] [-k key] [-v iv]");
- PRINTUSAGE("", "", "[-b bufsize] [-g keysize] [-e exp] [-r rounds]");
- PRINTUSAGE("", "", "[-w wordsize] [-p repetitions | -5 time_interval]");
- PRINTUSAGE("", "", "[-4 th_num]");
- PRINTUSAGE("", "-m", "cipher mode to use");
- PRINTUSAGE("", "-i", "file which contains input buffer");
- PRINTUSAGE("", "-o", "file for output buffer");
- PRINTUSAGE("", "-k", "file which contains key");
- PRINTUSAGE("", "-v", "file which contains initialization vector");
- PRINTUSAGE("", "-b", "size of input buffer");
- PRINTUSAGE("", "-g", "key size (in bytes)");
- PRINTUSAGE("", "-p", "do performance test");
- PRINTUSAGE("", "-4", "run test in multithread mode. th_num number of parallel threads");
- PRINTUSAGE("", "-5", "run test for specified time interval(in seconds)");
- PRINTUSAGE("(rsa)", "-e", "rsa public exponent");
- PRINTUSAGE("(rc5)", "-r", "number of rounds");
- PRINTUSAGE("(rc5)", "-w", "wordsize (32 or 64)");
- fprintf(stderr, "\n");
- PRINTUSAGE(progName, "-D -m mode", "Decrypt a buffer");
- PRINTUSAGE("", "", "[-i plaintext] [-o ciphertext] [-k key] [-v iv]");
- PRINTUSAGE("", "", "[-p repetitions | -5 time_interval] [-4 th_num]");
- PRINTUSAGE("", "-m", "cipher mode to use");
- PRINTUSAGE("", "-i", "file which contains input buffer");
- PRINTUSAGE("", "-o", "file for output buffer");
- PRINTUSAGE("", "-k", "file which contains key");
- PRINTUSAGE("", "-v", "file which contains initialization vector");
- PRINTUSAGE("", "-p", "do performance test");
- PRINTUSAGE("", "-4", "run test in multithread mode. th_num number of parallel threads");
- PRINTUSAGE("", "-5", "run test for specified time interval(in seconds)");
- fprintf(stderr, "\n");
- PRINTUSAGE(progName, "-H -m mode", "Hash a buffer");
- PRINTUSAGE("", "", "[-i plaintext] [-o hash]");
- PRINTUSAGE("", "", "[-b bufsize]");
- PRINTUSAGE("", "", "[-p repetitions | -5 time_interval] [-4 th_num]");
- PRINTUSAGE("", "-m", "cipher mode to use");
- PRINTUSAGE("", "-i", "file which contains input buffer");
- PRINTUSAGE("", "-o", "file for hash");
- PRINTUSAGE("", "-b", "size of input buffer");
- PRINTUSAGE("", "-p", "do performance test");
- PRINTUSAGE("", "-4", "run test in multithread mode. th_num number of parallel threads");
- PRINTUSAGE("", "-5", "run test for specified time interval(in seconds)");
- fprintf(stderr, "\n");
- PRINTUSAGE(progName, "-S -m mode", "Sign a buffer");
- PRINTUSAGE("", "", "[-i plaintext] [-o signature] [-k key]");
- PRINTUSAGE("", "", "[-b bufsize]");
-#ifdef NSS_ENABLE_ECC
- PRINTUSAGE("", "", "[-n curvename]");
-#endif
- PRINTUSAGE("", "", "[-p repetitions | -5 time_interval] [-4 th_num]");
- PRINTUSAGE("", "-m", "cipher mode to use");
- PRINTUSAGE("", "-i", "file which contains input buffer");
- PRINTUSAGE("", "-o", "file for signature");
- PRINTUSAGE("", "-k", "file which contains key");
-#ifdef NSS_ENABLE_ECC
- PRINTUSAGE("", "-n", "name of curve for EC key generation; one of:");
- PRINTUSAGE("", "", " sect163k1, nistk163, sect163r1, sect163r2,");
- PRINTUSAGE("", "", " nistb163, sect193r1, sect193r2, sect233k1, nistk233,");
- PRINTUSAGE("", "", " sect233r1, nistb233, sect239k1, sect283k1, nistk283,");
- PRINTUSAGE("", "", " sect283r1, nistb283, sect409k1, nistk409, sect409r1,");
- PRINTUSAGE("", "", " nistb409, sect571k1, nistk571, sect571r1, nistb571,");
- PRINTUSAGE("", "", " secp160k1, secp160r1, secp160r2, secp192k1, secp192r1,");
- PRINTUSAGE("", "", " nistp192, secp224k1, secp224r1, nistp224, secp256k1,");
- PRINTUSAGE("", "", " secp256r1, nistp256, secp384r1, nistp384, secp521r1,");
- PRINTUSAGE("", "", " nistp521, prime192v1, prime192v2, prime192v3,");
- PRINTUSAGE("", "", " prime239v1, prime239v2, prime239v3, c2pnb163v1,");
- PRINTUSAGE("", "", " c2pnb163v2, c2pnb163v3, c2pnb176v1, c2tnb191v1,");
- PRINTUSAGE("", "", " c2tnb191v2, c2tnb191v3, c2onb191v4, c2onb191v5,");
- PRINTUSAGE("", "", " c2pnb208w1, c2tnb239v1, c2tnb239v2, c2tnb239v3,");
- PRINTUSAGE("", "", " c2onb239v4, c2onb239v5, c2pnb272w1, c2pnb304w1,");
- PRINTUSAGE("", "", " c2tnb359w1, c2pnb368w1, c2tnb431r1, secp112r1,");
- PRINTUSAGE("", "", " secp112r2, secp128r1, secp128r2, sect113r1, sect113r2,");
- PRINTUSAGE("", "", " sect131r1, sect131r2");
-#endif
- PRINTUSAGE("", "-p", "do performance test");
- PRINTUSAGE("", "-4", "run test in multithread mode. th_num number of parallel threads");
- PRINTUSAGE("", "-5", "run test for specified time interval(in seconds)");
- fprintf(stderr, "\n");
- PRINTUSAGE(progName, "-V -m mode", "Verify a signed buffer");
- PRINTUSAGE("", "", "[-i plaintext] [-s signature] [-k key]");
- PRINTUSAGE("", "", "[-p repetitions | -5 time_interval] [-4 th_num]");
- PRINTUSAGE("", "-m", "cipher mode to use");
- PRINTUSAGE("", "-i", "file which contains input buffer");
- PRINTUSAGE("", "-s", "file which contains signature of input buffer");
- PRINTUSAGE("", "-k", "file which contains key");
- PRINTUSAGE("", "-p", "do performance test");
- PRINTUSAGE("", "-4", "run test in multithread mode. th_num number of parallel threads");
- PRINTUSAGE("", "-5", "run test for specified time interval(in seconds)");
- fprintf(stderr, "\n");
- PRINTUSAGE(progName, "-N -m mode -b bufsize",
- "Create a nonce plaintext and key");
- PRINTUSAGE("", "", "[-g keysize] [-u cxreps]");
- PRINTUSAGE("", "-g", "key size (in bytes)");
- PRINTUSAGE("", "-u", "number of repetitions of context creation");
- fprintf(stderr, "\n");
- PRINTUSAGE(progName, "-F", "Run the FIPS self-test");
- fprintf(stderr, "\n");
- PRINTUSAGE(progName, "-T [-m mode1,mode2...]", "Run the BLAPI self-test");
- fprintf(stderr, "\n");
- exit(1);
-}
-
-/* Helper functions for ascii<-->binary conversion/reading/writing */
-
-/* XXX argh */
-struct item_with_arena {
- SECItem *item;
- PRArenaPool *arena;
-};
-
-static PRInt32
-get_binary(void *arg, const unsigned char *ibuf, PRInt32 size)
-{
- struct item_with_arena *it = arg;
- SECItem *binary = it->item;
- SECItem *tmp;
- int index;
- if (binary->data == NULL) {
- tmp = SECITEM_AllocItem(it->arena, NULL, size);
- binary->data = tmp->data;
- binary->len = tmp->len;
- index = 0;
- } else {
- SECITEM_ReallocItem(NULL, binary, binary->len, binary->len + size);
- index = binary->len;
- }
- PORT_Memcpy(&binary->data[index], ibuf, size);
- return binary->len;
-}
-
-static SECStatus
-atob(SECItem *ascii, SECItem *binary, PRArenaPool *arena)
-{
- SECStatus status;
- NSSBase64Decoder *cx;
- struct item_with_arena it;
- int len;
- binary->data = NULL;
- binary->len = 0;
- it.item = binary;
- it.arena = arena;
- len = (strncmp(&ascii->data[ascii->len-2],"\r\n",2)) ?
- ascii->len : ascii->len-2;
- cx = NSSBase64Decoder_Create(get_binary, &it);
- status = NSSBase64Decoder_Update(cx, (const char *)ascii->data, len);
- status = NSSBase64Decoder_Destroy(cx, PR_FALSE);
- return status;
-}
-
-static PRInt32
-output_ascii(void *arg, const char *obuf, PRInt32 size)
-{
- PRFileDesc *outfile = arg;
- PRInt32 nb = PR_Write(outfile, obuf, size);
- if (nb != size) {
- PORT_SetError(SEC_ERROR_IO);
- return -1;
- }
- return nb;
-}
-
-static SECStatus
-btoa_file(SECItem *binary, PRFileDesc *outfile)
-{
- SECStatus status;
- NSSBase64Encoder *cx;
- SECItem ascii;
- ascii.data = NULL;
- ascii.len = 0;
- if (binary->len == 0)
- return SECSuccess;
- cx = NSSBase64Encoder_Create(output_ascii, outfile);
- status = NSSBase64Encoder_Update(cx, binary->data, binary->len);
- status = NSSBase64Encoder_Destroy(cx, PR_FALSE);
- status = PR_Write(outfile, "\r\n", 2);
- return status;
-}
-
-SECStatus
-hex_from_2char(unsigned char *c2, unsigned char *byteval)
-{
- int i;
- unsigned char offset;
- *byteval = 0;
- for (i=0; i<2; i++) {
- if (c2[i] >= '0' && c2[i] <= '9') {
- offset = c2[i] - '0';
- *byteval |= offset << 4*(1-i);
- } else if (c2[i] >= 'a' && c2[i] <= 'f') {
- offset = c2[i] - 'a';
- *byteval |= (offset + 10) << 4*(1-i);
- } else if (c2[i] >= 'A' && c2[i] <= 'F') {
- offset = c2[i] - 'A';
- *byteval |= (offset + 10) << 4*(1-i);
- } else {
- return SECFailure;
- }
- }
- return SECSuccess;
-}
-
-SECStatus
-char2_from_hex(unsigned char byteval, unsigned char *c2)
-{
- int i;
- unsigned char offset;
- for (i=0; i<2; i++) {
- offset = (byteval >> 4*(1-i)) & 0x0f;
- if (offset < 10) {
- c2[i] = '0' + offset;
- } else {
- c2[i] = 'A' + offset - 10;
- }
- }
- return SECSuccess;
-}
-
-void
-serialize_key(SECItem *it, int ni, PRFileDesc *file)
-{
- unsigned char len[4];
- int i;
- SECStatus status;
- NSSBase64Encoder *cx;
- SECItem ascii;
- ascii.data = NULL;
- ascii.len = 0;
- cx = NSSBase64Encoder_Create(output_ascii, file);
- for (i=0; ilen >> 24) & 0xff;
- len[1] = (it->len >> 16) & 0xff;
- len[2] = (it->len >> 8) & 0xff;
- len[3] = (it->len & 0xff);
- status = NSSBase64Encoder_Update(cx, len, 4);
- status = NSSBase64Encoder_Update(cx, it->data, it->len);
- }
- status = NSSBase64Encoder_Destroy(cx, PR_FALSE);
- status = PR_Write(file, "\r\n", 2);
-}
-
-void
-key_from_filedata(PRArenaPool *arena, SECItem *it, int ns, int ni, SECItem *filedata)
-{
- int fpos = 0;
- int i, len;
- unsigned char *buf = filedata->data;
- for (i=0; i 0) {
- it->len = len;
- it->data = PORT_ArenaAlloc(arena, it->len);
- PORT_Memcpy(it->data, &buf[fpos], it->len);
- } else {
- it->len = 0;
- it->data = NULL;
- }
- it++;
- }
- fpos += len;
- }
-}
-
-static RSAPrivateKey *
-rsakey_from_filedata(SECItem *filedata)
-{
- RSAPrivateKey *key;
- PRArenaPool *arena;
- arena = PORT_NewArena(BLTEST_DEFAULT_CHUNKSIZE);
- key = (RSAPrivateKey *)PORT_ArenaZAlloc(arena, sizeof(RSAPrivateKey));
- key->arena = arena;
- key_from_filedata(arena, &key->version, 0, 9, filedata);
- return key;
-}
-
-static PQGParams *
-pqg_from_filedata(SECItem *filedata)
-{
- PQGParams *pqg;
- PRArenaPool *arena;
- arena = PORT_NewArena(BLTEST_DEFAULT_CHUNKSIZE);
- pqg = (PQGParams *)PORT_ArenaZAlloc(arena, sizeof(PQGParams));
- pqg->arena = arena;
- key_from_filedata(arena, &pqg->prime, 0, 3, filedata);
- return pqg;
-}
-
-static DSAPrivateKey *
-dsakey_from_filedata(SECItem *filedata)
-{
- DSAPrivateKey *key;
- PRArenaPool *arena;
- arena = PORT_NewArena(BLTEST_DEFAULT_CHUNKSIZE);
- key = (DSAPrivateKey *)PORT_ArenaZAlloc(arena, sizeof(DSAPrivateKey));
- key->params.arena = arena;
- key_from_filedata(arena, &key->params.prime, 0, 5, filedata);
- return key;
-}
-
-#ifdef NSS_ENABLE_ECC
-static ECPrivateKey *
-eckey_from_filedata(SECItem *filedata)
-{
- ECPrivateKey *key;
- PRArenaPool *arena;
- SECStatus rv;
- ECParams *tmpECParams = NULL;
- arena = PORT_NewArena(BLTEST_DEFAULT_CHUNKSIZE);
- key = (ECPrivateKey *)PORT_ArenaZAlloc(arena, sizeof(ECPrivateKey));
- /* read and convert params */
- key->ecParams.arena = arena;
- key_from_filedata(arena, &key->ecParams.DEREncoding, 0, 1, filedata);
- rv = SECOID_Init();
- CHECKERROR(rv, __LINE__);
- rv = EC_DecodeParams(&key->ecParams.DEREncoding, &tmpECParams);
- CHECKERROR(rv, __LINE__);
- rv = EC_CopyParams(key->ecParams.arena, &key->ecParams, tmpECParams);
- CHECKERROR(rv, __LINE__);
- rv = SECOID_Shutdown();
- CHECKERROR(rv, __LINE__);
- PORT_FreeArena(tmpECParams->arena, PR_TRUE);
- /* read key */
- key_from_filedata(arena, &key->publicValue, 1, 3, filedata);
- return key;
-}
-
-typedef struct curveNameTagPairStr {
- char *curveName;
- SECOidTag curveOidTag;
-} CurveNameTagPair;
-
-#define DEFAULT_CURVE_OID_TAG SEC_OID_SECG_EC_SECP192R1
-/* #define DEFAULT_CURVE_OID_TAG SEC_OID_SECG_EC_SECP160R1 */
-
-static CurveNameTagPair nameTagPair[] =
-{
- { "sect163k1", SEC_OID_SECG_EC_SECT163K1},
- { "nistk163", SEC_OID_SECG_EC_SECT163K1},
- { "sect163r1", SEC_OID_SECG_EC_SECT163R1},
- { "sect163r2", SEC_OID_SECG_EC_SECT163R2},
- { "nistb163", SEC_OID_SECG_EC_SECT163R2},
- { "sect193r1", SEC_OID_SECG_EC_SECT193R1},
- { "sect193r2", SEC_OID_SECG_EC_SECT193R2},
- { "sect233k1", SEC_OID_SECG_EC_SECT233K1},
- { "nistk233", SEC_OID_SECG_EC_SECT233K1},
- { "sect233r1", SEC_OID_SECG_EC_SECT233R1},
- { "nistb233", SEC_OID_SECG_EC_SECT233R1},
- { "sect239k1", SEC_OID_SECG_EC_SECT239K1},
- { "sect283k1", SEC_OID_SECG_EC_SECT283K1},
- { "nistk283", SEC_OID_SECG_EC_SECT283K1},
- { "sect283r1", SEC_OID_SECG_EC_SECT283R1},
- { "nistb283", SEC_OID_SECG_EC_SECT283R1},
- { "sect409k1", SEC_OID_SECG_EC_SECT409K1},
- { "nistk409", SEC_OID_SECG_EC_SECT409K1},
- { "sect409r1", SEC_OID_SECG_EC_SECT409R1},
- { "nistb409", SEC_OID_SECG_EC_SECT409R1},
- { "sect571k1", SEC_OID_SECG_EC_SECT571K1},
- { "nistk571", SEC_OID_SECG_EC_SECT571K1},
- { "sect571r1", SEC_OID_SECG_EC_SECT571R1},
- { "nistb571", SEC_OID_SECG_EC_SECT571R1},
- { "secp160k1", SEC_OID_SECG_EC_SECP160K1},
- { "secp160r1", SEC_OID_SECG_EC_SECP160R1},
- { "secp160r2", SEC_OID_SECG_EC_SECP160R2},
- { "secp192k1", SEC_OID_SECG_EC_SECP192K1},
- { "secp192r1", SEC_OID_SECG_EC_SECP192R1},
- { "nistp192", SEC_OID_SECG_EC_SECP192R1},
- { "secp224k1", SEC_OID_SECG_EC_SECP224K1},
- { "secp224r1", SEC_OID_SECG_EC_SECP224R1},
- { "nistp224", SEC_OID_SECG_EC_SECP224R1},
- { "secp256k1", SEC_OID_SECG_EC_SECP256K1},
- { "secp256r1", SEC_OID_SECG_EC_SECP256R1},
- { "nistp256", SEC_OID_SECG_EC_SECP256R1},
- { "secp384r1", SEC_OID_SECG_EC_SECP384R1},
- { "nistp384", SEC_OID_SECG_EC_SECP384R1},
- { "secp521r1", SEC_OID_SECG_EC_SECP521R1},
- { "nistp521", SEC_OID_SECG_EC_SECP521R1},
-
- { "prime192v1", SEC_OID_ANSIX962_EC_PRIME192V1 },
- { "prime192v2", SEC_OID_ANSIX962_EC_PRIME192V2 },
- { "prime192v3", SEC_OID_ANSIX962_EC_PRIME192V3 },
- { "prime239v1", SEC_OID_ANSIX962_EC_PRIME239V1 },
- { "prime239v2", SEC_OID_ANSIX962_EC_PRIME239V2 },
- { "prime239v3", SEC_OID_ANSIX962_EC_PRIME239V3 },
-
- { "c2pnb163v1", SEC_OID_ANSIX962_EC_C2PNB163V1 },
- { "c2pnb163v2", SEC_OID_ANSIX962_EC_C2PNB163V2 },
- { "c2pnb163v3", SEC_OID_ANSIX962_EC_C2PNB163V3 },
- { "c2pnb176v1", SEC_OID_ANSIX962_EC_C2PNB176V1 },
- { "c2tnb191v1", SEC_OID_ANSIX962_EC_C2TNB191V1 },
- { "c2tnb191v2", SEC_OID_ANSIX962_EC_C2TNB191V2 },
- { "c2tnb191v3", SEC_OID_ANSIX962_EC_C2TNB191V3 },
- { "c2onb191v4", SEC_OID_ANSIX962_EC_C2ONB191V4 },
- { "c2onb191v5", SEC_OID_ANSIX962_EC_C2ONB191V5 },
- { "c2pnb208w1", SEC_OID_ANSIX962_EC_C2PNB208W1 },
- { "c2tnb239v1", SEC_OID_ANSIX962_EC_C2TNB239V1 },
- { "c2tnb239v2", SEC_OID_ANSIX962_EC_C2TNB239V2 },
- { "c2tnb239v3", SEC_OID_ANSIX962_EC_C2TNB239V3 },
- { "c2onb239v4", SEC_OID_ANSIX962_EC_C2ONB239V4 },
- { "c2onb239v5", SEC_OID_ANSIX962_EC_C2ONB239V5 },
- { "c2pnb272w1", SEC_OID_ANSIX962_EC_C2PNB272W1 },
- { "c2pnb304w1", SEC_OID_ANSIX962_EC_C2PNB304W1 },
- { "c2tnb359v1", SEC_OID_ANSIX962_EC_C2TNB359V1 },
- { "c2pnb368w1", SEC_OID_ANSIX962_EC_C2PNB368W1 },
- { "c2tnb431r1", SEC_OID_ANSIX962_EC_C2TNB431R1 },
-
- { "secp112r1", SEC_OID_SECG_EC_SECP112R1},
- { "secp112r2", SEC_OID_SECG_EC_SECP112R2},
- { "secp128r1", SEC_OID_SECG_EC_SECP128R1},
- { "secp128r2", SEC_OID_SECG_EC_SECP128R2},
-
- { "sect113r1", SEC_OID_SECG_EC_SECT113R1},
- { "sect113r2", SEC_OID_SECG_EC_SECT113R2},
- { "sect131r1", SEC_OID_SECG_EC_SECT131R1},
- { "sect131r2", SEC_OID_SECG_EC_SECT131R2},
-};
-
-static SECKEYECParams *
-getECParams(const char *curve)
-{
- SECKEYECParams *ecparams;
- SECOidData *oidData = NULL;
- SECOidTag curveOidTag = SEC_OID_UNKNOWN; /* default */
- int i, numCurves;
-
- if (curve != NULL) {
- numCurves = sizeof(nameTagPair)/sizeof(CurveNameTagPair);
- for (i = 0; ((i < numCurves) && (curveOidTag == SEC_OID_UNKNOWN));
- i++) {
- if (PL_strcmp(curve, nameTagPair[i].curveName) == 0)
- curveOidTag = nameTagPair[i].curveOidTag;
- }
- }
-
- /* Return NULL if curve name is not recognized */
- if ((curveOidTag == SEC_OID_UNKNOWN) ||
- (oidData = SECOID_FindOIDByTag(curveOidTag)) == NULL) {
- fprintf(stderr, "Unrecognized elliptic curve %s\n", curve);
- return NULL;
- }
-
- ecparams = SECITEM_AllocItem(NULL, NULL, (2 + oidData->oid.len));
-
- /*
- * ecparams->data needs to contain the ASN encoding of an object ID (OID)
- * representing the named curve. The actual OID is in
- * oidData->oid.data so we simply prepend 0x06 and OID length
- */
- ecparams->data[0] = SEC_ASN1_OBJECT_ID;
- ecparams->data[1] = oidData->oid.len;
- memcpy(ecparams->data + 2, oidData->oid.data, oidData->oid.len);
-
- return ecparams;
-}
-#endif /* NSS_ENABLE_ECC */
-
-static void
-dump_pqg(PQGParams *pqg)
-{
- SECU_PrintInteger(stdout, &pqg->prime, "PRIME:", 0);
- SECU_PrintInteger(stdout, &pqg->subPrime, "SUBPRIME:", 0);
- SECU_PrintInteger(stdout, &pqg->base, "BASE:", 0);
-}
-
-static void
-dump_dsakey(DSAPrivateKey *key)
-{
- dump_pqg(&key->params);
- SECU_PrintInteger(stdout, &key->publicValue, "PUBLIC VALUE:", 0);
- SECU_PrintInteger(stdout, &key->privateValue, "PRIVATE VALUE:", 0);
-}
-
-#ifdef NSS_ENABLE_ECC
-static void
-dump_ecp(ECParams *ecp)
-{
- /* TODO other fields */
- SECU_PrintInteger(stdout, &ecp->base, "BASE POINT:", 0);
-}
-
-static void
-dump_eckey(ECPrivateKey *key)
-{
- dump_ecp(&key->ecParams);
- SECU_PrintInteger(stdout, &key->publicValue, "PUBLIC VALUE:", 0);
- SECU_PrintInteger(stdout, &key->privateValue, "PRIVATE VALUE:", 0);
-}
-#endif
-
-static void
-dump_rsakey(RSAPrivateKey *key)
-{
- SECU_PrintInteger(stdout, &key->version, "VERSION:", 0);
- SECU_PrintInteger(stdout, &key->modulus, "MODULUS:", 0);
- SECU_PrintInteger(stdout, &key->publicExponent, "PUBLIC EXP:", 0);
- SECU_PrintInteger(stdout, &key->privateExponent, "PRIVATE EXP:", 0);
- SECU_PrintInteger(stdout, &key->prime1, "CRT PRIME 1:", 0);
- SECU_PrintInteger(stdout, &key->prime2, "CRT PRIME 2:", 0);
- SECU_PrintInteger(stdout, &key->exponent1, "CRT EXP 1:", 0);
- SECU_PrintInteger(stdout, &key->exponent2, "CRT EXP 2:", 0);
- SECU_PrintInteger(stdout, &key->coefficient, "CRT COEFFICIENT:", 0);
-}
-
-typedef enum {
- bltestBase64Encoded, /* Base64 encoded ASCII */
- bltestBinary, /* straight binary */
- bltestHexSpaceDelim, /* 0x12 0x34 0xab 0xCD ... */
- bltestHexStream /* 1234abCD ... */
-} bltestIOMode;
-
-typedef struct
-{
- SECItem buf;
- SECItem pBuf;
- bltestIOMode mode;
- PRFileDesc* file;
-} bltestIO;
-
-typedef SECStatus (* bltestSymmCipherFn)(void *cx,
- unsigned char *output,
- unsigned int *outputLen,
- unsigned int maxOutputLen,
- const unsigned char *input,
- unsigned int inputLen);
-
-typedef SECStatus (* bltestPubKeyCipherFn)(void *key,
- SECItem *output,
- const SECItem *input);
-
-typedef SECStatus (* bltestHashCipherFn)(unsigned char *dest,
- const unsigned char *src,
- uint32 src_length);
-
-typedef enum {
- bltestINVALID = -1,
- bltestDES_ECB, /* Symmetric Key Ciphers */
- bltestDES_CBC, /* . */
- bltestDES_EDE_ECB, /* . */
- bltestDES_EDE_CBC, /* . */
- bltestRC2_ECB, /* . */
- bltestRC2_CBC, /* . */
- bltestRC4, /* . */
-#ifdef NSS_SOFTOKEN_DOES_RC5
- bltestRC5_ECB, /* . */
- bltestRC5_CBC, /* . */
-#endif
- bltestAES_ECB, /* . */
- bltestAES_CBC, /* . */
- bltestCAMELLIA_ECB, /* . */
- bltestCAMELLIA_CBC, /* . */
- bltestSEED_ECB, /* SEED algorithm */
- bltestSEED_CBC, /* SEED algorithm */
- bltestRSA, /* Public Key Ciphers */
-#ifdef NSS_ENABLE_ECC
- bltestECDSA, /* . (Public Key Sig.) */
-#endif
- bltestDSA, /* . */
- bltestMD2, /* Hash algorithms */
- bltestMD5, /* . */
- bltestSHA1, /* . */
- bltestSHA256, /* . */
- bltestSHA384, /* . */
- bltestSHA512, /* . */
- NUMMODES
-} bltestCipherMode;
-
-static char *mode_strings[] =
-{
- "des_ecb",
- "des_cbc",
- "des3_ecb",
- "des3_cbc",
- "rc2_ecb",
- "rc2_cbc",
- "rc4",
-#ifdef NSS_SOFTOKEN_DOES_RC5
- "rc5_ecb",
- "rc5_cbc",
-#endif
- "aes_ecb",
- "aes_cbc",
- "camellia_ecb",
- "camellia_cbc",
- "seed_ecb",
- "seed_cbc",
- "rsa",
-#ifdef NSS_ENABLE_ECC
- "ecdsa",
-#endif
- /*"pqg",*/
- "dsa",
- "md2",
- "md5",
- "sha1",
- "sha256",
- "sha384",
- "sha512",
-};
-
-typedef struct
-{
- bltestIO key;
- bltestIO iv;
-} bltestSymmKeyParams;
-
-typedef struct
-{
- bltestIO key;
- bltestIO iv;
- int rounds;
- int wordsize;
-} bltestRC5Params;
-
-typedef struct
-{
- bltestIO key;
- int keysizeInBits;
- RSAPrivateKey *rsakey;
-} bltestRSAParams;
-
-typedef struct
-{
- bltestIO key;
- bltestIO pqgdata;
- unsigned int j;
- bltestIO keyseed;
- bltestIO sigseed;
- bltestIO sig; /* if doing verify, have additional input */
- PQGParams *pqg;
- DSAPrivateKey *dsakey;
-} bltestDSAParams;
-
-#ifdef NSS_ENABLE_ECC
-typedef struct
-{
- bltestIO key;
- char *curveName;
- bltestIO sigseed;
- bltestIO sig; /* if doing verify, have additional input */
- ECPrivateKey *eckey;
-} bltestECDSAParams;
-#endif
-
-typedef struct
-{
- bltestIO key; /* unused */
- PRBool restart;
-} bltestHashParams;
-
-typedef union
-{
- bltestIO key;
- bltestSymmKeyParams sk;
- bltestRC5Params rc5;
- bltestRSAParams rsa;
- bltestDSAParams dsa;
-#ifdef NSS_ENABLE_ECC
- bltestECDSAParams ecdsa;
-#endif
- bltestHashParams hash;
-} bltestParams;
-
-typedef struct bltestCipherInfoStr bltestCipherInfo;
-
-struct bltestCipherInfoStr {
- PRArenaPool *arena;
- /* link to next in multithreaded test */
- bltestCipherInfo *next;
- PRThread *cipherThread;
-
- /* MonteCarlo test flag*/
- PRBool mCarlo;
- /* cipher context */
- void *cx;
- /* I/O streams */
- bltestIO input;
- bltestIO output;
- /* Cipher-specific parameters */
- bltestParams params;
- /* Cipher mode */
- bltestCipherMode mode;
- /* Cipher function (encrypt/decrypt/sign/verify/hash) */
- union {
- bltestSymmCipherFn symmkeyCipher;
- bltestPubKeyCipherFn pubkeyCipher;
- bltestHashCipherFn hashCipher;
- } cipher;
- /* performance testing */
- int repetitionsToPerfom;
- int seconds;
- int repetitions;
- int cxreps;
- double cxtime;
- double optime;
-};
-
-PRBool
-is_symmkeyCipher(bltestCipherMode mode)
-{
- /* change as needed! */
- if (mode >= bltestDES_ECB && mode <= bltestSEED_CBC)
- return PR_TRUE;
- return PR_FALSE;
-}
-
-PRBool
-is_pubkeyCipher(bltestCipherMode mode)
-{
- /* change as needed! */
- if (mode >= bltestRSA && mode <= bltestDSA)
- return PR_TRUE;
- return PR_FALSE;
-}
-
-PRBool
-is_hashCipher(bltestCipherMode mode)
-{
- /* change as needed! */
- if (mode >= bltestMD2 && mode <= bltestSHA512)
- return PR_TRUE;
- return PR_FALSE;
-}
-
-PRBool
-is_sigCipher(bltestCipherMode mode)
-{
- /* change as needed! */
-#ifdef NSS_ENABLE_ECC
- if (mode >= bltestECDSA && mode <= bltestDSA)
-#else
- if (mode >= bltestDSA && mode <= bltestDSA)
-#endif
- return PR_TRUE;
- return PR_FALSE;
-}
-
-PRBool
-cipher_requires_IV(bltestCipherMode mode)
-{
- /* change as needed! */
- if (mode == bltestDES_CBC || mode == bltestDES_EDE_CBC ||
- mode == bltestRC2_CBC ||
-#ifdef NSS_SOFTOKEN_DOES_RC5
- mode == bltestRC5_CBC ||
-#endif
- mode == bltestAES_CBC || mode == bltestCAMELLIA_CBC||
- mode == bltestSEED_CBC)
- return PR_TRUE;
- return PR_FALSE;
-}
-
-SECStatus finishIO(bltestIO *output, PRFileDesc *file);
-
-SECStatus
-setupIO(PRArenaPool *arena, bltestIO *input, PRFileDesc *file,
- char *str, int numBytes)
-{
- SECStatus rv = SECSuccess;
- SECItem fileData;
- SECItem *in;
- unsigned char *tok;
- unsigned int i, j;
-
- if (file && (numBytes == 0 || file == PR_STDIN)) {
- /* grabbing data from a file */
- rv = SECU_FileToItem(&fileData, file);
- if (rv != SECSuccess) {
- PR_Close(file);
- return SECFailure;
- }
- in = &fileData;
- } else if (str) {
- /* grabbing data from command line */
- fileData.data = str;
- fileData.len = PL_strlen(str);
- in = &fileData;
- } else if (file) {
- /* create nonce */
- SECITEM_AllocItem(arena, &input->buf, numBytes);
- RNG_GenerateGlobalRandomBytes(input->buf.data, numBytes);
- return finishIO(input, file);
- } else {
- return SECFailure;
- }
-
- switch (input->mode) {
- case bltestBase64Encoded:
- rv = atob(in, &input->buf, arena);
- break;
- case bltestBinary:
- if (in->data[in->len-1] == '\n') --in->len;
- if (in->data[in->len-1] == '\r') --in->len;
- SECITEM_CopyItem(arena, &input->buf, in);
- break;
- case bltestHexSpaceDelim:
- SECITEM_AllocItem(arena, &input->buf, in->len/5);
- for (i=0, j=0; ilen; i+=5, j++) {
- tok = &in->data[i];
- if (tok[0] != '0' || tok[1] != 'x' || tok[4] != ' ')
- /* bad hex token */
- break;
-
- rv = hex_from_2char(&tok[2], input->buf.data + j);
- if (rv)
- break;
- }
- break;
- case bltestHexStream:
- SECITEM_AllocItem(arena, &input->buf, in->len/2);
- for (i=0, j=0; ilen; i+=2, j++) {
- tok = &in->data[i];
- rv = hex_from_2char(tok, input->buf.data + j);
- if (rv)
- break;
- }
- break;
- }
-
- if (file)
- SECITEM_FreeItem(&fileData, PR_FALSE);
- return rv;
-}
-
-SECStatus
-finishIO(bltestIO *output, PRFileDesc *file)
-{
- SECStatus rv = SECSuccess;
- PRInt32 nb;
- unsigned char byteval;
- SECItem *it;
- char hexstr[5];
- unsigned int i;
- if (output->pBuf.len > 0) {
- it = &output->pBuf;
- } else {
- it = &output->buf;
- }
- switch (output->mode) {
- case bltestBase64Encoded:
- rv = btoa_file(it, file);
- break;
- case bltestBinary:
- nb = PR_Write(file, it->data, it->len);
- rv = (nb == (PRInt32)it->len) ? SECSuccess : SECFailure;
- break;
- case bltestHexSpaceDelim:
- hexstr[0] = '0';
- hexstr[1] = 'x';
- hexstr[4] = ' ';
- for (i=0; ilen; i++) {
- byteval = it->data[i];
- rv = char2_from_hex(byteval, hexstr + 2);
- nb = PR_Write(file, hexstr, 5);
- if (rv)
- break;
- }
- PR_Write(file, "\n", 1);
- break;
- case bltestHexStream:
- for (i=0; ilen; i++) {
- byteval = it->data[i];
- rv = char2_from_hex(byteval, hexstr);
- if (rv)
- break;
- nb = PR_Write(file, hexstr, 2);
- }
- PR_Write(file, "\n", 1);
- break;
- }
- return rv;
-}
-
-void
-bltestCopyIO(PRArenaPool *arena, bltestIO *dest, bltestIO *src)
-{
- SECITEM_CopyItem(arena, &dest->buf, &src->buf);
- if (src->pBuf.len > 0) {
- dest->pBuf.len = src->pBuf.len;
- dest->pBuf.data = dest->buf.data + (src->pBuf.data - src->buf.data);
- }
- dest->mode = src->mode;
- dest->file = src->file;
-}
-
-void
-misalignBuffer(PRArenaPool *arena, bltestIO *io, int off)
-{
- ptrdiff_t offset = (ptrdiff_t)io->buf.data % WORDSIZE;
- int length = io->buf.len;
- if (offset != off) {
- SECITEM_ReallocItem(arena, &io->buf, length, length + 2*WORDSIZE);
- io->buf.len = length + 2*WORDSIZE; /* why doesn't realloc do this? */
- /* offset may have changed? */
- offset = (ptrdiff_t)io->buf.data % WORDSIZE;
- if (offset != off) {
- memmove(io->buf.data + off, io->buf.data, length);
- io->pBuf.data = io->buf.data + off;
- io->pBuf.len = length;
- } else {
- io->pBuf.data = io->buf.data;
- io->pBuf.len = length;
- }
- } else {
- io->pBuf.data = io->buf.data;
- io->pBuf.len = length;
- }
-}
-
-SECStatus
-des_Encrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return DES_Encrypt((DESContext *)cx, output, outputLen, maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-des_Decrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return DES_Decrypt((DESContext *)cx, output, outputLen, maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-rc2_Encrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return RC2_Encrypt((RC2Context *)cx, output, outputLen, maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-rc2_Decrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return RC2_Decrypt((RC2Context *)cx, output, outputLen, maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-rc4_Encrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return RC4_Encrypt((RC4Context *)cx, output, outputLen, maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-rc4_Decrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return RC4_Decrypt((RC4Context *)cx, output, outputLen, maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-aes_Encrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return AES_Encrypt((AESContext *)cx, output, outputLen, maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-aes_Decrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return AES_Decrypt((AESContext *)cx, output, outputLen, maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-camellia_Encrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return Camellia_Encrypt((CamelliaContext *)cx, output, outputLen,
- maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-camellia_Decrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return Camellia_Decrypt((CamelliaContext *)cx, output, outputLen,
- maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-seed_Encrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return SEED_Encrypt((SEEDContext *)cx, output, outputLen, maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-seed_Decrypt(void *cx, unsigned char *output, unsigned int *outputLen,
- unsigned int maxOutputLen, const unsigned char *input,
- unsigned int inputLen)
-{
- return SEED_Decrypt((SEEDContext *)cx, output, outputLen, maxOutputLen,
- input, inputLen);
-}
-
-SECStatus
-rsa_PublicKeyOp(void *key, SECItem *output, const SECItem *input)
-{
- return RSA_PublicKeyOp((RSAPublicKey *)key, output->data, input->data);
-}
-
-SECStatus
-rsa_PrivateKeyOp(void *key, SECItem *output, const SECItem *input)
-{
- return RSA_PrivateKeyOp((RSAPrivateKey *)key, output->data, input->data);
-}
-
-SECStatus
-dsa_signDigest(void *key, SECItem *output, const SECItem *input)
-{
- return DSA_SignDigest((DSAPrivateKey *)key, output, input);
-}
-
-SECStatus
-dsa_verifyDigest(void *key, SECItem *output, const SECItem *input)
-{
- return DSA_VerifyDigest((DSAPublicKey *)key, output, input);
-}
-
-#ifdef NSS_ENABLE_ECC
-SECStatus
-ecdsa_signDigest(void *key, SECItem *output, const SECItem *input)
-{
- return ECDSA_SignDigest((ECPrivateKey *)key, output, input);
-}
-
-SECStatus
-ecdsa_verifyDigest(void *key, SECItem *output, const SECItem *input)
-{
- return ECDSA_VerifyDigest((ECPublicKey *)key, output, input);
-}
-#endif
-
-SECStatus
-bltest_des_init(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
- PRIntervalTime time1, time2;
- bltestSymmKeyParams *desp = &cipherInfo->params.sk;
- int minorMode;
- int i;
- switch (cipherInfo->mode) {
- case bltestDES_ECB: minorMode = NSS_DES; break;
- case bltestDES_CBC: minorMode = NSS_DES_CBC; break;
- case bltestDES_EDE_ECB: minorMode = NSS_DES_EDE3; break;
- case bltestDES_EDE_CBC: minorMode = NSS_DES_EDE3_CBC; break;
- default:
- return SECFailure;
- }
- cipherInfo->cx = (void*)DES_CreateContext(desp->key.buf.data,
- desp->iv.buf.data,
- minorMode, encrypt);
- if (cipherInfo->cxreps > 0) {
- DESContext **dummycx;
- dummycx = PORT_Alloc(cipherInfo->cxreps * sizeof(DESContext *));
- TIMESTART();
- for (i=0; icxreps; i++) {
- dummycx[i] = (void*)DES_CreateContext(desp->key.buf.data,
- desp->iv.buf.data,
- minorMode, encrypt);
- }
- TIMEFINISH(cipherInfo->cxtime, 1.0);
- for (i=0; icxreps; i++) {
- DES_DestroyContext(dummycx[i], PR_TRUE);
- }
- PORT_Free(dummycx);
- }
- if (encrypt)
- cipherInfo->cipher.symmkeyCipher = des_Encrypt;
- else
- cipherInfo->cipher.symmkeyCipher = des_Decrypt;
- return SECSuccess;
-}
-
-SECStatus
-bltest_rc2_init(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
- PRIntervalTime time1, time2;
- bltestSymmKeyParams *rc2p = &cipherInfo->params.sk;
- int minorMode;
- int i;
- switch (cipherInfo->mode) {
- case bltestRC2_ECB: minorMode = NSS_RC2; break;
- case bltestRC2_CBC: minorMode = NSS_RC2_CBC; break;
- default:
- return SECFailure;
- }
- cipherInfo->cx = (void*)RC2_CreateContext(rc2p->key.buf.data,
- rc2p->key.buf.len,
- rc2p->iv.buf.data,
- minorMode,
- rc2p->key.buf.len);
- if (cipherInfo->cxreps > 0) {
- RC2Context **dummycx;
- dummycx = PORT_Alloc(cipherInfo->cxreps * sizeof(RC2Context *));
- TIMESTART();
- for (i=0; icxreps; i++) {
- dummycx[i] = (void*)RC2_CreateContext(rc2p->key.buf.data,
- rc2p->key.buf.len,
- rc2p->iv.buf.data,
- minorMode,
- rc2p->key.buf.len);
- }
- TIMEFINISH(cipherInfo->cxtime, 1.0);
- for (i=0; icxreps; i++) {
- RC2_DestroyContext(dummycx[i], PR_TRUE);
- }
- PORT_Free(dummycx);
- }
- if (encrypt)
- cipherInfo->cipher.symmkeyCipher = rc2_Encrypt;
- else
- cipherInfo->cipher.symmkeyCipher = rc2_Decrypt;
- return SECSuccess;
-}
-
-SECStatus
-bltest_rc4_init(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
- PRIntervalTime time1, time2;
- int i;
- bltestSymmKeyParams *rc4p = &cipherInfo->params.sk;
- cipherInfo->cx = (void*)RC4_CreateContext(rc4p->key.buf.data,
- rc4p->key.buf.len);
- if (cipherInfo->cxreps > 0) {
- RC4Context **dummycx;
- dummycx = PORT_Alloc(cipherInfo->cxreps * sizeof(RC4Context *));
- TIMESTART();
- for (i=0; icxreps; i++) {
- dummycx[i] = (void*)RC4_CreateContext(rc4p->key.buf.data,
- rc4p->key.buf.len);
- }
- TIMEFINISH(cipherInfo->cxtime, 1.0);
- for (i=0; icxreps; i++) {
- RC4_DestroyContext(dummycx[i], PR_TRUE);
- }
- PORT_Free(dummycx);
- }
- if (encrypt)
- cipherInfo->cipher.symmkeyCipher = rc4_Encrypt;
- else
- cipherInfo->cipher.symmkeyCipher = rc4_Decrypt;
- return SECSuccess;
-}
-
-SECStatus
-bltest_rc5_init(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
-#ifdef NSS_SOFTOKEN_DOES_RC5
- PRIntervalTime time1, time2;
- bltestRC5Params *rc5p = &cipherInfo->params.rc5;
- int minorMode;
- switch (cipherInfo->mode) {
- case bltestRC5_ECB: minorMode = NSS_RC5; break;
- case bltestRC5_CBC: minorMode = NSS_RC5_CBC; break;
- default:
- return SECFailure;
- }
- TIMESTART();
- cipherInfo->cx = (void*)RC5_CreateContext(&rc5p->key.buf,
- rc5p->rounds, rc5p->wordsize,
- rc5p->iv.buf.data, minorMode);
- TIMEFINISH(cipherInfo->cxtime, 1.0);
- if (encrypt)
- cipherInfo->cipher.symmkeyCipher = RC5_Encrypt;
- else
- cipherInfo->cipher.symmkeyCipher = RC5_Decrypt;
- return SECSuccess;
-#else
- return SECFailure;
-#endif
-}
-
-SECStatus
-bltest_aes_init(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
- bltestSymmKeyParams *aesp = &cipherInfo->params.sk;
- int minorMode;
- int i;
- int keylen = aesp->key.buf.len;
- int blocklen = AES_BLOCK_SIZE;
- PRIntervalTime time1, time2;
-
- switch (cipherInfo->mode) {
- case bltestAES_ECB: minorMode = NSS_AES; break;
- case bltestAES_CBC: minorMode = NSS_AES_CBC; break;
- default:
- return SECFailure;
- }
- cipherInfo->cx = (void*)AES_CreateContext(aesp->key.buf.data,
- aesp->iv.buf.data,
- minorMode, encrypt,
- keylen, blocklen);
- if (cipherInfo->cxreps > 0) {
- AESContext **dummycx;
- dummycx = PORT_Alloc(cipherInfo->cxreps * sizeof(AESContext *));
- TIMESTART();
- for (i=0; icxreps; i++) {
- dummycx[i] = (void*)AES_CreateContext(aesp->key.buf.data,
- aesp->iv.buf.data,
- minorMode, encrypt,
- keylen, blocklen);
- }
- TIMEFINISH(cipherInfo->cxtime, 1.0);
- for (i=0; icxreps; i++) {
- AES_DestroyContext(dummycx[i], PR_TRUE);
- }
- PORT_Free(dummycx);
- }
- if (encrypt)
- cipherInfo->cipher.symmkeyCipher = aes_Encrypt;
- else
- cipherInfo->cipher.symmkeyCipher = aes_Decrypt;
- return SECSuccess;
-}
-
-SECStatus
-bltest_camellia_init(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
- bltestSymmKeyParams *camelliap = &cipherInfo->params.sk;
- int minorMode;
- int i;
- int keylen = camelliap->key.buf.len;
- int blocklen = CAMELLIA_BLOCK_SIZE;
- PRIntervalTime time1, time2;
-
- switch (cipherInfo->mode) {
- case bltestCAMELLIA_ECB: minorMode = NSS_CAMELLIA; break;
- case bltestCAMELLIA_CBC: minorMode = NSS_CAMELLIA_CBC; break;
- default:
- return SECFailure;
- }
- cipherInfo->cx = (void*)Camellia_CreateContext(camelliap->key.buf.data,
- camelliap->iv.buf.data,
- minorMode, encrypt,
- keylen);
- if (cipherInfo->cxreps > 0) {
- CamelliaContext **dummycx;
- dummycx = PORT_Alloc(cipherInfo->cxreps * sizeof(CamelliaContext *));
- TIMESTART();
- for (i=0; icxreps; i++) {
- dummycx[i] = (void*)Camellia_CreateContext(camelliap->key.buf.data,
- camelliap->iv.buf.data,
- minorMode, encrypt,
- keylen);
- }
- TIMEFINISH(cipherInfo->cxtime, 1.0);
- for (i=0; icxreps; i++) {
- Camellia_DestroyContext(dummycx[i], PR_TRUE);
- }
- PORT_Free(dummycx);
- }
- if (encrypt)
- cipherInfo->cipher.symmkeyCipher = camellia_Encrypt;
- else
- cipherInfo->cipher.symmkeyCipher = camellia_Decrypt;
- return SECSuccess;
-}
-
-SECStatus
-bltest_seed_init(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
- PRIntervalTime time1, time2;
- bltestSymmKeyParams *seedp = &cipherInfo->params.sk;
- int minorMode;
- int i;
-
- switch (cipherInfo->mode) {
- case bltestSEED_ECB: minorMode = NSS_SEED; break;
- case bltestSEED_CBC: minorMode = NSS_SEED_CBC; break;
- default:
- return SECFailure;
- }
- cipherInfo->cx = (void*)SEED_CreateContext(seedp->key.buf.data,
- seedp->iv.buf.data,
- minorMode, encrypt);
- if (cipherInfo->cxreps > 0) {
- SEEDContext **dummycx;
- dummycx = PORT_Alloc(cipherInfo->cxreps * sizeof(SEEDContext *));
- TIMESTART();
- for (i=0; icxreps; i++) {
- dummycx[i] = (void*)SEED_CreateContext(seedp->key.buf.data,
- seedp->iv.buf.data,
- minorMode, encrypt);
- }
- TIMEFINISH(cipherInfo->cxtime, 1.0);
- for (i=0; icxreps; i++) {
- SEED_DestroyContext(dummycx[i], PR_TRUE);
- }
- PORT_Free(dummycx);
- }
- if (encrypt)
- cipherInfo->cipher.symmkeyCipher = seed_Encrypt;
- else
- cipherInfo->cipher.symmkeyCipher = seed_Decrypt;
-
- return SECSuccess;
-}
-
-SECStatus
-bltest_rsa_init(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
- int i;
- RSAPrivateKey **dummyKey;
- PRIntervalTime time1, time2;
- bltestRSAParams *rsap = &cipherInfo->params.rsa;
- /* RSA key gen was done during parameter setup */
- cipherInfo->cx = cipherInfo->params.rsa.rsakey;
- /* For performance testing */
- if (cipherInfo->cxreps > 0) {
- /* Create space for n private key objects */
- dummyKey = (RSAPrivateKey **)PORT_Alloc(cipherInfo->cxreps *
- sizeof(RSAPrivateKey *));
- /* Time n keygens, storing in the array */
- TIMESTART();
- for (i=0; icxreps; i++)
- dummyKey[i] = RSA_NewKey(rsap->keysizeInBits,
- &rsap->rsakey->publicExponent);
- TIMEFINISH(cipherInfo->cxtime, cipherInfo->cxreps);
- /* Free the n key objects */
- for (i=0; icxreps; i++)
- PORT_FreeArena(dummyKey[i]->arena, PR_TRUE);
- PORT_Free(dummyKey);
- }
- if (encrypt) {
- /* Have to convert private key to public key. Memory
- * is freed with private key's arena */
- RSAPublicKey *pubkey;
- RSAPrivateKey *key = (RSAPrivateKey *)cipherInfo->cx;
- pubkey = (RSAPublicKey *)PORT_ArenaAlloc(key->arena,
- sizeof(RSAPublicKey));
- pubkey->modulus.len = key->modulus.len;
- pubkey->modulus.data = key->modulus.data;
- pubkey->publicExponent.len = key->publicExponent.len;
- pubkey->publicExponent.data = key->publicExponent.data;
- cipherInfo->cx = (void *)pubkey;
- cipherInfo->cipher.pubkeyCipher = rsa_PublicKeyOp;
- } else {
- cipherInfo->cipher.pubkeyCipher = rsa_PrivateKeyOp;
- }
- return SECSuccess;
-}
-
-SECStatus
-bltest_pqg_init(bltestDSAParams *dsap)
-{
- SECStatus rv, res;
- PQGVerify *vfy = NULL;
- rv = PQG_ParamGen(dsap->j, &dsap->pqg, &vfy);
- CHECKERROR(rv, __LINE__);
- rv = PQG_VerifyParams(dsap->pqg, vfy, &res);
- CHECKERROR(res, __LINE__);
- CHECKERROR(rv, __LINE__);
- return rv;
-}
-
-SECStatus
-bltest_dsa_init(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
- int i;
- DSAPrivateKey **dummyKey;
- PQGParams *dummypqg;
- PRIntervalTime time1, time2;
- bltestDSAParams *dsap = &cipherInfo->params.dsa;
- PQGVerify *ignore = NULL;
- /* DSA key gen was done during parameter setup */
- cipherInfo->cx = cipherInfo->params.dsa.dsakey;
- /* For performance testing */
- if (cipherInfo->cxreps > 0) {
- /* Create space for n private key objects */
- dummyKey = (DSAPrivateKey **)PORT_ZAlloc(cipherInfo->cxreps *
- sizeof(DSAPrivateKey *));
- /* Time n keygens, storing in the array */
- TIMESTART();
- for (i=0; icxreps; i++) {
- dummypqg = NULL;
- PQG_ParamGen(dsap->j, &dummypqg, &ignore);
- DSA_NewKey(dummypqg, &dummyKey[i]);
- }
- TIMEFINISH(cipherInfo->cxtime, cipherInfo->cxreps);
- /* Free the n key objects */
- for (i=0; icxreps; i++)
- PORT_FreeArena(dummyKey[i]->params.arena, PR_TRUE);
- PORT_Free(dummyKey);
- }
- if (!dsap->pqg && dsap->pqgdata.buf.len > 0) {
- dsap->pqg = pqg_from_filedata(&dsap->pqgdata.buf);
- }
- if (!cipherInfo->cx && dsap->key.buf.len > 0) {
- cipherInfo->cx = dsakey_from_filedata(&dsap->key.buf);
- }
- if (encrypt) {
- cipherInfo->cipher.pubkeyCipher = dsa_signDigest;
- } else {
- /* Have to convert private key to public key. Memory
- * is freed with private key's arena */
- DSAPublicKey *pubkey;
- DSAPrivateKey *key = (DSAPrivateKey *)cipherInfo->cx;
- pubkey = (DSAPublicKey *)PORT_ArenaZAlloc(key->params.arena,
- sizeof(DSAPublicKey));
- pubkey->params.prime.len = key->params.prime.len;
- pubkey->params.prime.data = key->params.prime.data;
- pubkey->params.subPrime.len = key->params.subPrime.len;
- pubkey->params.subPrime.data = key->params.subPrime.data;
- pubkey->params.base.len = key->params.base.len;
- pubkey->params.base.data = key->params.base.data;
- pubkey->publicValue.len = key->publicValue.len;
- pubkey->publicValue.data = key->publicValue.data;
- cipherInfo->cipher.pubkeyCipher = dsa_verifyDigest;
- }
- return SECSuccess;
-}
-
-#ifdef NSS_ENABLE_ECC
-SECStatus
-bltest_ecdsa_init(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
- int i;
- ECPrivateKey **dummyKey;
- PRIntervalTime time1, time2;
- bltestECDSAParams *ecdsap = &cipherInfo->params.ecdsa;
- /* ECDSA key gen was done during parameter setup */
- cipherInfo->cx = cipherInfo->params.ecdsa.eckey;
- /* For performance testing */
- if (cipherInfo->cxreps > 0) {
- /* Create space for n private key objects */
- dummyKey = (ECPrivateKey **)PORT_ZAlloc(cipherInfo->cxreps *
- sizeof(ECPrivateKey *));
- /* Time n keygens, storing in the array */
- TIMESTART();
- for (i=0; icxreps; i++) {
- EC_NewKey(&ecdsap->eckey->ecParams, &dummyKey[i]);
- }
- TIMEFINISH(cipherInfo->cxtime, cipherInfo->cxreps);
- /* Free the n key objects */
- for (i=0; icxreps; i++)
- PORT_FreeArena(dummyKey[i]->ecParams.arena, PR_TRUE);
- PORT_Free(dummyKey);
- }
- if (!cipherInfo->cx && ecdsap->key.buf.len > 0) {
- cipherInfo->cx = eckey_from_filedata(&ecdsap->key.buf);
- }
- if (encrypt) {
- cipherInfo->cipher.pubkeyCipher = ecdsa_signDigest;
- } else {
- /* Have to convert private key to public key. Memory
- * is freed with private key's arena */
- ECPublicKey *pubkey;
- ECPrivateKey *key = (ECPrivateKey *)cipherInfo->cx;
- pubkey = (ECPublicKey *)PORT_ArenaZAlloc(key->ecParams.arena,
- sizeof(ECPublicKey));
- pubkey->ecParams.type = key->ecParams.type;
- pubkey->ecParams.fieldID.size = key->ecParams.fieldID.size;
- pubkey->ecParams.fieldID.type = key->ecParams.fieldID.type;
- pubkey->ecParams.fieldID.u.prime.len = key->ecParams.fieldID.u.prime.len;
- pubkey->ecParams.fieldID.u.prime.data = key->ecParams.fieldID.u.prime.data;
- pubkey->ecParams.fieldID.k1 = key->ecParams.fieldID.k1;
- pubkey->ecParams.fieldID.k2 = key->ecParams.fieldID.k2;
- pubkey->ecParams.fieldID.k3 = key->ecParams.fieldID.k3;
- pubkey->ecParams.curve.a.len = key->ecParams.curve.a.len;
- pubkey->ecParams.curve.a.data = key->ecParams.curve.a.data;
- pubkey->ecParams.curve.b.len = key->ecParams.curve.b.len;
- pubkey->ecParams.curve.b.data = key->ecParams.curve.b.data;
- pubkey->ecParams.curve.seed.len = key->ecParams.curve.seed.len;
- pubkey->ecParams.curve.seed.data = key->ecParams.curve.seed.data;
- pubkey->ecParams.base.len = key->ecParams.base.len;
- pubkey->ecParams.base.data = key->ecParams.base.data;
- pubkey->ecParams.order.len = key->ecParams.order.len;
- pubkey->ecParams.order.data = key->ecParams.order.data;
- pubkey->ecParams.cofactor = key->ecParams.cofactor;
- pubkey->ecParams.DEREncoding.len = key->ecParams.DEREncoding.len;
- pubkey->ecParams.DEREncoding.data = key->ecParams.DEREncoding.data;
- pubkey->ecParams.name= key->ecParams.name;
- pubkey->publicValue.len = key->publicValue.len;
- pubkey->publicValue.data = key->publicValue.data;
- cipherInfo->cipher.pubkeyCipher = ecdsa_verifyDigest;
- }
- return SECSuccess;
-}
-#endif
-
-/* XXX unfortunately, this is not defined in blapi.h */
-SECStatus
-md2_HashBuf(unsigned char *dest, const unsigned char *src, uint32 src_length)
-{
- unsigned int len;
- MD2Context *cx = MD2_NewContext();
- if (cx == NULL) return SECFailure;
- MD2_Begin(cx);
- MD2_Update(cx, src, src_length);
- MD2_End(cx, dest, &len, MD2_LENGTH);
- MD2_DestroyContext(cx, PR_TRUE);
- return SECSuccess;
-}
-
-SECStatus
-md2_restart(unsigned char *dest, const unsigned char *src, uint32 src_length)
-{
- MD2Context *cx, *cx_cpy;
- unsigned char *cxbytes;
- unsigned int len;
- unsigned int i, quarter;
- SECStatus rv = SECSuccess;
- cx = MD2_NewContext();
- MD2_Begin(cx);
- /* divide message by 4, restarting 3 times */
- quarter = (src_length + 3)/ 4;
- for (i=0; i < 4 && src_length > 0; i++) {
- MD2_Update(cx, src + i*quarter, PR_MIN(quarter, src_length));
- len = MD2_FlattenSize(cx);
- cxbytes = PORT_Alloc(len);
- MD2_Flatten(cx, cxbytes);
- cx_cpy = MD2_Resurrect(cxbytes, NULL);
- if (!cx_cpy) {
- PR_fprintf(PR_STDERR, "%s: MD2_Resurrect failed!\n", progName);
- goto finish;
- }
- rv = PORT_Memcmp(cx, cx_cpy, len);
- if (rv) {
- MD2_DestroyContext(cx_cpy, PR_TRUE);
- PR_fprintf(PR_STDERR, "%s: MD2_restart failed!\n", progName);
- goto finish;
- }
- MD2_DestroyContext(cx_cpy, PR_TRUE);
- PORT_Free(cxbytes);
- src_length -= quarter;
- }
- MD2_End(cx, dest, &len, MD2_LENGTH);
-finish:
- MD2_DestroyContext(cx, PR_TRUE);
- return rv;
-}
-
-SECStatus
-md5_restart(unsigned char *dest, const unsigned char *src, uint32 src_length)
-{
- SECStatus rv = SECSuccess;
- MD5Context *cx, *cx_cpy;
- unsigned char *cxbytes;
- unsigned int len;
- unsigned int i, quarter;
- cx = MD5_NewContext();
- MD5_Begin(cx);
- /* divide message by 4, restarting 3 times */
- quarter = (src_length + 3)/ 4;
- for (i=0; i < 4 && src_length > 0; i++) {
- MD5_Update(cx, src + i*quarter, PR_MIN(quarter, src_length));
- len = MD5_FlattenSize(cx);
- cxbytes = PORT_Alloc(len);
- MD5_Flatten(cx, cxbytes);
- cx_cpy = MD5_Resurrect(cxbytes, NULL);
- if (!cx_cpy) {
- PR_fprintf(PR_STDERR, "%s: MD5_Resurrect failed!\n", progName);
- rv = SECFailure;
- goto finish;
- }
- rv = PORT_Memcmp(cx, cx_cpy, len);
- if (rv) {
- MD5_DestroyContext(cx_cpy, PR_TRUE);
- PR_fprintf(PR_STDERR, "%s: MD5_restart failed!\n", progName);
- goto finish;
- }
- MD5_DestroyContext(cx_cpy, PR_TRUE);
- PORT_Free(cxbytes);
- src_length -= quarter;
- }
- MD5_End(cx, dest, &len, MD5_LENGTH);
-finish:
- MD5_DestroyContext(cx, PR_TRUE);
- return rv;
-}
-
-SECStatus
-sha1_restart(unsigned char *dest, const unsigned char *src, uint32 src_length)
-{
- SECStatus rv = SECSuccess;
- SHA1Context *cx, *cx_cpy;
- unsigned char *cxbytes;
- unsigned int len;
- unsigned int i, quarter;
- cx = SHA1_NewContext();
- SHA1_Begin(cx);
- /* divide message by 4, restarting 3 times */
- quarter = (src_length + 3)/ 4;
- for (i=0; i < 4 && src_length > 0; i++) {
- SHA1_Update(cx, src + i*quarter, PR_MIN(quarter, src_length));
- len = SHA1_FlattenSize(cx);
- cxbytes = PORT_Alloc(len);
- SHA1_Flatten(cx, cxbytes);
- cx_cpy = SHA1_Resurrect(cxbytes, NULL);
- if (!cx_cpy) {
- PR_fprintf(PR_STDERR, "%s: SHA1_Resurrect failed!\n", progName);
- rv = SECFailure;
- goto finish;
- }
- rv = PORT_Memcmp(cx, cx_cpy, len);
- if (rv) {
- SHA1_DestroyContext(cx_cpy, PR_TRUE);
- PR_fprintf(PR_STDERR, "%s: SHA1_restart failed!\n", progName);
- goto finish;
- }
- SHA1_DestroyContext(cx_cpy, PR_TRUE);
- PORT_Free(cxbytes);
- src_length -= quarter;
- }
- SHA1_End(cx, dest, &len, MD5_LENGTH);
-finish:
- SHA1_DestroyContext(cx, PR_TRUE);
- return rv;
-}
-
-SECStatus
-SHA256_restart(unsigned char *dest, const unsigned char *src, uint32 src_length)
-{
- SECStatus rv = SECSuccess;
- SHA256Context *cx, *cx_cpy;
- unsigned char *cxbytes;
- unsigned int len;
- unsigned int i, quarter;
- cx = SHA256_NewContext();
- SHA256_Begin(cx);
- /* divide message by 4, restarting 3 times */
- quarter = (src_length + 3)/ 4;
- for (i=0; i < 4 && src_length > 0; i++) {
- SHA256_Update(cx, src + i*quarter, PR_MIN(quarter, src_length));
- len = SHA256_FlattenSize(cx);
- cxbytes = PORT_Alloc(len);
- SHA256_Flatten(cx, cxbytes);
- cx_cpy = SHA256_Resurrect(cxbytes, NULL);
- if (!cx_cpy) {
- PR_fprintf(PR_STDERR, "%s: SHA256_Resurrect failed!\n", progName);
- rv = SECFailure;
- goto finish;
- }
- rv = PORT_Memcmp(cx, cx_cpy, len);
- if (rv) {
- SHA256_DestroyContext(cx_cpy, PR_TRUE);
- PR_fprintf(PR_STDERR, "%s: SHA256_restart failed!\n", progName);
- goto finish;
- }
- SHA256_DestroyContext(cx_cpy, PR_TRUE);
- PORT_Free(cxbytes);
- src_length -= quarter;
- }
- SHA256_End(cx, dest, &len, MD5_LENGTH);
-finish:
- SHA256_DestroyContext(cx, PR_TRUE);
- return rv;
-}
-
-SECStatus
-SHA384_restart(unsigned char *dest, const unsigned char *src, uint32 src_length)
-{
- SECStatus rv = SECSuccess;
- SHA384Context *cx, *cx_cpy;
- unsigned char *cxbytes;
- unsigned int len;
- unsigned int i, quarter;
- cx = SHA384_NewContext();
- SHA384_Begin(cx);
- /* divide message by 4, restarting 3 times */
- quarter = (src_length + 3)/ 4;
- for (i=0; i < 4 && src_length > 0; i++) {
- SHA384_Update(cx, src + i*quarter, PR_MIN(quarter, src_length));
- len = SHA384_FlattenSize(cx);
- cxbytes = PORT_Alloc(len);
- SHA384_Flatten(cx, cxbytes);
- cx_cpy = SHA384_Resurrect(cxbytes, NULL);
- if (!cx_cpy) {
- PR_fprintf(PR_STDERR, "%s: SHA384_Resurrect failed!\n", progName);
- rv = SECFailure;
- goto finish;
- }
- rv = PORT_Memcmp(cx, cx_cpy, len);
- if (rv) {
- SHA384_DestroyContext(cx_cpy, PR_TRUE);
- PR_fprintf(PR_STDERR, "%s: SHA384_restart failed!\n", progName);
- goto finish;
- }
- SHA384_DestroyContext(cx_cpy, PR_TRUE);
- PORT_Free(cxbytes);
- src_length -= quarter;
- }
- SHA384_End(cx, dest, &len, MD5_LENGTH);
-finish:
- SHA384_DestroyContext(cx, PR_TRUE);
- return rv;
-}
-
-SECStatus
-SHA512_restart(unsigned char *dest, const unsigned char *src, uint32 src_length)
-{
- SECStatus rv = SECSuccess;
- SHA512Context *cx, *cx_cpy;
- unsigned char *cxbytes;
- unsigned int len;
- unsigned int i, quarter;
- cx = SHA512_NewContext();
- SHA512_Begin(cx);
- /* divide message by 4, restarting 3 times */
- quarter = (src_length + 3)/ 4;
- for (i=0; i < 4 && src_length > 0; i++) {
- SHA512_Update(cx, src + i*quarter, PR_MIN(quarter, src_length));
- len = SHA512_FlattenSize(cx);
- cxbytes = PORT_Alloc(len);
- SHA512_Flatten(cx, cxbytes);
- cx_cpy = SHA512_Resurrect(cxbytes, NULL);
- if (!cx_cpy) {
- PR_fprintf(PR_STDERR, "%s: SHA512_Resurrect failed!\n", progName);
- rv = SECFailure;
- goto finish;
- }
- rv = PORT_Memcmp(cx, cx_cpy, len);
- if (rv) {
- SHA512_DestroyContext(cx_cpy, PR_TRUE);
- PR_fprintf(PR_STDERR, "%s: SHA512_restart failed!\n", progName);
- goto finish;
- }
- SHA512_DestroyContext(cx_cpy, PR_TRUE);
- PORT_Free(cxbytes);
- src_length -= quarter;
- }
- SHA512_End(cx, dest, &len, MD5_LENGTH);
-finish:
- SHA512_DestroyContext(cx, PR_TRUE);
- return rv;
-}
-
-SECStatus
-pubkeyInitKey(bltestCipherInfo *cipherInfo, PRFileDesc *file,
-#ifdef NSS_ENABLE_ECC
- int keysize, int exponent, char *curveName)
-#else
- int keysize, int exponent)
-#endif
-{
- int i;
- SECStatus rv = SECSuccess;
- bltestRSAParams *rsap;
- bltestDSAParams *dsap;
-#ifdef NSS_ENABLE_ECC
- bltestECDSAParams *ecdsap;
- SECItem *tmpECParamsDER;
- ECParams *tmpECParams = NULL;
- SECItem ecSerialize[3];
-#endif
- switch (cipherInfo->mode) {
- case bltestRSA:
- rsap = &cipherInfo->params.rsa;
- if (keysize > 0) {
- SECItem expitem = { 0, 0, 0 };
- SECITEM_AllocItem(cipherInfo->arena, &expitem, sizeof(int));
- for (i = 1; i <= sizeof(int); i++)
- expitem.data[i-1] = exponent >> (8*(sizeof(int) - i));
- rsap->rsakey = RSA_NewKey(keysize * 8, &expitem);
- serialize_key(&rsap->rsakey->version, 9, file);
- rsap->keysizeInBits = keysize * 8;
- } else {
- setupIO(cipherInfo->arena, &cipherInfo->params.key, file, NULL, 0);
- rsap->rsakey = rsakey_from_filedata(&cipherInfo->params.key.buf);
- rsap->keysizeInBits = rsap->rsakey->modulus.len * 8;
- }
- break;
- case bltestDSA:
- dsap = &cipherInfo->params.dsa;
- if (keysize > 0) {
- dsap->j = PQG_PBITS_TO_INDEX(8*keysize);
- if (!dsap->pqg)
- bltest_pqg_init(dsap);
- rv = DSA_NewKey(dsap->pqg, &dsap->dsakey);
- CHECKERROR(rv, __LINE__);
- serialize_key(&dsap->dsakey->params.prime, 5, file);
- } else {
- setupIO(cipherInfo->arena, &cipherInfo->params.key, file, NULL, 0);
- dsap->dsakey = dsakey_from_filedata(&cipherInfo->params.key.buf);
- dsap->j = PQG_PBITS_TO_INDEX(8*dsap->dsakey->params.prime.len);
- }
- break;
-#ifdef NSS_ENABLE_ECC
- case bltestECDSA:
- ecdsap = &cipherInfo->params.ecdsa;
- if (curveName != NULL) {
- tmpECParamsDER = getECParams(curveName);
- rv = SECOID_Init();
- CHECKERROR(rv, __LINE__);
- rv = EC_DecodeParams(tmpECParamsDER, &tmpECParams) == SECFailure;
- CHECKERROR(rv, __LINE__);
- rv = EC_NewKey(tmpECParams, &ecdsap->eckey);
- CHECKERROR(rv, __LINE__);
- ecSerialize[0].type = tmpECParamsDER->type;
- ecSerialize[0].data = tmpECParamsDER->data;
- ecSerialize[0].len = tmpECParamsDER->len;
- ecSerialize[1].type = ecdsap->eckey->publicValue.type;
- ecSerialize[1].data = ecdsap->eckey->publicValue.data;
- ecSerialize[1].len = ecdsap->eckey->publicValue.len;
- ecSerialize[2].type = ecdsap->eckey->privateValue.type;
- ecSerialize[2].data = ecdsap->eckey->privateValue.data;
- ecSerialize[2].len = ecdsap->eckey->privateValue.len;
- serialize_key(&(ecSerialize[0]), 3, file);
- SECITEM_FreeItem(tmpECParamsDER, PR_TRUE);
- PORT_FreeArena(tmpECParams->arena, PR_TRUE);
- rv = SECOID_Shutdown();
- CHECKERROR(rv, __LINE__);
- } else {
- setupIO(cipherInfo->arena, &cipherInfo->params.key, file, NULL, 0);
- ecdsap->eckey = eckey_from_filedata(&cipherInfo->params.key.buf);
- }
- break;
-#endif
- default:
- return SECFailure;
- }
- return SECSuccess;
-}
-
-SECStatus
-cipherInit(bltestCipherInfo *cipherInfo, PRBool encrypt)
-{
- PRBool restart;
- switch (cipherInfo->mode) {
- case bltestDES_ECB:
- case bltestDES_CBC:
- case bltestDES_EDE_ECB:
- case bltestDES_EDE_CBC:
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- cipherInfo->input.pBuf.len);
- return bltest_des_init(cipherInfo, encrypt);
- break;
- case bltestRC2_ECB:
- case bltestRC2_CBC:
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- cipherInfo->input.pBuf.len);
- return bltest_rc2_init(cipherInfo, encrypt);
- break;
- case bltestRC4:
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- cipherInfo->input.pBuf.len);
- return bltest_rc4_init(cipherInfo, encrypt);
- break;
-#ifdef NSS_SOFTOKEN_DOES_RC5
- case bltestRC5_ECB:
- case bltestRC5_CBC:
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- cipherInfo->input.pBuf.len);
-#endif
- return bltest_rc5_init(cipherInfo, encrypt);
- break;
- case bltestAES_ECB:
- case bltestAES_CBC:
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- cipherInfo->input.pBuf.len);
- return bltest_aes_init(cipherInfo, encrypt);
- break;
- case bltestCAMELLIA_ECB:
- case bltestCAMELLIA_CBC:
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- cipherInfo->input.pBuf.len);
- return bltest_camellia_init(cipherInfo, encrypt);
- break;
- case bltestSEED_ECB:
- case bltestSEED_CBC:
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- cipherInfo->input.pBuf.len);
- return bltest_seed_init(cipherInfo, encrypt);
- break;
- case bltestRSA:
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- cipherInfo->input.pBuf.len);
- return bltest_rsa_init(cipherInfo, encrypt);
- break;
- case bltestDSA:
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- DSA_SIGNATURE_LEN);
- return bltest_dsa_init(cipherInfo, encrypt);
- break;
-#ifdef NSS_ENABLE_ECC
- case bltestECDSA:
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- 2 * MAX_ECKEY_LEN);
- return bltest_ecdsa_init(cipherInfo, encrypt);
- break;
-#endif
- case bltestMD2:
- restart = cipherInfo->params.hash.restart;
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- MD2_LENGTH);
- cipherInfo->cipher.hashCipher = (restart) ? md2_restart : md2_HashBuf;
- return SECSuccess;
- break;
- case bltestMD5:
- restart = cipherInfo->params.hash.restart;
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- MD5_LENGTH);
- cipherInfo->cipher.hashCipher = (restart) ? md5_restart : MD5_HashBuf;
- return SECSuccess;
- break;
- case bltestSHA1:
- restart = cipherInfo->params.hash.restart;
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- SHA1_LENGTH);
- cipherInfo->cipher.hashCipher = (restart) ? sha1_restart : SHA1_HashBuf;
- return SECSuccess;
- break;
- case bltestSHA256:
- restart = cipherInfo->params.hash.restart;
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- SHA256_LENGTH);
- cipherInfo->cipher.hashCipher = (restart) ? SHA256_restart
- : SHA256_HashBuf;
- return SECSuccess;
- break;
- case bltestSHA384:
- restart = cipherInfo->params.hash.restart;
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- SHA384_LENGTH);
- cipherInfo->cipher.hashCipher = (restart) ? SHA384_restart
- : SHA384_HashBuf;
- return SECSuccess;
- break;
- case bltestSHA512:
- restart = cipherInfo->params.hash.restart;
- SECITEM_AllocItem(cipherInfo->arena, &cipherInfo->output.buf,
- SHA512_LENGTH);
- cipherInfo->cipher.hashCipher = (restart) ? SHA512_restart
- : SHA512_HashBuf;
- return SECSuccess;
- break;
- default:
- return SECFailure;
- }
- return SECSuccess;
-}
-
-SECStatus
-dsaOp(bltestCipherInfo *cipherInfo)
-{
- PRIntervalTime time1, time2;
- SECStatus rv = SECSuccess;
- int i;
- int maxLen = cipherInfo->output.pBuf.len;
- SECItem dummyOut = { 0, 0, 0 };
- SECITEM_AllocItem(NULL, &dummyOut, maxLen);
- if (cipherInfo->cipher.pubkeyCipher == dsa_signDigest) {
- if (cipherInfo->params.dsa.sigseed.buf.len > 0) {
- bltestDSAParams *dsa = &cipherInfo->params.dsa;
- DSAPrivateKey *key = (DSAPrivateKey *)cipherInfo->cx;
-
- TIMESTART();
- rv = DSA_SignDigestWithSeed(key,
- &cipherInfo->output.pBuf,
- &cipherInfo->input.pBuf,
- dsa->sigseed.buf.data);
- TIMEFINISH(cipherInfo->optime, 1.0);
- CHECKERROR(rv, __LINE__);
- cipherInfo->repetitions = 0;
- if (cipherInfo->repetitionsToPerfom != 0) {
- TIMESTART();
- for (i=0; irepetitionsToPerfom;
- i++, cipherInfo->repetitions++) {
- rv = DSA_SignDigestWithSeed(key, &dummyOut,
- &cipherInfo->input.pBuf,
- dsa->sigseed.buf.data);
- CHECKERROR(rv, __LINE__);
- }
- } else {
- int opsBetweenChecks = 0;
- TIMEMARK(cipherInfo->seconds);
- while (! (TIMETOFINISH())) {
- int j = 0;
- for (;j < opsBetweenChecks;j++) {
- rv = DSA_SignDigestWithSeed(key, &dummyOut,
- &cipherInfo->input.pBuf,
- dsa->sigseed.buf.data);
- CHECKERROR(rv, __LINE__);
- }
- cipherInfo->repetitions += j;
- }
- }
- TIMEFINISH(cipherInfo->optime, 1.0);
- } else {
- TIMESTART();
- rv = DSA_SignDigest((DSAPrivateKey *)cipherInfo->cx,
- &cipherInfo->output.pBuf,
- &cipherInfo->input.pBuf);
- TIMEFINISH(cipherInfo->optime, 1.0);
- CHECKERROR(rv, __LINE__);
- cipherInfo->repetitions = 0;
- if (cipherInfo->repetitionsToPerfom != 0) {
- TIMESTART();
- for (i=0; irepetitionsToPerfom;
- i++, cipherInfo->repetitions++) {
- rv = DSA_SignDigest((DSAPrivateKey *)cipherInfo->cx,
- &dummyOut,
- &cipherInfo->input.pBuf);
- CHECKERROR(rv, __LINE__);
- }
- } else {
- int opsBetweenChecks = 0;
- TIMEMARK(cipherInfo->seconds);
- while (! (TIMETOFINISH())) {
- int j = 0;
- for (;j < opsBetweenChecks;j++) {
- rv = DSA_SignDigest((DSAPrivateKey *)cipherInfo->cx,
- &dummyOut,
- &cipherInfo->input.pBuf);
- CHECKERROR(rv, __LINE__);
- }
- cipherInfo->repetitions += j;
- }
- }
- TIMEFINISH(cipherInfo->optime, 1.0);
- }
- bltestCopyIO(cipherInfo->arena, &cipherInfo->params.dsa.sig,
- &cipherInfo->output);
- } else {
- TIMESTART();
- rv = DSA_VerifyDigest((DSAPublicKey *)cipherInfo->cx,
- &cipherInfo->params.dsa.sig.buf,
- &cipherInfo->input.pBuf);
- TIMEFINISH(cipherInfo->optime, 1.0);
- CHECKERROR(rv, __LINE__);
- cipherInfo->repetitions = 0;
- if (cipherInfo->repetitionsToPerfom != 0) {
- TIMESTART();
- for (i=0; irepetitionsToPerfom;
- i++, cipherInfo->repetitions++) {
- rv = DSA_VerifyDigest((DSAPublicKey *)cipherInfo->cx,
- &cipherInfo->params.dsa.sig.buf,
- &cipherInfo->input.pBuf);
- CHECKERROR(rv, __LINE__);
- }
- } else {
- int opsBetweenChecks = 0;
- TIMEMARK(cipherInfo->seconds);
- while (! (TIMETOFINISH())) {
- int j = 0;
- for (;j < opsBetweenChecks;j++) {
- rv = DSA_VerifyDigest((DSAPublicKey *)cipherInfo->cx,
- &cipherInfo->params.dsa.sig.buf,
- &cipherInfo->input.pBuf);
- CHECKERROR(rv, __LINE__);
- }
- cipherInfo->repetitions += j;
- }
- }
- TIMEFINISH(cipherInfo->optime, 1.0);
- }
- SECITEM_FreeItem(&dummyOut, PR_FALSE);
- return rv;
-}
-
-#ifdef NSS_ENABLE_ECC
-SECStatus
-ecdsaOp(bltestCipherInfo *cipherInfo)
-{
- PRIntervalTime time1, time2;
- SECStatus rv = SECSuccess;
- int i;
- int maxLen = cipherInfo->output.pBuf.len;
- SECItem dummyOut = { 0, 0, 0 };
- SECITEM_AllocItem(NULL, &dummyOut, maxLen);
- if (cipherInfo->cipher.pubkeyCipher == ecdsa_signDigest) {
- if (cipherInfo->params.ecdsa.sigseed.buf.len > 0) {
- ECPrivateKey *key = (ECPrivateKey *)cipherInfo->cx;
- bltestECDSAParams *ecdsa = &cipherInfo->params.ecdsa;
-
- TIMESTART();
- rv = ECDSA_SignDigestWithSeed(key,
- &cipherInfo->output.pBuf,
- &cipherInfo->input.pBuf,
- ecdsa->sigseed.buf.data,
- ecdsa->sigseed.buf.len);
- TIMEFINISH(cipherInfo->optime, 1.0);
- CHECKERROR(rv, __LINE__);
- cipherInfo->repetitions = 0;
- if (cipherInfo->repetitionsToPerfom != 0) {
- TIMESTART();
- for (i=0; irepetitionsToPerfom;
- i++, cipherInfo->repetitions++) {
- rv = ECDSA_SignDigestWithSeed(key, &dummyOut,
- &cipherInfo->input.pBuf,
- ecdsa->sigseed.buf.data,
- ecdsa->sigseed.buf.len);
- CHECKERROR(rv, __LINE__);
- }
- } else {
- int opsBetweenChecks = 0;
- TIMEMARK(cipherInfo->seconds);
- while (! (TIMETOFINISH())) {
- int j = 0;
- for (;j < opsBetweenChecks;j++) {
- rv = ECDSA_SignDigestWithSeed(key, &dummyOut,
- &cipherInfo->input.pBuf,
- ecdsa->sigseed.buf.data,
- ecdsa->sigseed.buf.len);
- CHECKERROR(rv, __LINE__);
- }
- cipherInfo->repetitions += j;
- }
- }
- TIMEFINISH(cipherInfo->optime, 1.0);
- } else {
- TIMESTART();
- rv = ECDSA_SignDigest((ECPrivateKey *)cipherInfo->cx,
- &cipherInfo->output.pBuf,
- &cipherInfo->input.pBuf);
- TIMEFINISH(cipherInfo->optime, 1.0);
- CHECKERROR(rv, __LINE__);
- cipherInfo->repetitions = 0;
- if (cipherInfo->repetitionsToPerfom != 0) {
- TIMESTART();
- for (i=0; irepetitionsToPerfom;
- i++, cipherInfo->repetitions++) {
- rv = ECDSA_SignDigest((ECPrivateKey *)cipherInfo->cx,
- &dummyOut,
- &cipherInfo->input.pBuf);
- CHECKERROR(rv, __LINE__);
- }
- } else {
- int opsBetweenChecks = 0;
- TIMEMARK(cipherInfo->seconds);
- while (! (TIMETOFINISH())) {
- int j = 0;
- for (;j < opsBetweenChecks;j++) {
- rv = ECDSA_SignDigest((ECPrivateKey *)cipherInfo->cx,
- &dummyOut,
- &cipherInfo->input.pBuf);
- CHECKERROR(rv, __LINE__);
- }
- cipherInfo->repetitions += j;
- }
- }
- TIMEFINISH(cipherInfo->optime, 1.0);
- }
- bltestCopyIO(cipherInfo->arena, &cipherInfo->params.ecdsa.sig,
- &cipherInfo->output);
- } else {
- TIMESTART();
- rv = ECDSA_VerifyDigest((ECPublicKey *)cipherInfo->cx,
- &cipherInfo->params.ecdsa.sig.buf,
- &cipherInfo->input.pBuf);
- TIMEFINISH(cipherInfo->optime, 1.0);
- CHECKERROR(rv, __LINE__);
- cipherInfo->repetitions = 0;
- if (cipherInfo->repetitionsToPerfom != 0) {
- TIMESTART();
- for (i=0; irepetitionsToPerfom;
- i++, cipherInfo->repetitions++) {
- rv = ECDSA_VerifyDigest((ECPublicKey *)cipherInfo->cx,
- &cipherInfo->params.ecdsa.sig.buf,
- &cipherInfo->input.pBuf);
- CHECKERROR(rv, __LINE__);
- }
- } else {
- int opsBetweenChecks = 0;
- TIMEMARK(cipherInfo->seconds);
- while (! (TIMETOFINISH())) {
- int j = 0;
- for (;j < opsBetweenChecks;j++) {
- rv = ECDSA_VerifyDigest((ECPublicKey *)cipherInfo->cx,
- &cipherInfo->params.ecdsa.sig.buf,
- &cipherInfo->input.pBuf);
- CHECKERROR(rv, __LINE__);
- }
- cipherInfo->repetitions += j;
- }
- }
- TIMEFINISH(cipherInfo->optime, 1.0);
- }
- SECITEM_FreeItem(&dummyOut, PR_FALSE);
- return rv;
-}
-#endif
-
-SECStatus
-cipherDoOp(bltestCipherInfo *cipherInfo)
-{
- PRIntervalTime time1, time2;
- SECStatus rv = SECSuccess;
- int i, len;
- int maxLen = cipherInfo->output.pBuf.len;
- unsigned char *dummyOut;
- if (cipherInfo->mode == bltestDSA)
- return dsaOp(cipherInfo);
-#ifdef NSS_ENABLE_ECC
- else if (cipherInfo->mode == bltestECDSA)
- return ecdsaOp(cipherInfo);
-#endif
- dummyOut = PORT_Alloc(maxLen);
- if (is_symmkeyCipher(cipherInfo->mode)) {
- TIMESTART();
- rv = (*cipherInfo->cipher.symmkeyCipher)(cipherInfo->cx,
- cipherInfo->output.pBuf.data,
- &len, maxLen,
- cipherInfo->input.pBuf.data,
- cipherInfo->input.pBuf.len);
- TIMEFINISH(cipherInfo->optime, 1.0);
- CHECKERROR(rv, __LINE__);
- cipherInfo->repetitions = 0;
- if (cipherInfo->repetitionsToPerfom != 0) {
- TIMESTART();
- for (i=0; irepetitionsToPerfom; i++,
- cipherInfo->repetitions++) {
- (*cipherInfo->cipher.symmkeyCipher)(cipherInfo->cx, dummyOut,
- &len, maxLen,
- cipherInfo->input.pBuf.data,
- cipherInfo->input.pBuf.len);
-
- CHECKERROR(rv, __LINE__);
- }
- } else {
- int opsBetweenChecks = 0;
- bltestIO *input = &cipherInfo->input;
- TIMEMARK(cipherInfo->seconds);
- while (! (TIMETOFINISH())) {
- int j = 0;
- for (;j < opsBetweenChecks;j++) {
- (*cipherInfo->cipher.symmkeyCipher)(cipherInfo->cx,
- dummyOut,
- &len, maxLen,
- input->pBuf.data,
- input->pBuf.len);
- }
- cipherInfo->repetitions += j;
- }
- }
- TIMEFINISH(cipherInfo->optime, 1.0);
- } else if (is_pubkeyCipher(cipherInfo->mode)) {
- TIMESTART();
- rv = (*cipherInfo->cipher.pubkeyCipher)(cipherInfo->cx,
- &cipherInfo->output.pBuf,
- &cipherInfo->input.pBuf);
- TIMEFINISH(cipherInfo->optime, 1.0);
- CHECKERROR(rv, __LINE__);
- cipherInfo->repetitions = 0;
- if (cipherInfo->repetitionsToPerfom != 0) {
- TIMESTART();
- for (i=0; irepetitionsToPerfom;
- i++, cipherInfo->repetitions++) {
- SECItem dummy;
- dummy.data = dummyOut;
- dummy.len = maxLen;
- (*cipherInfo->cipher.pubkeyCipher)(cipherInfo->cx, &dummy,
- &cipherInfo->input.pBuf);
- CHECKERROR(rv, __LINE__);
- }
- } else {
- int opsBetweenChecks = 0;
- TIMEMARK(cipherInfo->seconds);
- while (! (TIMETOFINISH())) {
- int j = 0;
- for (;j < opsBetweenChecks;j++) {
- SECItem dummy;
- dummy.data = dummyOut;
- dummy.len = maxLen;
- (*cipherInfo->cipher.pubkeyCipher)(cipherInfo->cx, &dummy,
- &cipherInfo->input.pBuf);
- CHECKERROR(rv, __LINE__);
- }
- cipherInfo->repetitions += j;
- }
- }
- TIMEFINISH(cipherInfo->optime, 1.0);
- } else if (is_hashCipher(cipherInfo->mode)) {
- TIMESTART();
- rv = (*cipherInfo->cipher.hashCipher)(cipherInfo->output.pBuf.data,
- cipherInfo->input.pBuf.data,
- cipherInfo->input.pBuf.len);
- TIMEFINISH(cipherInfo->optime, 1.0);
- CHECKERROR(rv, __LINE__);
- cipherInfo->repetitions = 0;
- if (cipherInfo->repetitionsToPerfom != 0) {
- TIMESTART();
- for (i=0; irepetitionsToPerfom;
- i++, cipherInfo->repetitions++) {
- (*cipherInfo->cipher.hashCipher)(dummyOut,
- cipherInfo->input.pBuf.data,
- cipherInfo->input.pBuf.len);
- CHECKERROR(rv, __LINE__);
- }
- } else {
- int opsBetweenChecks = 0;
- TIMEMARK(cipherInfo->seconds);
- while (! (TIMETOFINISH())) {
- int j = 0;
- for (;j < opsBetweenChecks;j++) {
- bltestIO *input = &cipherInfo->input;
- (*cipherInfo->cipher.hashCipher)(dummyOut,
- input->pBuf.data,
- input->pBuf.len);
- CHECKERROR(rv, __LINE__);
- }
- cipherInfo->repetitions += j;
- }
- }
- TIMEFINISH(cipherInfo->optime, 1.0);
- }
- PORT_Free(dummyOut);
- return rv;
-}
-
-SECStatus
-cipherFinish(bltestCipherInfo *cipherInfo)
-{
- switch (cipherInfo->mode) {
- case bltestDES_ECB:
- case bltestDES_CBC:
- case bltestDES_EDE_ECB:
- case bltestDES_EDE_CBC:
- DES_DestroyContext((DESContext *)cipherInfo->cx, PR_TRUE);
- break;
- case bltestAES_ECB:
- case bltestAES_CBC:
- AES_DestroyContext((AESContext *)cipherInfo->cx, PR_TRUE);
- break;
- case bltestCAMELLIA_ECB:
- case bltestCAMELLIA_CBC:
- Camellia_DestroyContext((CamelliaContext *)cipherInfo->cx, PR_TRUE);
- break;
- case bltestSEED_ECB:
- case bltestSEED_CBC:
- SEED_DestroyContext((SEEDContext *)cipherInfo->cx, PR_TRUE);
- break;
- case bltestRC2_ECB:
- case bltestRC2_CBC:
- RC2_DestroyContext((RC2Context *)cipherInfo->cx, PR_TRUE);
- break;
- case bltestRC4:
- RC4_DestroyContext((RC4Context *)cipherInfo->cx, PR_TRUE);
- break;
-#ifdef NSS_SOFTOKEN_DOES_RC5
- case bltestRC5_ECB:
- case bltestRC5_CBC:
- RC5_DestroyContext((RC5Context *)cipherInfo->cx, PR_TRUE);
- break;
-#endif
- case bltestRSA: /* keys are alloc'ed within cipherInfo's arena, */
- case bltestDSA: /* will be freed with it. */
-#ifdef NSS_ENABLE_ECC
- case bltestECDSA:
-#endif
- case bltestMD2: /* hash contexts are ephemeral */
- case bltestMD5:
- case bltestSHA1:
- case bltestSHA256:
- case bltestSHA384:
- case bltestSHA512:
- return SECSuccess;
- break;
- default:
- return SECFailure;
- }
- return SECSuccess;
-}
-
-void
-print_exponent(SECItem *exp)
-{
- int i;
- int e = 0;
- if (exp->len <= 4) {
- for (i=exp->len; i >=0; --i) e |= exp->data[exp->len-i] << 8*(i-1);
- fprintf(stdout, "%12d", e);
- } else {
- e = 8*exp->len;
- fprintf(stdout, "~2**%-8d", e);
- }
-}
-
-static void
-splitToReportUnit(PRInt64 res, int *resArr, int *del, int size)
-{
- PRInt64 remaining = res, tmp = 0;
- PRInt64 Ldel;
- int i = -1;
-
- while (remaining > 0 && ++i < size) {
- LL_I2L(Ldel, del[i]);
- LL_MOD(tmp, remaining, Ldel);
- LL_L2I(resArr[i], tmp);
- LL_DIV(remaining, remaining, Ldel);
- }
-}
-
-static char*
-getHighUnitBytes(PRInt64 res)
-{
- int spl[] = {0, 0, 0, 0};
- int del[] = {1024, 1024, 1024, 1024};
- char *marks[] = {"b", "Kb", "Mb", "Gb"};
- int i = 3;
-
- splitToReportUnit(res, spl, del, 4);
-
- for (;i>0;i--) {
- if (spl[i] != 0) {
- break;
- }
- }
-
- return PR_smprintf("%d%s", spl[i], marks[i]);
-}
-
-
-static void
-printPR_smpString(const char *sformat, char *reportStr,
- const char *nformat, PRInt64 rNum)
-{
- if (reportStr) {
- fprintf(stdout, sformat, reportStr);
- PR_smprintf_free(reportStr);
- } else {
- int prnRes;
- LL_L2I(prnRes, rNum);
- fprintf(stdout, nformat, rNum);
- }
-}
-
-static char*
-getHighUnitOps(PRInt64 res)
-{
- int spl[] = {0, 0, 0, 0};
- int del[] = {1000, 1000, 1000, 1000};
- char *marks[] = {"", "T", "M", "B"};
- int i = 3;
-
- splitToReportUnit(res, spl, del, 4);
-
- for (;i>0;i--) {
- if (spl[i] != 0) {
- break;
- }
- }
-
- return PR_smprintf("%d%s", spl[i], marks[i]);
-}
-
-void
-dump_performance_info(bltestCipherInfo *infoList, double totalTimeInt,
- PRBool encrypt, PRBool cxonly)
-{
- bltestCipherInfo *info = infoList;
-
- PRInt64 totalIn = 0;
- PRBool td = PR_TRUE;
-
- int repetitions = 0;
- int cxreps = 0;
- double cxtime = 0;
- double optime = 0;
- while (info != NULL) {
- repetitions += info->repetitions;
- cxreps += info->cxreps;
- cxtime += info->cxtime;
- optime += info->optime;
- totalIn += (PRInt64) info->input.buf.len * (PRInt64) info->repetitions;
-
- info = info->next;
- }
- info = infoList;
-
- fprintf(stdout, "#%9s", "mode");
- fprintf(stdout, "%12s", "in");
-print_td:
- switch (info->mode) {
- case bltestDES_ECB:
- case bltestDES_CBC:
- case bltestDES_EDE_ECB:
- case bltestDES_EDE_CBC:
- case bltestAES_ECB:
- case bltestAES_CBC:
- case bltestCAMELLIA_ECB:
- case bltestCAMELLIA_CBC:
- case bltestSEED_ECB:
- case bltestSEED_CBC:
- case bltestRC2_ECB:
- case bltestRC2_CBC:
- case bltestRC4:
- if (td)
- fprintf(stdout, "%8s", "symmkey");
- else
- fprintf(stdout, "%8d", 8*info->params.sk.key.buf.len);
- break;
-#ifdef NSS_SOFTOKEN_DOES_RC5
- case bltestRC5_ECB:
- case bltestRC5_CBC:
- if (info->params.sk.key.buf.len > 0)
- printf("symmetric key(bytes)=%d,", info->params.sk.key.buf.len);
- if (info->rounds > 0)
- printf("rounds=%d,", info->params.rc5.rounds);
- if (info->wordsize > 0)
- printf("wordsize(bytes)=%d,", info->params.rc5.wordsize);
- break;
-#endif
- case bltestRSA:
- if (td) {
- fprintf(stdout, "%8s", "rsa_mod");
- fprintf(stdout, "%12s", "rsa_pe");
- } else {
- fprintf(stdout, "%8d", info->params.rsa.keysizeInBits);
- print_exponent(&info->params.rsa.rsakey->publicExponent);
- }
- break;
- case bltestDSA:
- if (td)
- fprintf(stdout, "%8s", "pqg_mod");
- else
- fprintf(stdout, "%8d", PQG_INDEX_TO_PBITS(info->params.dsa.j));
- break;
-#ifdef NSS_ENABLE_ECC
- case bltestECDSA:
- if (td)
- fprintf(stdout, "%12s", "ec_curve");
- else {
- ECCurveName curveName = info->params.ecdsa.eckey->ecParams.name;
- fprintf(stdout, "%12s",
- ecCurve_map[curveName]? ecCurve_map[curveName]->text:
- "Unsupported curve");
- }
- break;
-#endif
- case bltestMD2:
- case bltestMD5:
- case bltestSHA1:
- case bltestSHA256:
- case bltestSHA384:
- case bltestSHA512:
- default:
- break;
- }
- if (!td) {
- PRInt64 totalThroughPut;
-
- printPR_smpString("%8s", getHighUnitOps(repetitions),
- "%8d", repetitions);
-
- printPR_smpString("%8s", getHighUnitOps(cxreps), "%8d", cxreps);
-
- fprintf(stdout, "%12.3f", cxtime);
- fprintf(stdout, "%12.3f", optime);
- fprintf(stdout, "%12.03f", totalTimeInt / 1000);
-
- totalThroughPut = (PRInt64)(totalIn / totalTimeInt * 1000);
- printPR_smpString("%12s", getHighUnitBytes(totalThroughPut),
- "%12d", totalThroughPut);
-
- fprintf(stdout, "\n");
- return;
- }
-
- fprintf(stdout, "%8s", "opreps");
- fprintf(stdout, "%8s", "cxreps");
- fprintf(stdout, "%12s", "context");
- fprintf(stdout, "%12s", "op");
- fprintf(stdout, "%12s", "time(sec)");
- fprintf(stdout, "%12s", "thrgput");
- fprintf(stdout, "\n");
- fprintf(stdout, "%8s", mode_strings[info->mode]);
- fprintf(stdout, "_%c", (cxonly) ? 'c' : (encrypt) ? 'e' : 'd');
- printPR_smpString("%12s", getHighUnitBytes(totalIn), "%12d", totalIn);
-
- td = !td;
- goto print_td;
-}
-
-void
-printmodes()
-{
- bltestCipherMode mode;
- int nummodes = sizeof(mode_strings) / sizeof(char *);
- fprintf(stderr, "%s: Available modes (specify with -m):\n", progName);
- for (mode=0; modemode = ioMode;
- data->file = NULL; /* don't use -- not saving anything */
- data->pBuf.data = NULL;
- data->pBuf.len = 0;
- file = PR_Open(fn, PR_RDONLY, 00660);
- if (file)
- setupIO(arena, data, file, NULL, 0);
-}
-
-void
-get_params(PRArenaPool *arena, bltestParams *params,
- bltestCipherMode mode, int j)
-{
- char filename[256];
- char *modestr = mode_strings[mode];
-#ifdef NSS_SOFTOKEN_DOES_RC5
- FILE *file;
- char *mark, *param, *val;
- int index = 0;
-#endif
- switch (mode) {
- case bltestDES_CBC:
- case bltestDES_EDE_CBC:
- case bltestRC2_CBC:
- case bltestAES_CBC:
- case bltestCAMELLIA_CBC:
- case bltestSEED_CBC:
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "iv", j);
- load_file_data(arena, ¶ms->sk.iv, filename, bltestBinary);
- case bltestDES_ECB:
- case bltestDES_EDE_ECB:
- case bltestRC2_ECB:
- case bltestRC4:
- case bltestAES_ECB:
- case bltestCAMELLIA_ECB:
- case bltestSEED_ECB:
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "key", j);
- load_file_data(arena, ¶ms->sk.key, filename, bltestBinary);
- break;
-#ifdef NSS_SOFTOKEN_DOES_RC5
- case bltestRC5_ECB:
- case bltestRC5_CBC:
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "iv", j);
- load_file_data(arena, ¶ms->sk.iv, filename, bltestBinary);
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "key", j);
- load_file_data(arena, ¶ms->sk.key, filename, bltestBinary);
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr,
- "params", j);
- file = fopen(filename, "r");
- if (!file) return;
- param = malloc(100);
- len = fread(param, 1, 100, file);
- while (index < len) {
- mark = PL_strchr(param, '=');
- *mark = '\0';
- val = mark + 1;
- mark = PL_strchr(val, '\n');
- *mark = '\0';
- if (PL_strcmp(param, "rounds") == 0) {
- params->rc5.rounds = atoi(val);
- } else if (PL_strcmp(param, "wordsize") == 0) {
- params->rc5.wordsize = atoi(val);
- }
- index += PL_strlen(param) + PL_strlen(val) + 2;
- param = mark + 1;
- }
- break;
-#endif
- case bltestRSA:
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "key", j);
- load_file_data(arena, ¶ms->rsa.key, filename, bltestBase64Encoded);
- params->rsa.rsakey = rsakey_from_filedata(¶ms->key.buf);
- break;
- case bltestDSA:
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "key", j);
- load_file_data(arena, ¶ms->dsa.key, filename, bltestBase64Encoded);
- params->dsa.dsakey = dsakey_from_filedata(¶ms->key.buf);
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "pqg", j);
- load_file_data(arena, ¶ms->dsa.pqgdata, filename,
- bltestBase64Encoded);
- params->dsa.pqg = pqg_from_filedata(¶ms->dsa.pqgdata.buf);
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "keyseed", j);
- load_file_data(arena, ¶ms->dsa.keyseed, filename,
- bltestBase64Encoded);
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "sigseed", j);
- load_file_data(arena, ¶ms->dsa.sigseed, filename,
- bltestBase64Encoded);
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "ciphertext",j);
- load_file_data(arena, ¶ms->dsa.sig, filename, bltestBase64Encoded);
- break;
-#ifdef NSS_ENABLE_ECC
- case bltestECDSA:
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "key", j);
- load_file_data(arena, ¶ms->ecdsa.key, filename, bltestBase64Encoded);
- params->ecdsa.eckey = eckey_from_filedata(¶ms->key.buf);
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "sigseed", j);
- load_file_data(arena, ¶ms->ecdsa.sigseed, filename,
- bltestBase64Encoded);
- sprintf(filename, "%s/tests/%s/%s%d", testdir, modestr, "ciphertext",j);
- load_file_data(arena, ¶ms->ecdsa.sig, filename, bltestBase64Encoded);
- break;
-#endif
- case bltestMD2:
- case bltestMD5:
- case bltestSHA1:
- case bltestSHA256:
- case bltestSHA384:
- case bltestSHA512:
- /*params->hash.restart = PR_TRUE;*/
- params->hash.restart = PR_FALSE;
- break;
- default:
- break;
- }
-}
-
-SECStatus
-verify_self_test(bltestIO *result, bltestIO *cmp, bltestCipherMode mode,
- PRBool forward, SECStatus sigstatus)
-{
- int res;
- char *modestr = mode_strings[mode];
- res = SECITEM_CompareItem(&result->pBuf, &cmp->buf);
- if (is_sigCipher(mode)) {
- if (forward) {
- if (res == 0) {
- printf("Signature self-test for %s passed.\n", modestr);
- } else {
- printf("Signature self-test for %s failed!\n", modestr);
- }
- } else {
- if (sigstatus == SECSuccess) {
- printf("Verification self-test for %s passed.\n", modestr);
- } else {
- printf("Verification self-test for %s failed!\n", modestr);
- }
- }
- return sigstatus;
- } else if (is_hashCipher(mode)) {
- if (res == 0) {
- printf("Hash self-test for %s passed.\n", modestr);
- } else {
- printf("Hash self-test for %s failed!\n", modestr);
- }
- } else {
- if (forward) {
- if (res == 0) {
- printf("Encryption self-test for %s passed.\n", modestr);
- } else {
- printf("Encryption self-test for %s failed!\n", modestr);
- }
- } else {
- if (res == 0) {
- printf("Decryption self-test for %s passed.\n", modestr);
- } else {
- printf("Decryption self-test for %s failed!\n", modestr);
- }
- }
- }
- return (res != 0);
-}
-
-static SECStatus
-blapi_selftest(bltestCipherMode *modes, int numModes, int inoff, int outoff,
- PRBool encrypt, PRBool decrypt)
-{
- bltestCipherInfo cipherInfo;
- bltestIO pt, ct;
- bltestCipherMode mode;
- bltestParams *params;
- int i, j, nummodes, numtests;
- char *modestr;
- char filename[256];
- PRFileDesc *file;
- PRArenaPool *arena;
- SECItem item;
- PRBool finished;
- SECStatus rv = SECSuccess, srv;
-
- PORT_Memset(&cipherInfo, 0, sizeof(cipherInfo));
- arena = PORT_NewArena(BLTEST_DEFAULT_CHUNKSIZE);
- cipherInfo.arena = arena;
-
- finished = PR_FALSE;
- nummodes = (numModes == 0) ? NUMMODES : numModes;
- for (i=0; i < nummodes && !finished; i++) {
- if (numModes > 0)
- mode = modes[i];
- else
- mode = i;
- if (mode == bltestINVALID) {
- fprintf(stderr, "%s: Skipping invalid mode.\n",progName);
- continue;
- }
- modestr = mode_strings[mode];
- cipherInfo.mode = mode;
- params = &cipherInfo.params;
-#ifdef TRACK_BLTEST_BUG
- if (mode == bltestRSA) {
- fprintf(stderr, "[%s] Self-Testing RSA\n", __bltDBG);
- }
-#endif
- /* get the number of tests in the directory */
- sprintf(filename, "%s/tests/%s/%s", testdir, modestr, "numtests");
- file = PR_Open(filename, PR_RDONLY, 00660);
- if (!file) {
- fprintf(stderr, "%s: File %s does not exist.\n", progName,filename);
- return SECFailure;
- }
- rv = SECU_FileToItem(&item, file);
-#ifdef TRACK_BLTEST_BUG
- if (mode == bltestRSA) {
- fprintf(stderr, "[%s] Loaded data from %s\n", __bltDBG, filename);
- }
-#endif
- PR_Close(file);
- /* loop over the tests in the directory */
- numtests = 0;
- for (j=0; jmCarlo == PR_TRUE) {
- int mciter;
- for (mciter=0; mciter<10000; mciter++) {
- cipherDoOp(cipherInfo);
- memcpy(cipherInfo->input.buf.data,
- cipherInfo->output.buf.data,
- cipherInfo->input.buf.len);
- }
- } else {
- cipherDoOp(cipherInfo);
- }
- cipherFinish(cipherInfo);
-}
-
-/* bltest commands */
-enum {
- cmd_Decrypt = 0,
- cmd_Encrypt,
- cmd_FIPS,
- cmd_Hash,
- cmd_Nonce,
- cmd_Dump,
- cmd_Sign,
- cmd_SelfTest,
- cmd_Verify
-};
-
-/* bltest options */
-enum {
- opt_B64 = 0,
- opt_BufSize,
- opt_Restart,
- opt_SelfTestDir,
- opt_Exponent,
- opt_SigFile,
- opt_KeySize,
- opt_Hex,
- opt_Input,
- opt_PQGFile,
- opt_Key,
- opt_HexWSpc,
- opt_Mode,
-#ifdef NSS_ENABLE_ECC
- opt_CurveName,
-#endif
- opt_Output,
- opt_Repetitions,
- opt_ZeroBuf,
- opt_Rounds,
- opt_Seed,
- opt_SigSeedFile,
- opt_CXReps,
- opt_IV,
- opt_WordSize,
- opt_UseSeed,
- opt_UseSigSeed,
- opt_SeedFile,
- opt_InputOffset,
- opt_OutputOffset,
- opt_MonteCarlo,
- opt_ThreadNum,
- opt_SecondsToRun,
- opt_CmdLine
-};
-
-static secuCommandFlag bltest_commands[] =
-{
- { /* cmd_Decrypt */ 'D', PR_FALSE, 0, PR_FALSE },
- { /* cmd_Encrypt */ 'E', PR_FALSE, 0, PR_FALSE },
- { /* cmd_FIPS */ 'F', PR_FALSE, 0, PR_FALSE },
- { /* cmd_Hash */ 'H', PR_FALSE, 0, PR_FALSE },
- { /* cmd_Nonce */ 'N', PR_FALSE, 0, PR_FALSE },
- { /* cmd_Dump */ 'P', PR_FALSE, 0, PR_FALSE },
- { /* cmd_Sign */ 'S', PR_FALSE, 0, PR_FALSE },
- { /* cmd_SelfTest */ 'T', PR_FALSE, 0, PR_FALSE },
- { /* cmd_Verify */ 'V', PR_FALSE, 0, PR_FALSE }
-};
-
-static secuCommandFlag bltest_options[] =
-{
- { /* opt_B64 */ 'a', PR_FALSE, 0, PR_FALSE },
- { /* opt_BufSize */ 'b', PR_TRUE, 0, PR_FALSE },
- { /* opt_Restart */ 'c', PR_FALSE, 0, PR_FALSE },
- { /* opt_SelfTestDir */ 'd', PR_TRUE, 0, PR_FALSE },
- { /* opt_Exponent */ 'e', PR_TRUE, 0, PR_FALSE },
- { /* opt_SigFile */ 'f', PR_TRUE, 0, PR_FALSE },
- { /* opt_KeySize */ 'g', PR_TRUE, 0, PR_FALSE },
- { /* opt_Hex */ 'h', PR_FALSE, 0, PR_FALSE },
- { /* opt_Input */ 'i', PR_TRUE, 0, PR_FALSE },
- { /* opt_PQGFile */ 'j', PR_TRUE, 0, PR_FALSE },
- { /* opt_Key */ 'k', PR_TRUE, 0, PR_FALSE },
- { /* opt_HexWSpc */ 'l', PR_FALSE, 0, PR_FALSE },
- { /* opt_Mode */ 'm', PR_TRUE, 0, PR_FALSE },
-#ifdef NSS_ENABLE_ECC
- { /* opt_CurveName */ 'n', PR_TRUE, 0, PR_FALSE },
-#endif
- { /* opt_Output */ 'o', PR_TRUE, 0, PR_FALSE },
- { /* opt_Repetitions */ 'p', PR_TRUE, 0, PR_FALSE },
- { /* opt_ZeroBuf */ 'q', PR_FALSE, 0, PR_FALSE },
- { /* opt_Rounds */ 'r', PR_TRUE, 0, PR_FALSE },
- { /* opt_Seed */ 's', PR_TRUE, 0, PR_FALSE },
- { /* opt_SigSeedFile */ 't', PR_TRUE, 0, PR_FALSE },
- { /* opt_CXReps */ 'u', PR_TRUE, 0, PR_FALSE },
- { /* opt_IV */ 'v', PR_TRUE, 0, PR_FALSE },
- { /* opt_WordSize */ 'w', PR_TRUE, 0, PR_FALSE },
- { /* opt_UseSeed */ 'x', PR_FALSE, 0, PR_FALSE },
- { /* opt_UseSigSeed */ 'y', PR_FALSE, 0, PR_FALSE },
- { /* opt_SeedFile */ 'z', PR_FALSE, 0, PR_FALSE },
- { /* opt_InputOffset */ '1', PR_TRUE, 0, PR_FALSE },
- { /* opt_OutputOffset */ '2', PR_TRUE, 0, PR_FALSE },
- { /* opt_MonteCarlo */ '3', PR_FALSE, 0, PR_FALSE },
- { /* opt_ThreadNum */ '4', PR_TRUE, 0, PR_FALSE },
- { /* opt_SecondsToRun */ '5', PR_TRUE, 0, PR_FALSE },
- { /* opt_CmdLine */ '-', PR_FALSE, 0, PR_FALSE }
-};
-
-int main(int argc, char **argv)
-{
- char *infileName, *outfileName, *keyfileName, *ivfileName;
- SECStatus rv = SECFailure;
-
- double totalTime;
- PRIntervalTime time1, time2;
- PRFileDesc *outfile = NULL;
- bltestCipherInfo *cipherInfoListHead, *cipherInfo;
- bltestIOMode ioMode;
- int bufsize, exponent, curThrdNum;
-#ifdef NSS_ENABLE_ECC
- char *curveName = NULL;
-#endif
- int i, commandsEntered;
- int inoff, outoff;
- int threads = 1;
-
- secuCommand bltest;
- bltest.numCommands = sizeof(bltest_commands) / sizeof(secuCommandFlag);
- bltest.numOptions = sizeof(bltest_options) / sizeof(secuCommandFlag);
- bltest.commands = bltest_commands;
- bltest.options = bltest_options;
-
- progName = strrchr(argv[0], '/');
- if (!progName)
- progName = strrchr(argv[0], '\\');
- progName = progName ? progName+1 : argv[0];
-
- rv = RNG_RNGInit();
- if (rv != SECSuccess) {
- SECU_PrintPRandOSError(progName);
- return -1;
- }
- rv = BL_Init();
- if (rv != SECSuccess) {
- SECU_PrintPRandOSError(progName);
- return -1;
- }
- RNG_SystemInfoForRNG();
-
- rv = SECU_ParseCommandLine(argc, argv, progName, &bltest);
- if (rv == SECFailure) {
- fprintf(stderr, "%s: command line parsing error!\n", progName);
- goto print_usage;
- }
- rv = SECFailure;
-
- cipherInfo = PORT_ZNew(bltestCipherInfo);
- cipherInfoListHead = cipherInfo;
- /* set some defaults */
- infileName = outfileName = keyfileName = ivfileName = NULL;
-
- /* Check the number of commands entered on the command line. */
- commandsEntered = 0;
- for (i=0; i 1 &&
- !(commandsEntered == 2 && bltest.commands[cmd_SelfTest].activated)) {
- fprintf(stderr, "%s: one command at a time!\n", progName);
- goto print_usage;
- }
-
- if (commandsEntered == 0) {
- fprintf(stderr, "%s: you must enter a command!\n", progName);
- goto print_usage;
- }
-
- if (bltest.commands[cmd_Sign].activated)
- bltest.commands[cmd_Encrypt].activated = PR_TRUE;
- if (bltest.commands[cmd_Verify].activated)
- bltest.commands[cmd_Decrypt].activated = PR_TRUE;
- if (bltest.commands[cmd_Hash].activated)
- bltest.commands[cmd_Encrypt].activated = PR_TRUE;
-
- inoff = outoff = 0;
- if (bltest.options[opt_InputOffset].activated)
- inoff = PORT_Atoi(bltest.options[opt_InputOffset].arg);
- if (bltest.options[opt_OutputOffset].activated)
- outoff = PORT_Atoi(bltest.options[opt_OutputOffset].arg);
-
- testdir = (bltest.options[opt_SelfTestDir].activated) ?
- strdup(bltest.options[opt_SelfTestDir].arg) : ".";
-
- /*
- * Handle three simple cases first
- */
-
- /* Do BLAPI self-test */
- if (bltest.commands[cmd_SelfTest].activated) {
- PRBool encrypt = PR_TRUE, decrypt = PR_TRUE;
- /* user may specified a set of ciphers to test. parse them. */
- bltestCipherMode modesToTest[NUMMODES];
- int numModesToTest = 0;
- char *tok, *str;
- str = bltest.options[opt_Mode].arg;
- while (str) {
- tok = strchr(str, ',');
- if (tok) *tok = '\0';
- modesToTest[numModesToTest++] = get_mode(str);
- if (tok) {
- *tok = ',';
- str = tok + 1;
- } else {
- break;
- }
- }
- if (bltest.commands[cmd_Decrypt].activated &&
- !bltest.commands[cmd_Encrypt].activated)
- encrypt = PR_FALSE;
- if (bltest.commands[cmd_Encrypt].activated &&
- !bltest.commands[cmd_Decrypt].activated)
- decrypt = PR_FALSE;
- rv = blapi_selftest(modesToTest, numModesToTest, inoff, outoff,
- encrypt, decrypt);
- PORT_Free(cipherInfo);
- return rv;
- }
-
- /* Do FIPS self-test */
- if (bltest.commands[cmd_FIPS].activated) {
- CK_RV ckrv = sftk_fipsPowerUpSelfTest();
- fprintf(stdout, "CK_RV: %ld.\n", ckrv);
- PORT_Free(cipherInfo);
- if (ckrv == CKR_OK)
- return SECSuccess;
- return SECFailure;
- }
-
- /*
- * Check command line arguments for Encrypt/Decrypt/Hash/Sign/Verify
- */
-
- if ((bltest.commands[cmd_Decrypt].activated ||
- bltest.commands[cmd_Verify].activated) &&
- bltest.options[opt_BufSize].activated) {
- fprintf(stderr, "%s: Cannot use a nonce as input to decrypt/verify.\n",
- progName);
- goto print_usage;
- }
-
- if (bltest.options[opt_Mode].activated) {
- cipherInfo->mode = get_mode(bltest.options[opt_Mode].arg);
- if (cipherInfo->mode == bltestINVALID) {
- goto print_usage;
- }
- } else {
- fprintf(stderr, "%s: You must specify a cipher mode with -m.\n",
- progName);
- goto print_usage;
- }
-
-
- if (bltest.options[opt_Repetitions].activated &&
- bltest.options[opt_SecondsToRun].activated) {
- fprintf(stderr, "%s: Operation time should be defined in either "
- "repetitions(-p) or seconds(-5) not both",
- progName);
- goto print_usage;
- }
-
- if (bltest.options[opt_Repetitions].activated) {
- cipherInfo->repetitionsToPerfom =
- PORT_Atoi(bltest.options[opt_Repetitions].arg);
- } else {
- cipherInfo->repetitionsToPerfom = 0;
- }
-
- if (bltest.options[opt_SecondsToRun].activated) {
- cipherInfo->seconds = PORT_Atoi(bltest.options[opt_SecondsToRun].arg);
- } else {
- cipherInfo->seconds = 0;
- }
-
-
- if (bltest.options[opt_CXReps].activated) {
- cipherInfo->cxreps = PORT_Atoi(bltest.options[opt_CXReps].arg);
- } else {
- cipherInfo->cxreps = 0;
- }
-
- if (bltest.options[opt_ThreadNum].activated) {
- threads = PORT_Atoi(bltest.options[opt_ThreadNum].arg);
- if (threads <= 0) {
- threads = 1;
- }
- }
-
- /* Dump a file (rsakey, dsakey, etc.) */
- if (bltest.commands[cmd_Dump].activated) {
- rv = dump_file(cipherInfo->mode, bltest.options[opt_Input].arg);
- PORT_Free(cipherInfo);
- return rv;
- }
-
- /* default input mode is binary */
- ioMode = (bltest.options[opt_B64].activated) ? bltestBase64Encoded :
- (bltest.options[opt_Hex].activated) ? bltestHexStream :
- (bltest.options[opt_HexWSpc].activated) ? bltestHexSpaceDelim :
- bltestBinary;
-
- if (bltest.options[opt_Exponent].activated)
- exponent = PORT_Atoi(bltest.options[opt_Exponent].arg);
- else
- exponent = 65537;
-
-#ifdef NSS_ENABLE_ECC
- if (bltest.options[opt_CurveName].activated)
- curveName = PORT_Strdup(bltest.options[opt_CurveName].arg);
- else
- curveName = NULL;
-#endif
-
- if (bltest.commands[cmd_Verify].activated &&
- !bltest.options[opt_SigFile].activated) {
- fprintf(stderr, "%s: You must specify a signature file with -f.\n",
- progName);
-
- print_usage:
- PORT_Free(cipherInfo);
- Usage();
- }
-
- if (bltest.options[opt_MonteCarlo].activated) {
- cipherInfo->mCarlo = PR_TRUE;
- } else {
- cipherInfo->mCarlo = PR_FALSE;
- }
-
- for (curThrdNum = 0;curThrdNum < threads;curThrdNum++) {
- int keysize = 0;
- PRFileDesc *file = NULL, *infile;
- bltestParams *params;
- char *instr = NULL;
- PRArenaPool *arena;
-
- if (curThrdNum > 0) {
- bltestCipherInfo *newCInfo = PORT_ZNew(bltestCipherInfo);
- if (!newCInfo) {
- fprintf(stderr, "%s: Can not allocate memory.\n", progName);
- goto exit_point;
- }
- newCInfo->mode = cipherInfo->mode;
- newCInfo->mCarlo = cipherInfo->mCarlo;
- newCInfo->repetitionsToPerfom =
- cipherInfo->repetitionsToPerfom;
- newCInfo->seconds = cipherInfo->seconds;
- newCInfo->cxreps = cipherInfo->cxreps;
- cipherInfo->next = newCInfo;
- cipherInfo = newCInfo;
- }
- arena = PORT_NewArena(BLTEST_DEFAULT_CHUNKSIZE);
- if (!arena) {
- fprintf(stderr, "%s: Can not allocate memory.\n", progName);
- goto exit_point;
- }
- cipherInfo->arena = arena;
- params = &cipherInfo->params;
-
- /* Set up an encryption key. */
- keysize = 0;
- file = NULL;
- if (is_symmkeyCipher(cipherInfo->mode)) {
- char *keystr = NULL; /* if key is on command line */
- if (bltest.options[opt_Key].activated) {
- if (bltest.options[opt_CmdLine].activated) {
- keystr = bltest.options[opt_Key].arg;
- } else {
- file = PR_Open(bltest.options[opt_Key].arg,
- PR_RDONLY, 00660);
- }
- } else {
- if (bltest.options[opt_KeySize].activated)
- keysize = PORT_Atoi(bltest.options[opt_KeySize].arg);
- else
- keysize = 8; /* use 64-bit default (DES) */
- /* save the random key for reference */
- file = PR_Open("tmp.key", PR_WRONLY|PR_CREATE_FILE, 00660);
- }
- params->key.mode = ioMode;
- setupIO(cipherInfo->arena, ¶ms->key, file, keystr, keysize);
- if (file)
- PR_Close(file);
- } else if (is_pubkeyCipher(cipherInfo->mode)) {
- if (bltest.options[opt_Key].activated) {
- file = PR_Open(bltest.options[opt_Key].arg, PR_RDONLY, 00660);
- } else {
- if (bltest.options[opt_KeySize].activated)
- keysize = PORT_Atoi(bltest.options[opt_KeySize].arg);
- else
- keysize = 64; /* use 512-bit default */
- file = PR_Open("tmp.key", PR_WRONLY|PR_CREATE_FILE, 00660);
- }
- params->key.mode = bltestBase64Encoded;
-#ifdef NSS_ENABLE_ECC
- pubkeyInitKey(cipherInfo, file, keysize, exponent, curveName);
-#else
- pubkeyInitKey(cipherInfo, file, keysize, exponent);
-#endif
- PR_Close(file);
- }
-
- /* set up an initialization vector. */
- if (cipher_requires_IV(cipherInfo->mode)) {
- char *ivstr = NULL;
- bltestSymmKeyParams *skp;
- file = NULL;
-#ifdef NSS_SOFTOKEN_DOES_RC5
- if (cipherInfo->mode == bltestRC5_CBC)
- skp = (bltestSymmKeyParams *)¶ms->rc5;
- else
-#endif
- skp = ¶ms->sk;
- if (bltest.options[opt_IV].activated) {
- if (bltest.options[opt_CmdLine].activated) {
- ivstr = bltest.options[opt_IV].arg;
- } else {
- file = PR_Open(bltest.options[opt_IV].arg,
- PR_RDONLY, 00660);
- }
- } else {
- /* save the random iv for reference */
- file = PR_Open("tmp.iv", PR_WRONLY|PR_CREATE_FILE, 00660);
- }
- memset(&skp->iv, 0, sizeof skp->iv);
- skp->iv.mode = ioMode;
- setupIO(cipherInfo->arena, &skp->iv, file, ivstr, keysize);
- if (file) {
- PR_Close(file);
- }
- }
-
- if (bltest.commands[cmd_Verify].activated) {
- file = PR_Open(bltest.options[opt_SigFile].arg, PR_RDONLY, 00660);
- if (cipherInfo->mode == bltestDSA) {
- memset(&cipherInfo->params.dsa.sig, 0, sizeof(bltestIO));
- cipherInfo->params.dsa.sig.mode = ioMode;
- setupIO(cipherInfo->arena, &cipherInfo->params.dsa.sig,
- file, NULL, 0);
-#ifdef NSS_ENABLE_ECC
- } else if (cipherInfo->mode == bltestECDSA) {
- memset(&cipherInfo->params.ecdsa.sig, 0, sizeof(bltestIO));
- cipherInfo->params.ecdsa.sig.mode = ioMode;
- setupIO(cipherInfo->arena, &cipherInfo->params.ecdsa.sig,
- file, NULL, 0);
-#endif
- }
- if (file) {
- PR_Close(file);
- }
- }
-
- if (bltest.options[opt_PQGFile].activated) {
- file = PR_Open(bltest.options[opt_PQGFile].arg, PR_RDONLY, 00660);
- params->dsa.pqgdata.mode = bltestBase64Encoded;
- setupIO(cipherInfo->arena, ¶ms->dsa.pqgdata, file, NULL, 0);
- if (file) {
- PR_Close(file);
- }
- }
-
- /* Set up the input buffer */
- if (bltest.options[opt_Input].activated) {
- if (bltest.options[opt_CmdLine].activated) {
- instr = bltest.options[opt_Input].arg;
- infile = NULL;
- } else {
- /* form file name from testdir and input arg. */
- char * filename = bltest.options[opt_Input].arg;
- if (bltest.options[opt_SelfTestDir].activated &&
- testdir && filename && filename[0] != '/') {
- filename = PR_smprintf("%s/tests/%s/%s", testdir,
- mode_strings[cipherInfo->mode],
- filename);
- if (!filename) {
- fprintf(stderr, "%s: Can not allocate memory.\n",
- progName);
- goto exit_point;
- }
- infile = PR_Open(filename, PR_RDONLY, 00660);
- PR_smprintf_free(filename);
- } else {
- infile = PR_Open(filename, PR_RDONLY, 00660);
- }
- }
- } else if (bltest.options[opt_BufSize].activated) {
- /* save the random plaintext for reference */
- char *tmpFName = PR_smprintf("tmp.in.%d", curThrdNum);
- if (!tmpFName) {
- fprintf(stderr, "%s: Can not allocate memory.\n", progName);
- goto exit_point;
- }
- infile = PR_Open(tmpFName, PR_WRONLY|PR_CREATE_FILE, 00660);
- PR_smprintf_free(tmpFName);
- } else {
- infile = PR_STDIN;
- }
- if (!infile) {
- fprintf(stderr, "%s: Failed to open input file.\n", progName);
- goto exit_point;
- }
- cipherInfo->input.mode = ioMode;
-
- /* Set up the output stream */
- if (bltest.options[opt_Output].activated) {
- /* form file name from testdir and input arg. */
- char * filename = bltest.options[opt_Output].arg;
- if (bltest.options[opt_SelfTestDir].activated &&
- testdir && filename && filename[0] != '/') {
- filename = PR_smprintf("%s/tests/%s/%s", testdir,
- mode_strings[cipherInfo->mode],
- filename);
- if (!filename) {
- fprintf(stderr, "%s: Can not allocate memory.\n", progName);
- goto exit_point;
- }
- outfile = PR_Open(filename, PR_WRONLY|PR_CREATE_FILE, 00660);
- PR_smprintf_free(filename);
- } else {
- outfile = PR_Open(filename, PR_WRONLY|PR_CREATE_FILE, 00660);
- }
- } else {
- outfile = PR_STDOUT;
- }
- if (!outfile) {
- fprintf(stderr, "%s: Failed to open output file.\n", progName);
- rv = SECFailure;
- goto exit_point;
- }
- cipherInfo->output.mode = ioMode;
- if (bltest.options[opt_SelfTestDir].activated && ioMode == bltestBinary)
- cipherInfo->output.mode = bltestBase64Encoded;
-
- if (is_hashCipher(cipherInfo->mode))
- cipherInfo->params.hash.restart =
- bltest.options[opt_Restart].activated;
-
- bufsize = 0;
- if (bltest.options[opt_BufSize].activated)
- bufsize = PORT_Atoi(bltest.options[opt_BufSize].arg);
-
- /*infile = NULL;*/
- setupIO(cipherInfo->arena, &cipherInfo->input, infile, instr, bufsize);
- if (infile && infile != PR_STDIN)
- PR_Close(infile);
- misalignBuffer(cipherInfo->arena, &cipherInfo->input, inoff);
-
- cipherInit(cipherInfo, bltest.commands[cmd_Encrypt].activated);
- misalignBuffer(cipherInfo->arena, &cipherInfo->output, outoff);
- }
-
- if (!bltest.commands[cmd_Nonce].activated) {
- TIMESTART();
- cipherInfo = cipherInfoListHead;
- while (cipherInfo != NULL) {
- cipherInfo->cipherThread =
- PR_CreateThread(PR_USER_THREAD,
- ThreadExecTest,
- cipherInfo,
- PR_PRIORITY_NORMAL,
- PR_GLOBAL_THREAD,
- PR_JOINABLE_THREAD,
- 0);
- cipherInfo = cipherInfo->next;
- }
-
- cipherInfo = cipherInfoListHead;
- while (cipherInfo != NULL) {
- PR_JoinThread(cipherInfo->cipherThread);
- finishIO(&cipherInfo->output, outfile);
- cipherInfo = cipherInfo->next;
- }
- TIMEFINISH(totalTime, 1);
- }
-
- cipherInfo = cipherInfoListHead;
- if (cipherInfo->repetitions > 0 || cipherInfo->cxreps > 0 ||
- threads > 1)
- dump_performance_info(cipherInfoListHead, totalTime,
- bltest.commands[cmd_Encrypt].activated,
- (cipherInfo->repetitions == 0));
-
- rv = SECSuccess;
-
- exit_point:
- if (outfile && outfile != PR_STDOUT)
- PR_Close(outfile);
- cipherInfo = cipherInfoListHead;
- while (cipherInfo != NULL) {
- bltestCipherInfo *tmpInfo = cipherInfo;
-
- if (cipherInfo->arena)
- PORT_FreeArena(cipherInfo->arena, PR_TRUE);
- cipherInfo = cipherInfo->next;
- PORT_Free(tmpInfo);
- }
-
- /*NSS_Shutdown();*/
-
- return SECSuccess;
-}
-
diff --git a/security/nss/cmd/bltest/manifest.mn b/security/nss/cmd/bltest/manifest.mn
deleted file mode 100644
index 3c283af6d2..0000000000
--- a/security/nss/cmd/bltest/manifest.mn
+++ /dev/null
@@ -1,58 +0,0 @@
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-CORE_DEPTH = ../../..
-
-MODULE = nss
-
-REQUIRES = seccmd dbm softoken
-
-INCLUDES += -I$(CORE_DEPTH)/nss/lib/softoken
-
-PROGRAM = bltest
-
- USE_STATIC_LIBS = 1
-
-EXPORTS = \
- $(NULL)
-
-PRIVATE_EXPORTS = \
- $(NULL)
-
-CSRCS = \
- blapitest.c \
- $(NULL)
-
diff --git a/security/nss/cmd/bltest/tests/README b/security/nss/cmd/bltest/tests/README
deleted file mode 100644
index 9982a2f150..0000000000
--- a/security/nss/cmd/bltest/tests/README
+++ /dev/null
@@ -1,49 +0,0 @@
-This directory contains a set of tests for each cipher supported by
-BLAPI. Each subdirectory contains known plaintext and ciphertext pairs
-(and keys and/or iv's if needed). The tests can be run as a full set
-with:
- bltest -T
-or as subsets, for example:
- bltest -T -m des_ecb,md2,rsa
-
-In each subdirectory, the plaintext, key, and iv are ascii, and treated
-as such. The ciphertext is base64-encoded to avoid the hassle of binary
-files.
-
-To add a test, incremement the value in the numtests file. Create a
-plaintext, key, and iv file, such that the name of the file is
-incrememted one from the last set of tests. For example, if you are
-adding the second test, put your data in files named plaintext1, key1,
-and iv1 (ignoring key and iv if they are not needed, of course). Make
-sure your key and iv are the correct number of bytes for your cipher (a
-trailing \n is okay, but any other trailing bytes will be used!). Once
-you have your input data, create output data by running bltest on a
-trusted implementation. For example, for a new DES ECB test, run
- bltest -E -m des_ecb -i plaintext1 -k key1 -o ciphertext1 -a in the
-tests/des_ecb directory. Then run
- bltest -T des_ecb from the cmd/bltest directory in the tree of the
-implementation you want to test.
-
-Note that the -a option above is important, it tells bltest to expect
-the input to be straight ASCII, and not base64 encoded binary!
-
-Special cases:
-
-RC5:
-RC5 can take additional parameters, the number of rounds to perform and
-the wordsize to use. The number of rounds is between is between 0 and
-255, and the wordsize is either is either 16, 32, or 64 bits (at this
-time only 32-bit is supported). These parameters are specified in a
-paramsN file, where N is an index as above. The format of the file is
-"rounds=R\nwordsize=W\n".
-
-public key modes (RSA and DSA):
-Asymmetric key ciphers use keys with special properties, so creating a
-key file with "Mozilla!" in it will not get you very far! To create a
-public key, run bltest with the plaintext you want to encrypt, using a
-trusted implementation. bltest will generate a key and store it in
-"tmp.key", rename that file to keyN. For example:
- bltest -E -m rsa -i plaintext0 -o ciphertext0 -e 65537 -g 32 -a
- mv tmp.key key0
-
-[note: specifying a keysize (-g) when using RSA is important!]
diff --git a/security/nss/cmd/bltest/tests/aes_cbc/ciphertext0 b/security/nss/cmd/bltest/tests/aes_cbc/ciphertext0
deleted file mode 100644
index 040a397d75..0000000000
--- a/security/nss/cmd/bltest/tests/aes_cbc/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-oJLgOzZ1GiWt3DGo2sPKaA==
diff --git a/security/nss/cmd/bltest/tests/aes_cbc/iv0 b/security/nss/cmd/bltest/tests/aes_cbc/iv0
deleted file mode 100644
index 4e65bc0347..0000000000
--- a/security/nss/cmd/bltest/tests/aes_cbc/iv0
+++ /dev/null
@@ -1 +0,0 @@
-qwertyuiopasdfgh
diff --git a/security/nss/cmd/bltest/tests/aes_cbc/key0 b/security/nss/cmd/bltest/tests/aes_cbc/key0
deleted file mode 100644
index 13911cc29a..0000000000
--- a/security/nss/cmd/bltest/tests/aes_cbc/key0
+++ /dev/null
@@ -1 +0,0 @@
-fedcba9876543210
diff --git a/security/nss/cmd/bltest/tests/aes_cbc/numtests b/security/nss/cmd/bltest/tests/aes_cbc/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/aes_cbc/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/aes_cbc/plaintext0 b/security/nss/cmd/bltest/tests/aes_cbc/plaintext0
deleted file mode 100644
index 8d6a8d555b..0000000000
--- a/security/nss/cmd/bltest/tests/aes_cbc/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-0123456789abcdef
diff --git a/security/nss/cmd/bltest/tests/aes_ecb/ciphertext0 b/security/nss/cmd/bltest/tests/aes_ecb/ciphertext0
deleted file mode 100644
index d6818c1d0b..0000000000
--- a/security/nss/cmd/bltest/tests/aes_ecb/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-PVuaCIiaKQhblgFCbVMTTg==
diff --git a/security/nss/cmd/bltest/tests/aes_ecb/key0 b/security/nss/cmd/bltest/tests/aes_ecb/key0
deleted file mode 100644
index 13911cc29a..0000000000
--- a/security/nss/cmd/bltest/tests/aes_ecb/key0
+++ /dev/null
@@ -1 +0,0 @@
-fedcba9876543210
diff --git a/security/nss/cmd/bltest/tests/aes_ecb/numtests b/security/nss/cmd/bltest/tests/aes_ecb/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/aes_ecb/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/aes_ecb/plaintext0 b/security/nss/cmd/bltest/tests/aes_ecb/plaintext0
deleted file mode 100644
index 8d6a8d555b..0000000000
--- a/security/nss/cmd/bltest/tests/aes_ecb/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-0123456789abcdef
diff --git a/security/nss/cmd/bltest/tests/camellia_cbc/ciphertext0 b/security/nss/cmd/bltest/tests/camellia_cbc/ciphertext0
deleted file mode 100644
index e7895954ab..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_cbc/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-taydfPlRJe3wf8Td0xJ9Tw==
diff --git a/security/nss/cmd/bltest/tests/camellia_cbc/ciphertext1 b/security/nss/cmd/bltest/tests/camellia_cbc/ciphertext1
deleted file mode 100644
index 7dbd9b036e..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_cbc/ciphertext1
+++ /dev/null
@@ -1 +0,0 @@
-yoYCZwKnUMcS4ADHxnwObA==
diff --git a/security/nss/cmd/bltest/tests/camellia_cbc/ciphertext2 b/security/nss/cmd/bltest/tests/camellia_cbc/ciphertext2
deleted file mode 100644
index 007a2b0faf..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_cbc/ciphertext2
+++ /dev/null
@@ -1 +0,0 @@
-T+Wn4cs1Sbqrh/XtNd4vzQ==
diff --git a/security/nss/cmd/bltest/tests/camellia_cbc/iv0 b/security/nss/cmd/bltest/tests/camellia_cbc/iv0
deleted file mode 100644
index 4e65bc0347..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_cbc/iv0
+++ /dev/null
@@ -1 +0,0 @@
-qwertyuiopasdfgh
diff --git a/security/nss/cmd/bltest/tests/camellia_cbc/key0 b/security/nss/cmd/bltest/tests/camellia_cbc/key0
deleted file mode 100644
index 13911cc29a..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_cbc/key0
+++ /dev/null
@@ -1 +0,0 @@
-fedcba9876543210
diff --git a/security/nss/cmd/bltest/tests/camellia_cbc/key1 b/security/nss/cmd/bltest/tests/camellia_cbc/key1
deleted file mode 100644
index a9cb2f12f8..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_cbc/key1
+++ /dev/null
@@ -1 +0,0 @@
-fedcba9876543210fedcba98
diff --git a/security/nss/cmd/bltest/tests/camellia_cbc/key2 b/security/nss/cmd/bltest/tests/camellia_cbc/key2
deleted file mode 100644
index ab55fe2ee5..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_cbc/key2
+++ /dev/null
@@ -1 +0,0 @@
-fedcba9876543210fedcba9876543210
diff --git a/security/nss/cmd/bltest/tests/camellia_cbc/numtests b/security/nss/cmd/bltest/tests/camellia_cbc/numtests
deleted file mode 100644
index 00750edc07..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_cbc/numtests
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/security/nss/cmd/bltest/tests/camellia_cbc/plaintext0 b/security/nss/cmd/bltest/tests/camellia_cbc/plaintext0
deleted file mode 100644
index 8d6a8d555b..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_cbc/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-0123456789abcdef
diff --git a/security/nss/cmd/bltest/tests/camellia_ecb/ciphertext0 b/security/nss/cmd/bltest/tests/camellia_ecb/ciphertext0
deleted file mode 100644
index 084ba780ee..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_ecb/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-6v0CGxSwow3AhsyhunfdbQ==
diff --git a/security/nss/cmd/bltest/tests/camellia_ecb/ciphertext1 b/security/nss/cmd/bltest/tests/camellia_ecb/ciphertext1
deleted file mode 100644
index dbd6e5f420..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_ecb/ciphertext1
+++ /dev/null
@@ -1 +0,0 @@
-Nf1GwJiBtZT+VPJp+gBhPA==
diff --git a/security/nss/cmd/bltest/tests/camellia_ecb/ciphertext2 b/security/nss/cmd/bltest/tests/camellia_ecb/ciphertext2
deleted file mode 100644
index 0b278ce2a6..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_ecb/ciphertext2
+++ /dev/null
@@ -1 +0,0 @@
-ilB/0K3SI86Oecwh7cruGA==
diff --git a/security/nss/cmd/bltest/tests/camellia_ecb/key0 b/security/nss/cmd/bltest/tests/camellia_ecb/key0
deleted file mode 100644
index 13911cc29a..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_ecb/key0
+++ /dev/null
@@ -1 +0,0 @@
-fedcba9876543210
diff --git a/security/nss/cmd/bltest/tests/camellia_ecb/key1 b/security/nss/cmd/bltest/tests/camellia_ecb/key1
deleted file mode 100644
index a9cb2f12f8..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_ecb/key1
+++ /dev/null
@@ -1 +0,0 @@
-fedcba9876543210fedcba98
diff --git a/security/nss/cmd/bltest/tests/camellia_ecb/key2 b/security/nss/cmd/bltest/tests/camellia_ecb/key2
deleted file mode 100644
index ab55fe2ee5..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_ecb/key2
+++ /dev/null
@@ -1 +0,0 @@
-fedcba9876543210fedcba9876543210
diff --git a/security/nss/cmd/bltest/tests/camellia_ecb/numtests b/security/nss/cmd/bltest/tests/camellia_ecb/numtests
deleted file mode 100644
index 00750edc07..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_ecb/numtests
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/security/nss/cmd/bltest/tests/camellia_ecb/plaintext0 b/security/nss/cmd/bltest/tests/camellia_ecb/plaintext0
deleted file mode 100644
index 8d6a8d555b..0000000000
--- a/security/nss/cmd/bltest/tests/camellia_ecb/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-0123456789abcdef
diff --git a/security/nss/cmd/bltest/tests/des3_cbc/ciphertext0 b/security/nss/cmd/bltest/tests/des3_cbc/ciphertext0
deleted file mode 100644
index 61dae3192e..0000000000
--- a/security/nss/cmd/bltest/tests/des3_cbc/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-KV3MDNGKWOc=
diff --git a/security/nss/cmd/bltest/tests/des3_cbc/iv0 b/security/nss/cmd/bltest/tests/des3_cbc/iv0
deleted file mode 100644
index 97b5955f78..0000000000
--- a/security/nss/cmd/bltest/tests/des3_cbc/iv0
+++ /dev/null
@@ -1 +0,0 @@
-12345678
diff --git a/security/nss/cmd/bltest/tests/des3_cbc/key0 b/security/nss/cmd/bltest/tests/des3_cbc/key0
deleted file mode 100644
index 588efd1118..0000000000
--- a/security/nss/cmd/bltest/tests/des3_cbc/key0
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijklmnopqrstuvwx
diff --git a/security/nss/cmd/bltest/tests/des3_cbc/numtests b/security/nss/cmd/bltest/tests/des3_cbc/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/des3_cbc/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/des3_cbc/plaintext0 b/security/nss/cmd/bltest/tests/des3_cbc/plaintext0
deleted file mode 100644
index 5513e438c0..0000000000
--- a/security/nss/cmd/bltest/tests/des3_cbc/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-Mozilla!
diff --git a/security/nss/cmd/bltest/tests/des3_ecb/ciphertext0 b/security/nss/cmd/bltest/tests/des3_ecb/ciphertext0
deleted file mode 100644
index 76dc820d3b..0000000000
--- a/security/nss/cmd/bltest/tests/des3_ecb/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-RgckVNh4QcM=
diff --git a/security/nss/cmd/bltest/tests/des3_ecb/key0 b/security/nss/cmd/bltest/tests/des3_ecb/key0
deleted file mode 100644
index 588efd1118..0000000000
--- a/security/nss/cmd/bltest/tests/des3_ecb/key0
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijklmnopqrstuvwx
diff --git a/security/nss/cmd/bltest/tests/des3_ecb/numtests b/security/nss/cmd/bltest/tests/des3_ecb/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/des3_ecb/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/des3_ecb/plaintext0 b/security/nss/cmd/bltest/tests/des3_ecb/plaintext0
deleted file mode 100644
index 5513e438c0..0000000000
--- a/security/nss/cmd/bltest/tests/des3_ecb/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-Mozilla!
diff --git a/security/nss/cmd/bltest/tests/des_cbc/ciphertext0 b/security/nss/cmd/bltest/tests/des_cbc/ciphertext0
deleted file mode 100644
index 67d2ad1aac..0000000000
--- a/security/nss/cmd/bltest/tests/des_cbc/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-Perdg9FMYQ4=
diff --git a/security/nss/cmd/bltest/tests/des_cbc/iv0 b/security/nss/cmd/bltest/tests/des_cbc/iv0
deleted file mode 100644
index 97b5955f78..0000000000
--- a/security/nss/cmd/bltest/tests/des_cbc/iv0
+++ /dev/null
@@ -1 +0,0 @@
-12345678
diff --git a/security/nss/cmd/bltest/tests/des_cbc/key0 b/security/nss/cmd/bltest/tests/des_cbc/key0
deleted file mode 100644
index 65513c116c..0000000000
--- a/security/nss/cmd/bltest/tests/des_cbc/key0
+++ /dev/null
@@ -1 +0,0 @@
-zyxwvuts
diff --git a/security/nss/cmd/bltest/tests/des_cbc/numtests b/security/nss/cmd/bltest/tests/des_cbc/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/des_cbc/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/des_cbc/plaintext0 b/security/nss/cmd/bltest/tests/des_cbc/plaintext0
deleted file mode 100644
index 5513e438c0..0000000000
--- a/security/nss/cmd/bltest/tests/des_cbc/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-Mozilla!
diff --git a/security/nss/cmd/bltest/tests/des_ecb/ciphertext0 b/security/nss/cmd/bltest/tests/des_ecb/ciphertext0
deleted file mode 100644
index 8be22fa5c6..0000000000
--- a/security/nss/cmd/bltest/tests/des_ecb/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-3bNoWzzNiFc=
diff --git a/security/nss/cmd/bltest/tests/des_ecb/key0 b/security/nss/cmd/bltest/tests/des_ecb/key0
deleted file mode 100644
index 65513c116c..0000000000
--- a/security/nss/cmd/bltest/tests/des_ecb/key0
+++ /dev/null
@@ -1 +0,0 @@
-zyxwvuts
diff --git a/security/nss/cmd/bltest/tests/des_ecb/numtests b/security/nss/cmd/bltest/tests/des_ecb/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/des_ecb/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/des_ecb/plaintext0 b/security/nss/cmd/bltest/tests/des_ecb/plaintext0
deleted file mode 100644
index 5513e438c0..0000000000
--- a/security/nss/cmd/bltest/tests/des_ecb/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-Mozilla!
diff --git a/security/nss/cmd/bltest/tests/dsa/ciphertext0 b/security/nss/cmd/bltest/tests/dsa/ciphertext0
deleted file mode 100644
index 8e7150562e..0000000000
--- a/security/nss/cmd/bltest/tests/dsa/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-fB0bnKWvjT6X5NIkZ5l/Y/DXZ6QNI6j0iPhR/ZERkfj67xRnTWY1cg==
diff --git a/security/nss/cmd/bltest/tests/dsa/key0 b/security/nss/cmd/bltest/tests/dsa/key0
deleted file mode 100644
index e582eeb044..0000000000
--- a/security/nss/cmd/bltest/tests/dsa/key0
+++ /dev/null
@@ -1,6 +0,0 @@
-AAAAQI3ypJRJInaqPSV1m7BoacvqwNg6+40M98u4Mk8NeILl0HYvxbchDq/C6a2s
-Mqt6rElpPfv4NyTC7Ac27jHIApEAAAAUx3MhjHN+yO6ZO08t7TD0jtrOkV8AAABA
-Ym0CeDnqChNBMWOlW0y1ACmdVSKVbO/LO/8Q85nOLC5xy53l+iS6v1jlt5Uhklyc
-xC6fb0ZLCIzFcq9T5teIAgAAAEAZExhx11sWEqgZ8p140bDXNG96p3u2KoWb/WxW
-ddqdIS06Nu8Wcu9mC4x8JVzA7HSFj7oz9EwGaZYwp2sDDuMzAAAAFCBwsyI9ujcv
-3hwP/HsuO0mLJgYU
diff --git a/security/nss/cmd/bltest/tests/dsa/keyseed0 b/security/nss/cmd/bltest/tests/dsa/keyseed0
deleted file mode 100644
index 6eea359dbd..0000000000
--- a/security/nss/cmd/bltest/tests/dsa/keyseed0
+++ /dev/null
@@ -1 +0,0 @@
-AAAAAAAAAAAAAAAAAAAAAAAAAAA=
diff --git a/security/nss/cmd/bltest/tests/dsa/numtests b/security/nss/cmd/bltest/tests/dsa/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/dsa/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/dsa/plaintext0 b/security/nss/cmd/bltest/tests/dsa/plaintext0
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/dsa/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/dsa/pqg0 b/security/nss/cmd/bltest/tests/dsa/pqg0
deleted file mode 100644
index f16326cccb..0000000000
--- a/security/nss/cmd/bltest/tests/dsa/pqg0
+++ /dev/null
@@ -1,4 +0,0 @@
-AAAAQI3ypJRJInaqPSV1m7BoacvqwNg6+40M98u4Mk8NeILl0HYvxbchDq/C6a2s
-Mqt6rElpPfv4NyTC7Ac27jHIApEAAAAUx3MhjHN+yO6ZO08t7TD0jtrOkV8AAABA
-Ym0CeDnqChNBMWOlW0y1ACmdVSKVbO/LO/8Q85nOLC5xy53l+iS6v1jlt5Uhklyc
-xC6fb0ZLCIzFcq9T5teIAg==
diff --git a/security/nss/cmd/bltest/tests/dsa/sigseed0 b/security/nss/cmd/bltest/tests/dsa/sigseed0
deleted file mode 100644
index 05d7fd2d65..0000000000
--- a/security/nss/cmd/bltest/tests/dsa/sigseed0
+++ /dev/null
@@ -1 +0,0 @@
-aHpm2QZI+ZOGfhIfTd+d2wEgVYQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/README b/security/nss/cmd/bltest/tests/ecdsa/README
deleted file mode 100644
index 764aeec810..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/README
+++ /dev/null
@@ -1,22 +0,0 @@
-0 secp160k1
-1 secp160r1
-2 secp160r2
-3 nistk163
-4 sect163r1
-5 nistb163
-6 secp192k1
-7 nistp192
-8 secp224k1
-9 nistp224
-10 nistk233
-11 nistb233
-12 nistp256
-13 nistk283
-14 nistb283
-15 nistp384
-16 nistk409
-17 nistb409
-18 nistk571
-19 nistb571
-# the following tests are not yet implemented
-#20 nistp521
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext0 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext0
deleted file mode 100644
index 14d8e0ece7..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-GoWqve3YezF7HOABQjioFL/3oq32oM9pHsGTQTJE7aFE62nItVqAdg==
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext1 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext1
deleted file mode 100644
index 4484aae614..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext1
+++ /dev/null
@@ -1 +0,0 @@
-PM6xHbiwP6Xcb44mg7BHtaJvd8PkxgvHAB1sh2cF0so3naFf0Tj6vQ==
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext10 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext10
deleted file mode 100644
index a956d53a61..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext10
+++ /dev/null
@@ -1,2 +0,0 @@
-AF3bbyED08NTrUgKmag9HiuUbaW0skXA/Bp9RPjRAD6M0rp3nvLDKozI940jxPP1
-nWpHF7VcyCVzJeV6
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext11 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext11
deleted file mode 100644
index 8cc2c26234..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext11
+++ /dev/null
@@ -1,2 +0,0 @@
-AOLrxy4FWd29ToUjOwLs6GyQ+dYZN6NkZ8oVO6dsAEXt55ePlCWZbOtmk6v9PrNG
-JOsY/MHnGhDeAGRl
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext12 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext12
deleted file mode 100644
index 5a05a78637..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext12
+++ /dev/null
@@ -1,2 +0,0 @@
-aQHMte9cFByD9Ff3rZOPOtPI75luPoxemmgjXIgh/9jEeoTdDk8xuAYQUkayCfs+
-DpDaGnOLkfAyZ8GcuaCujg==
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext13 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext13
deleted file mode 100644
index 690c00a715..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext13
+++ /dev/null
@@ -1,2 +0,0 @@
-AaeVCRJQPbpTqa1+zLd/8xAbkz3KKTr0dlS4tuGC8hc9j5esAeEv+7IklbA3v5Jz
-jC+nJy4p81iNO5E9H8nfGGckfQSiFzHG
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext14 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext14
deleted file mode 100644
index fe527c6256..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext14
+++ /dev/null
@@ -1,2 +0,0 @@
-AgU0N7zJPg/1UxmCWD5Z+DqDqkRKjy4heFgayCyopb/u4XErAZArgsjashAxzMKC
-PSDJasPT90T5Va8sNtjXtSpHWxc2roV9
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext15 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext15
deleted file mode 100644
index d1090942a2..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext15
+++ /dev/null
@@ -1,2 +0,0 @@
-NXo8is+7lAoOwWGt7+GBbT/UX8LGs8TXEHBI+tX9311pJ4J3pfBYobgN0ZK6ZBtp
-dS6PkrPaQp0S9nrfTOS5uAH95eD1eymRfCbOnjTUKzLuIn53V17vRjdcDtLzrhzX
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext16 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext16
deleted file mode 100644
index d5fe14482a..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext16
+++ /dev/null
@@ -1,3 +0,0 @@
-ADhxjBz/ACTy4GJlL0tYZpyNpC4DsXND9lJuU7x9N7g6gkpJyBPw3vBYU1olw6PH
-dnegpgAm4Gh6MCsZB4KBcLwl1wjt4B3p2eqEqDYn5fiie5f4XuRomvI92jR5Sb+I
-nBLCHIppt/Q=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext17 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext17
deleted file mode 100644
index 486bf664f9..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext17
+++ /dev/null
@@ -1,3 +0,0 @@
-AGhHQ6kfdZRgu1svQTXEIewvFVglnUy6ANPumyUbM14AEfRkCUNa1uzvhV1sbWYj
-qT3egQCA9MTjThDNJeDOvvL6hVVOryUv4+C3RtkpQGCtdml+CSsjVTej8h9JbMds
-Dme40b2G6fE=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext18 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext18
deleted file mode 100644
index 7eeef38118..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext18
+++ /dev/null
@@ -1,3 +0,0 @@
-AGBuqk48tufy0bKEWpu+xEHsmi+6KCfdwOSRwLDnpVetGe9AWknHDzeTSwe0QxcE
-RsEkUZGDpxfzUlCLSSSU+ErrYY/uyLV2AJTb3prB6A2YNwdmFGeRbDoxeOu7FuQA
-3gxBQhR+TGMuskeM+BdHFmFrwvTTdHCGzjTBa5S8mbgEJTfeik/it28T/9i+duZ8
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext19 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext19
deleted file mode 100644
index ef8e5f3818..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext19
+++ /dev/null
@@ -1,3 +0,0 @@
-AaiotJfCiWU1d2LFe+t0CcWHDSF7EOlApWYJ+RNRSq8TbkXJIzi6abbb7BovtRwf
-i/COYwjS7OnkFQ6x5Pdrb7OZ0dTAdDRXAKtXWSKR20Y4fhnx/HUxisFwKrsCEQ3O
-uVtwDG8rh5V8zjBnCEcs5Iy9CsklucibR0PIyglVmW+ZuY42YNebuOC2VUKqHNF7
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext2 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext2
deleted file mode 100644
index a3837a4105..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext2
+++ /dev/null
@@ -1 +0,0 @@
-Vli8Hau3xL8oder6ZdM9Y3fMd92jbguiMq6F+9CUjlUQXy5EwAVGeg==
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext20 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext20
deleted file mode 100644
index 67c99244a0..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext20
+++ /dev/null
@@ -1,3 +0,0 @@
-ALAM5hGnex7TvBbSEzDlfv+n5g7aWyRyZsBbl2Y6wW1plSovbq2GcV6w1ZV1Vlot
-70zbqkKyNApvTi3xoD4Ens6pAeLMYDILwaQhnyJZWQv3etbWqUKJZNgfH1IDj03k
-n9hbjYLX3y4bc4CnrhOiv5Ab34s7M8wUYcjC+DbHwhLl/S6N
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext3 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext3
deleted file mode 100644
index e9a480882b..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext3
+++ /dev/null
@@ -1 +0,0 @@
-AFohw5TN/dpmqbhp/T4z1Rl1boAUA6r9eEPJbYN0zf+eHZzyvezxqjxU
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext4 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext4
deleted file mode 100644
index 57ce239ab3..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext4
+++ /dev/null
@@ -1 +0,0 @@
-AtJdCPXn5yQW34jekhsnsNmaMOeeA3KIVl1d2+7pb6QycUAzYccgwSrp
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext5 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext5
deleted file mode 100644
index e476c80bfc..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext5
+++ /dev/null
@@ -1 +0,0 @@
-AzEg0sOGHwxd0o3cv+o9dsRPOzXMAdpgtI6O0uUmVN2+a5qI5FYQlItz
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext6 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext6
deleted file mode 100644
index bdea7171d0..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext6
+++ /dev/null
@@ -1 +0,0 @@
-5+HDXH/ieN8Bzxd3dfxKZoqbbhsm7jyeqWdemt6Xy0kx+7zwSYsh9Ng5KRdy6wtA
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext7 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext7
deleted file mode 100644
index 3273fd9f73..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext7
+++ /dev/null
@@ -1 +0,0 @@
-WcS9umnUASP0X6lHvkWJwPY37ZVvAMLBERHLjL3Vzg6QVjwcS8kDVortTFei3aTx
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext8 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext8
deleted file mode 100644
index 636392e435..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext8
+++ /dev/null
@@ -1,2 +0,0 @@
-ItpmPaGAaoe2feXPbh5+EASLGnEzyYbEnwJ+JFNSOQcoY4a/cMV2rn8FYyBsEDiZ
-LPDBU0i2uOg=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/ciphertext9 b/security/nss/cmd/bltest/tests/ecdsa/ciphertext9
deleted file mode 100644
index 0c43fa3d79..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/ciphertext9
+++ /dev/null
@@ -1,2 +0,0 @@
-QjzCVGRUjulOLqeBqC5xpY0GWomOrmQUCtImY0czn98a/jHrdgsSRKiMHukBUxM1
-TIRGjkV2L+A=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key0 b/security/nss/cmd/bltest/tests/ecdsa/key0
deleted file mode 100644
index 7c6d61b361..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key0
+++ /dev/null
@@ -1,2 +0,0 @@
-AAAABwYFK4EEAAkAAAApBPiF0ntSFtn41JULxlA1l/lHE/zUPGJWkCqtdOryS6yD
-WFCoF/IHwHsAAAAUcw+b2b1AJUlmezgu5EjmAGPC0YQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key1 b/security/nss/cmd/bltest/tests/ecdsa/key1
deleted file mode 100644
index 049aa1edbc..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key1
+++ /dev/null
@@ -1,2 +0,0 @@
-AAAABwYFK4EEAAgAAAApBI80VWK9xatmkFRiDTcdeFQ0T9h3h6iVOinMURyWZw0T
-5vZqd8/gvwwAAAAUYOQMjDdtNSL5zY0nVWPWY+UJoqQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key10 b/security/nss/cmd/bltest/tests/ecdsa/key10
deleted file mode 100644
index 3e33417143..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key10
+++ /dev/null
@@ -1,3 +0,0 @@
-AAAABwYFK4EEABoAAAA9BACmzalMQJBOWV2FoyV0tXSpT07Xajq4bB1SUwSY7QGn
-dgGC3GBqjPs9vEpqfMMQ2M9k3+5oubWnexNFhQAAAB4BRha/6sE7VSHl92ZqCj5p
-LYtBpK23jzfdVWO8SAY=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key11 b/security/nss/cmd/bltest/tests/ecdsa/key11
deleted file mode 100644
index 6111d52ad7..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key11
+++ /dev/null
@@ -1,3 +0,0 @@
-AAAABwYFK4EEABsAAAA9BAD2/x9HSYYVEQ9AU4MivlIKPypJjsm0sTrp8BftlQGv
-KaYrKpZCg/CEw3C2kqvke7HAu+10hafK9asRxQAAAB4AXyFCurtsXhahkyJpkb5J
-LUg3xVL00vviR0KyFZY=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key12 b/security/nss/cmd/bltest/tests/ecdsa/key12
deleted file mode 100644
index 491fdba1b8..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key12
+++ /dev/null
@@ -1,3 +0,0 @@
-AAAACgYIKoZIzj0DAQcAAABBBNGB7n4kH15tKA/SMpetaQVqg6WxIuuUuMQT2tDX
-NN5jKZfaxD47NsTjTr3x3D5t1qRBYuL6VtdgIuxBIHGG9dcAAAAgaGjyZBL+LN3a
-7NkGiHJBfqh7XKNH0AnPF3vFWpostIQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key13 b/security/nss/cmd/bltest/tests/ecdsa/key13
deleted file mode 100644
index fc8057a57e..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key13
+++ /dev/null
@@ -1,3 +0,0 @@
-AAAABwYFK4EEABAAAABJBAT3klWkt7+1Pr6QGEcvEIZplopwt1alrsJUThDOxvUF
-7KvBpQLVjB+DQTwYQnEREb/WFyRgUBuIbII0+zd/g0fLHE4PQ8SNlAAAACQFPsMX
-mqSVRreUVasUOIZQFB2jnpwCUyoq+xa9SRril5LeOCY=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key14 b/security/nss/cmd/bltest/tests/ecdsa/key14
deleted file mode 100644
index 2e158236cb..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key14
+++ /dev/null
@@ -1,3 +0,0 @@
-AAAABwYFK4EEABEAAABJBAf/ei/XCrFrMZLBp5BFkKZ3Odn+ZJu7QIAK32Ubuxmi
-xgWTewf2vv+KY5kHwsBYuBXmmnKe9Ak9zGP4Lykvgk5n5J6iUz5ycQAAACQAQHXa
-d29OqGxoDNCl9xETW3tAL/2hfZzstNuOPLm5kj4j1Dc=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key15 b/security/nss/cmd/bltest/tests/ecdsa/key15
deleted file mode 100644
index a062f1f67b..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key15
+++ /dev/null
@@ -1,4 +0,0 @@
-AAAABwYFK4EEACIAAABhBLWMJG3t4khPYcsl3H492rAqukJ1RqJm27pqpN54rFGG
-r2VDwOfqb9tMninq8IyOh42eaaVOEPXXu4Q/ATWBEfrbTRBjTpzAE2SSPuQma0lM
-q0RSVECCgdBOKIhB0H6VxAAAADA3WPjUaMWCS9E5KbVDrEcf5CV5tCNNWJQkwjsA
-yALMCiXJqRVXwbq42WMuaELMW+g=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key16 b/security/nss/cmd/bltest/tests/ecdsa/key16
deleted file mode 100644
index d2694ae412..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key16
+++ /dev/null
@@ -1,4 +0,0 @@
-AAAABwYFK4EEACQAAABpBADkgknFgTPuirxQxFlqIK+vcARWzlpJR+qmyRyQsBiz
-Nh6Ws036xUKY9M8LxMIWXFNM6aIA2wxKsBF+HHD6oy27EAJSJOGbke/9F9Kv5AiW
-2RXA4mllUaxCNsuQ36PqUdqv4FeXxWTpAAAANAHTZloqhR0V4bfyaeo2hojcvY3T
-NO04ewNryBpsHZ0bhID0EfewYuwQmX00GYNfuV3mJ2w=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key17 b/security/nss/cmd/bltest/tests/ecdsa/key17
deleted file mode 100644
index 30be05774d..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key17
+++ /dev/null
@@ -1,4 +0,0 @@
-AAAABwYFK4EEACUAAABpBAAEE/bAmqCjO3FLvN93Q/UjDyDp2sj+F//buuf1hZ0K
-1rSOGXMLcBrqVa8R6UJ57F9/Yc0BCTylpJMXjfCr4eDczG4WOQk+5x8kpKQs5Q9U
-V3IolHDiQY/Nhn7o4UFn5/mF71T3qUqwAAAANAH/o7jEl9Bw+Arj9uQ7ZHkoPGgx
-t92UJg1r/lxa7UUd66iJfRI8n8yQH/sw56D1+CweeII=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key18 b/security/nss/cmd/bltest/tests/ecdsa/key18
deleted file mode 100644
index bbdcb13711..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key18
+++ /dev/null
@@ -1,5 +0,0 @@
-AAAABwYFK4EEACYAAACRBAffZTrfwIl0dciO2fui3UhZw6r+jnFh7gyER92gXL7+
-LzPgTHagd1vdQiIX4K8Dv76KN0BldiFuX5odP7qC26MUaiURDdWT0AWcPmumSSBH
-NXZYLLx5hQjW3BTNwV7v5bmUjezfgtuOCC30dQGs2GMgExAmiWRjTkiPrHg1SFKF
-3RklauOyMWauaVpEzh3c+wAAAEgAZvLs4/Rx7tS+QGH92fGGIxPWPbVYOpDKwabY
-poV2i1BD5Fxvw+eHlvxVOLmRPqRCPTfOLwAeNbHyt17U/BVZ8+svTChlzuA=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key19 b/security/nss/cmd/bltest/tests/ecdsa/key19
deleted file mode 100644
index 31b4071f2e..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key19
+++ /dev/null
@@ -1,5 +0,0 @@
-AAAABwYFK4EEACcAAACRBASpPvOfQVqiMD+cBL/nulFit5pk/5beJ6/KpeIltg4s
-6/s7PPggJA59BP7RJwak6rgY3PsRqXVPjyM/1UkUfRUR2BJgOfNTkQe9WF7Y5zXy
-TM76cWhOP+sLSoUcscy/HTLCpHqRLLvWZPDzgjrfJqSlydMEDZjWsJRVPk9IfeQ/
-amGiWOhJIQd/bSrAazZn6AAAAEgFz1qZzjHuhuP1boJ7gzndJhQslx1efbESxHSc
-wbOpeBpw2MsCAwjtgo3Y8pviFIC8+5MStkFjE8uHQ0ngXc02wm3G0xj8XGQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key2 b/security/nss/cmd/bltest/tests/ecdsa/key2
deleted file mode 100644
index f4ba6f2f2b..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key2
+++ /dev/null
@@ -1,2 +0,0 @@
-AAAABwYFK4EEAB4AAAApBGouC+vgvmItzsLO4hXn+AXi3skEE+M19o/QHLfjibbA
-p7av8F4tcGgAAAAUmpQDUgnIkiXPBs0moD4jEmJHato=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key20 b/security/nss/cmd/bltest/tests/ecdsa/key20
deleted file mode 100644
index c4da3486de..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key20
+++ /dev/null
@@ -1,5 +0,0 @@
-AAAABwYFK4EEACMAAACFBAHLMSpMFVyG6mXE7SZ5O5Bwv4d8/QiAB3BzpXkyrU1W
-jJ9O9uOYTXM+cFtF5v56+LsI4yGkaAl9+RF6lFPjrhpIswCmBmEqMBgZpjoz38my
-nLHBI9MaFF8AHkRQwD3LJLo4eSZHOVkdIvDYLwicdlgr0zD3Nf76/HB1+0DkBGqE
-MyG22gAAAEIAFah7z179UbqqdH68pzdZsP1ChXjtYZ11rBM0+HP7yLirxH3ahKTt
-DjsY19GEjz4gKsaLfLiQ1/Dp+VKVLcBKpk0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key3 b/security/nss/cmd/bltest/tests/ecdsa/key3
deleted file mode 100644
index 689e06bda5..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key3
+++ /dev/null
@@ -1,2 +0,0 @@
-AAAABwYFK4EEAAEAAAArBAe4qW9DTVGRVIYYznwJZbn8mWXLugA2A+Mv112Bu+y7
-gxI8E4/fEdLTsQAAABUGEQDNcbxi0JhwALA8FCCxvmWYM3E=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key4 b/security/nss/cmd/bltest/tests/ecdsa/key4
deleted file mode 100644
index 90ecb72c6f..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key4
+++ /dev/null
@@ -1,2 +0,0 @@
-AAAABwYFK4EEAAIAAAArBAXw45Pc59l1QWmAB1W6M30lyFzQmAH/0FIFKYgEOYIa
-dnEXMwKNwaRdsQAAABUCErj052f+Rth5OxAm376LOAQyvBY=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key5 b/security/nss/cmd/bltest/tests/ecdsa/key5
deleted file mode 100644
index b9d221f8e5..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key5
+++ /dev/null
@@ -1,2 +0,0 @@
-AAAABwYFK4EEAA8AAAArBAFhm71N2wsUOYCwDNr/6rFvNX1okAbki1SNlHq2TQDO
-Bktd1M0jlApWVQAAABUCILsraWg3Qi5nBsXQ1pGmZk0YuSA=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key6 b/security/nss/cmd/bltest/tests/ecdsa/key6
deleted file mode 100644
index 92fb463dc5..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key6
+++ /dev/null
@@ -1,2 +0,0 @@
-AAAABwYFK4EEAB8AAAAxBHOYACoc9XsLk5n8NZZKV2U9CDoMj/VRDvqbf+myloR7
-uBfVNm+uVN33Sa65phAfXQAAABitxs6KZtkqU4tglcdQ1Rmk2U74vjYP0JM=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key7 b/security/nss/cmd/bltest/tests/ecdsa/key7
deleted file mode 100644
index 83fced1844..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key7
+++ /dev/null
@@ -1,2 +0,0 @@
-AAAACgYIKoZIzj0DAQEAAAAxBOyOI+rIs3x+jsChxQqSVblnoZGqhIM1WX0FMfw+
-D8Dz6Y25iPcAQFpIAWh29FxnrgAAABh+uEQYXwMB783sULxE6PEd1t/MNZ9HSHI=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key8 b/security/nss/cmd/bltest/tests/ecdsa/key8
deleted file mode 100644
index cc7c6103b5..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key8
+++ /dev/null
@@ -1,3 +0,0 @@
-AAAABwYFK4EEACAAAAA5BKQnZoj4VtlPqrJ5dekM4haG+7PjfgO4wNNIqD7JnrKI
-gTUd+oUQ41d517xCObyBaHNzdVPty9DvAAAAHIrG9+FE+OJV5UV2l/op7PCDPI4G
-qkpgzPIwe7U=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/key9 b/security/nss/cmd/bltest/tests/ecdsa/key9
deleted file mode 100644
index ab8f43bae6..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/key9
+++ /dev/null
@@ -1,3 +0,0 @@
-AAAABwYFK4EEACEAAAA5BGCNDWldzQCbI83PMR96tqR6JnIUpvfIO8l6hIf/QfMc
-rx2BbrSLoy6EJmP++Jyw5yNyaoVaNYl6AAAAHDnjgcUSIshTSLuejnSsvtvU363b
-1NJv4ULUbIs=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/numtests b/security/nss/cmd/bltest/tests/ecdsa/numtests
deleted file mode 100644
index aabe6ec390..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/numtests
+++ /dev/null
@@ -1 +0,0 @@
-21
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext0 b/security/nss/cmd/bltest/tests/ecdsa/plaintext0
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext1 b/security/nss/cmd/bltest/tests/ecdsa/plaintext1
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext1
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext10 b/security/nss/cmd/bltest/tests/ecdsa/plaintext10
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext10
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext11 b/security/nss/cmd/bltest/tests/ecdsa/plaintext11
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext11
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext12 b/security/nss/cmd/bltest/tests/ecdsa/plaintext12
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext12
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext13 b/security/nss/cmd/bltest/tests/ecdsa/plaintext13
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext13
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext14 b/security/nss/cmd/bltest/tests/ecdsa/plaintext14
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext14
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext15 b/security/nss/cmd/bltest/tests/ecdsa/plaintext15
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext15
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext16 b/security/nss/cmd/bltest/tests/ecdsa/plaintext16
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext16
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext17 b/security/nss/cmd/bltest/tests/ecdsa/plaintext17
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext17
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext18 b/security/nss/cmd/bltest/tests/ecdsa/plaintext18
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext18
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext19 b/security/nss/cmd/bltest/tests/ecdsa/plaintext19
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext19
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext2 b/security/nss/cmd/bltest/tests/ecdsa/plaintext2
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext2
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext20 b/security/nss/cmd/bltest/tests/ecdsa/plaintext20
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext20
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext3 b/security/nss/cmd/bltest/tests/ecdsa/plaintext3
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext3
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext4 b/security/nss/cmd/bltest/tests/ecdsa/plaintext4
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext4
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext5 b/security/nss/cmd/bltest/tests/ecdsa/plaintext5
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext5
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext6 b/security/nss/cmd/bltest/tests/ecdsa/plaintext6
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext6
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext7 b/security/nss/cmd/bltest/tests/ecdsa/plaintext7
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext7
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext8 b/security/nss/cmd/bltest/tests/ecdsa/plaintext8
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext8
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/plaintext9 b/security/nss/cmd/bltest/tests/ecdsa/plaintext9
deleted file mode 100644
index 48fbdb6fde..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/plaintext9
+++ /dev/null
@@ -1 +0,0 @@
-qZk+NkcGgWq6PiVxeFDCbJzQ2J0=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed0 b/security/nss/cmd/bltest/tests/ecdsa/sigseed0
deleted file mode 100644
index 05d7fd2d65..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed0
+++ /dev/null
@@ -1 +0,0 @@
-aHpm2QZI+ZOGfhIfTd+d2wEgVYQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed1 b/security/nss/cmd/bltest/tests/ecdsa/sigseed1
deleted file mode 100644
index 05d7fd2d65..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed1
+++ /dev/null
@@ -1 +0,0 @@
-aHpm2QZI+ZOGfhIfTd+d2wEgVYQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed10 b/security/nss/cmd/bltest/tests/ecdsa/sigseed10
deleted file mode 100644
index 6983e5f7d6..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed10
+++ /dev/null
@@ -1 +0,0 @@
-fjIzMWJpdHNPZlRleHQwMTAyMDMwNDA1MDYwNzA=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed11 b/security/nss/cmd/bltest/tests/ecdsa/sigseed11
deleted file mode 100644
index 6983e5f7d6..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed11
+++ /dev/null
@@ -1 +0,0 @@
-fjIzMWJpdHNPZlRleHQwMTAyMDMwNDA1MDYwNzA=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed12 b/security/nss/cmd/bltest/tests/ecdsa/sigseed12
deleted file mode 100644
index 92aa40c82a..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed12
+++ /dev/null
@@ -1 +0,0 @@
-/jI1NmJpdHNPZlRleHQwMTAyMDMwNDA1MDYwNzA4MDk=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed13 b/security/nss/cmd/bltest/tests/ecdsa/sigseed13
deleted file mode 100644
index 4ac0765848..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed13
+++ /dev/null
@@ -1 +0,0 @@
-ATI4MWJpdHNPZlRleHQwMTAyMDMwNDA1MDYwNzA4MDkwYTBi
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed14 b/security/nss/cmd/bltest/tests/ecdsa/sigseed14
deleted file mode 100644
index 4ac0765848..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed14
+++ /dev/null
@@ -1 +0,0 @@
-ATI4MWJpdHNPZlRleHQwMTAyMDMwNDA1MDYwNzA4MDkwYTBi
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed15 b/security/nss/cmd/bltest/tests/ecdsa/sigseed15
deleted file mode 100644
index 0975230325..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed15
+++ /dev/null
@@ -1 +0,0 @@
-/jM4NGJpdHNPZlRleHQwMTAyMDMwNDA1MDYwNzA4MDkwYTBiMGMwZDBlMGYxMDEx
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed16 b/security/nss/cmd/bltest/tests/ecdsa/sigseed16
deleted file mode 100644
index 36fbf09513..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed16
+++ /dev/null
@@ -1 +0,0 @@
-fjQwN2JpdHNPZlRleHQwMTAyMDMwNDA1MDYwNzA4MDkwYTBiMGMwZDBlMGYxMDExMTIx
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed17 b/security/nss/cmd/bltest/tests/ecdsa/sigseed17
deleted file mode 100644
index 36fbf09513..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed17
+++ /dev/null
@@ -1 +0,0 @@
-fjQwN2JpdHNPZlRleHQwMTAyMDMwNDA1MDYwNzA4MDkwYTBiMGMwZDBlMGYxMDExMTIx
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed18 b/security/nss/cmd/bltest/tests/ecdsa/sigseed18
deleted file mode 100644
index 7be8ce6dd9..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed18
+++ /dev/null
@@ -1,2 +0,0 @@
-PjU2NmJpdHNPZlRleHQwMDAxMDIwMzA0MDUwNjA3MDgwOTBhMGIwYzBkMGUwZjEwMTExMjEz
-MTQxNTE2MTcxODE5MWExYjE=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed19 b/security/nss/cmd/bltest/tests/ecdsa/sigseed19
deleted file mode 100644
index 7be8ce6dd9..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed19
+++ /dev/null
@@ -1,2 +0,0 @@
-PjU2NmJpdHNPZlRleHQwMDAxMDIwMzA0MDUwNjA3MDgwOTBhMGIwYzBkMGUwZjEwMTExMjEz
-MTQxNTE2MTcxODE5MWExYjE=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed2 b/security/nss/cmd/bltest/tests/ecdsa/sigseed2
deleted file mode 100644
index 05d7fd2d65..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed2
+++ /dev/null
@@ -1 +0,0 @@
-aHpm2QZI+ZOGfhIfTd+d2wEgVYQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed20 b/security/nss/cmd/bltest/tests/ecdsa/sigseed20
deleted file mode 100644
index f0dddb66c7..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed20
+++ /dev/null
@@ -1,2 +0,0 @@
-/jUyMGJpdHNPZlRleHQwMDAxMDIwMzA0MDUwNjA3MDgwOTBhMGIwYzBkMGUwZjEwMTExMjEz
-MTQxNTE2MTcxODE=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed3 b/security/nss/cmd/bltest/tests/ecdsa/sigseed3
deleted file mode 100644
index 05d7fd2d65..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed3
+++ /dev/null
@@ -1 +0,0 @@
-aHpm2QZI+ZOGfhIfTd+d2wEgVYQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed4 b/security/nss/cmd/bltest/tests/ecdsa/sigseed4
deleted file mode 100644
index 05d7fd2d65..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed4
+++ /dev/null
@@ -1 +0,0 @@
-aHpm2QZI+ZOGfhIfTd+d2wEgVYQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed5 b/security/nss/cmd/bltest/tests/ecdsa/sigseed5
deleted file mode 100644
index 05d7fd2d65..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed5
+++ /dev/null
@@ -1 +0,0 @@
-aHpm2QZI+ZOGfhIfTd+d2wEgVYQ=
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed6 b/security/nss/cmd/bltest/tests/ecdsa/sigseed6
deleted file mode 100644
index a0687196c4..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed6
+++ /dev/null
@@ -1 +0,0 @@
-/jE5MmJpdHNPZlRleHQwMDAwMDAwMDAw
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed7 b/security/nss/cmd/bltest/tests/ecdsa/sigseed7
deleted file mode 100644
index a0687196c4..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed7
+++ /dev/null
@@ -1 +0,0 @@
-/jE5MmJpdHNPZlRleHQwMDAwMDAwMDAw
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed8 b/security/nss/cmd/bltest/tests/ecdsa/sigseed8
deleted file mode 100644
index 01ae265740..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed8
+++ /dev/null
@@ -1 +0,0 @@
-/jIyNGJpdHNPZlRleHQwMDAwMDAwMDAwMDAwMA==
diff --git a/security/nss/cmd/bltest/tests/ecdsa/sigseed9 b/security/nss/cmd/bltest/tests/ecdsa/sigseed9
deleted file mode 100644
index 01ae265740..0000000000
--- a/security/nss/cmd/bltest/tests/ecdsa/sigseed9
+++ /dev/null
@@ -1 +0,0 @@
-/jIyNGJpdHNPZlRleHQwMDAwMDAwMDAwMDAwMA==
diff --git a/security/nss/cmd/bltest/tests/md2/ciphertext0 b/security/nss/cmd/bltest/tests/md2/ciphertext0
deleted file mode 100644
index 22e1fc496c..0000000000
--- a/security/nss/cmd/bltest/tests/md2/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-CS/UNcrWhB5Knt7Gf8Tz3Q==
diff --git a/security/nss/cmd/bltest/tests/md2/numtests b/security/nss/cmd/bltest/tests/md2/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/md2/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/md2/plaintext0 b/security/nss/cmd/bltest/tests/md2/plaintext0
deleted file mode 100644
index dce2994ba5..0000000000
--- a/security/nss/cmd/bltest/tests/md2/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-16-bytes to MD2.
diff --git a/security/nss/cmd/bltest/tests/md5/ciphertext0 b/security/nss/cmd/bltest/tests/md5/ciphertext0
deleted file mode 100644
index ea11ee523b..0000000000
--- a/security/nss/cmd/bltest/tests/md5/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-XN8lnQuWAiMqmSGfvd8Hdw==
diff --git a/security/nss/cmd/bltest/tests/md5/numtests b/security/nss/cmd/bltest/tests/md5/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/md5/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/md5/plaintext0 b/security/nss/cmd/bltest/tests/md5/plaintext0
deleted file mode 100644
index 5ae3875e2a..0000000000
--- a/security/nss/cmd/bltest/tests/md5/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-63-byte input to MD5 can be a bit tricky, but no problems here.
diff --git a/security/nss/cmd/bltest/tests/rc2_cbc/ciphertext0 b/security/nss/cmd/bltest/tests/rc2_cbc/ciphertext0
deleted file mode 100644
index d964ef8644..0000000000
--- a/security/nss/cmd/bltest/tests/rc2_cbc/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-3ki6eVsWpY8=
diff --git a/security/nss/cmd/bltest/tests/rc2_cbc/iv0 b/security/nss/cmd/bltest/tests/rc2_cbc/iv0
deleted file mode 100644
index 97b5955f78..0000000000
--- a/security/nss/cmd/bltest/tests/rc2_cbc/iv0
+++ /dev/null
@@ -1 +0,0 @@
-12345678
diff --git a/security/nss/cmd/bltest/tests/rc2_cbc/key0 b/security/nss/cmd/bltest/tests/rc2_cbc/key0
deleted file mode 100644
index 65513c116c..0000000000
--- a/security/nss/cmd/bltest/tests/rc2_cbc/key0
+++ /dev/null
@@ -1 +0,0 @@
-zyxwvuts
diff --git a/security/nss/cmd/bltest/tests/rc2_cbc/numtests b/security/nss/cmd/bltest/tests/rc2_cbc/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/rc2_cbc/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/rc2_cbc/plaintext0 b/security/nss/cmd/bltest/tests/rc2_cbc/plaintext0
deleted file mode 100644
index 5513e438c0..0000000000
--- a/security/nss/cmd/bltest/tests/rc2_cbc/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-Mozilla!
diff --git a/security/nss/cmd/bltest/tests/rc2_ecb/ciphertext0 b/security/nss/cmd/bltest/tests/rc2_ecb/ciphertext0
deleted file mode 100644
index 337d307655..0000000000
--- a/security/nss/cmd/bltest/tests/rc2_ecb/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-WT+tc4fANhQ=
diff --git a/security/nss/cmd/bltest/tests/rc2_ecb/key0 b/security/nss/cmd/bltest/tests/rc2_ecb/key0
deleted file mode 100644
index 65513c116c..0000000000
--- a/security/nss/cmd/bltest/tests/rc2_ecb/key0
+++ /dev/null
@@ -1 +0,0 @@
-zyxwvuts
diff --git a/security/nss/cmd/bltest/tests/rc2_ecb/numtests b/security/nss/cmd/bltest/tests/rc2_ecb/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/rc2_ecb/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/rc2_ecb/plaintext0 b/security/nss/cmd/bltest/tests/rc2_ecb/plaintext0
deleted file mode 100644
index 5513e438c0..0000000000
--- a/security/nss/cmd/bltest/tests/rc2_ecb/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-Mozilla!
diff --git a/security/nss/cmd/bltest/tests/rc4/ciphertext0 b/security/nss/cmd/bltest/tests/rc4/ciphertext0
deleted file mode 100644
index 004f13472a..0000000000
--- a/security/nss/cmd/bltest/tests/rc4/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-34sTZJtr20k=
diff --git a/security/nss/cmd/bltest/tests/rc4/ciphertext1 b/security/nss/cmd/bltest/tests/rc4/ciphertext1
deleted file mode 100644
index 6050da4c68..0000000000
--- a/security/nss/cmd/bltest/tests/rc4/ciphertext1
+++ /dev/null
@@ -1 +0,0 @@
-34sTZJtr20nGP6VxS3BIBxxIYm6QGIa1rehFHn51z9M=
diff --git a/security/nss/cmd/bltest/tests/rc4/key0 b/security/nss/cmd/bltest/tests/rc4/key0
deleted file mode 100644
index 65513c116c..0000000000
--- a/security/nss/cmd/bltest/tests/rc4/key0
+++ /dev/null
@@ -1 +0,0 @@
-zyxwvuts
diff --git a/security/nss/cmd/bltest/tests/rc4/key1 b/security/nss/cmd/bltest/tests/rc4/key1
deleted file mode 100644
index 65513c116c..0000000000
--- a/security/nss/cmd/bltest/tests/rc4/key1
+++ /dev/null
@@ -1 +0,0 @@
-zyxwvuts
diff --git a/security/nss/cmd/bltest/tests/rc4/numtests b/security/nss/cmd/bltest/tests/rc4/numtests
deleted file mode 100644
index 0cfbf08886..0000000000
--- a/security/nss/cmd/bltest/tests/rc4/numtests
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/security/nss/cmd/bltest/tests/rc4/plaintext0 b/security/nss/cmd/bltest/tests/rc4/plaintext0
deleted file mode 100644
index 5513e438c0..0000000000
--- a/security/nss/cmd/bltest/tests/rc4/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-Mozilla!
diff --git a/security/nss/cmd/bltest/tests/rc4/plaintext1 b/security/nss/cmd/bltest/tests/rc4/plaintext1
deleted file mode 100644
index d41abc7b84..0000000000
--- a/security/nss/cmd/bltest/tests/rc4/plaintext1
+++ /dev/null
@@ -1 +0,0 @@
-Mozilla!Mozilla!Mozilla!Mozilla!
diff --git a/security/nss/cmd/bltest/tests/rc5_cbc/ciphertext0 b/security/nss/cmd/bltest/tests/rc5_cbc/ciphertext0
deleted file mode 100644
index 544713b339..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_cbc/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-qsv4Fn2J6d0=
diff --git a/security/nss/cmd/bltest/tests/rc5_cbc/iv0 b/security/nss/cmd/bltest/tests/rc5_cbc/iv0
deleted file mode 100644
index 97b5955f78..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_cbc/iv0
+++ /dev/null
@@ -1 +0,0 @@
-12345678
diff --git a/security/nss/cmd/bltest/tests/rc5_cbc/key0 b/security/nss/cmd/bltest/tests/rc5_cbc/key0
deleted file mode 100644
index 65513c116c..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_cbc/key0
+++ /dev/null
@@ -1 +0,0 @@
-zyxwvuts
diff --git a/security/nss/cmd/bltest/tests/rc5_cbc/numtests b/security/nss/cmd/bltest/tests/rc5_cbc/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_cbc/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/rc5_cbc/params0 b/security/nss/cmd/bltest/tests/rc5_cbc/params0
deleted file mode 100644
index d68e0362d5..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_cbc/params0
+++ /dev/null
@@ -1,2 +0,0 @@
-rounds=10
-wordsize=4
diff --git a/security/nss/cmd/bltest/tests/rc5_cbc/plaintext0 b/security/nss/cmd/bltest/tests/rc5_cbc/plaintext0
deleted file mode 100644
index 5513e438c0..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_cbc/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-Mozilla!
diff --git a/security/nss/cmd/bltest/tests/rc5_ecb/ciphertext0 b/security/nss/cmd/bltest/tests/rc5_ecb/ciphertext0
deleted file mode 100644
index 133777dd08..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_ecb/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-4ZKK/1v5Ohc=
diff --git a/security/nss/cmd/bltest/tests/rc5_ecb/key0 b/security/nss/cmd/bltest/tests/rc5_ecb/key0
deleted file mode 100644
index 65513c116c..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_ecb/key0
+++ /dev/null
@@ -1 +0,0 @@
-zyxwvuts
diff --git a/security/nss/cmd/bltest/tests/rc5_ecb/numtests b/security/nss/cmd/bltest/tests/rc5_ecb/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_ecb/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/rc5_ecb/params0 b/security/nss/cmd/bltest/tests/rc5_ecb/params0
deleted file mode 100644
index d68e0362d5..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_ecb/params0
+++ /dev/null
@@ -1,2 +0,0 @@
-rounds=10
-wordsize=4
diff --git a/security/nss/cmd/bltest/tests/rc5_ecb/plaintext0 b/security/nss/cmd/bltest/tests/rc5_ecb/plaintext0
deleted file mode 100644
index 5513e438c0..0000000000
--- a/security/nss/cmd/bltest/tests/rc5_ecb/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-Mozilla!
diff --git a/security/nss/cmd/bltest/tests/rsa/ciphertext0 b/security/nss/cmd/bltest/tests/rsa/ciphertext0
deleted file mode 100644
index 943ea599ae..0000000000
--- a/security/nss/cmd/bltest/tests/rsa/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-qPVrXv0y3SC5rY44bIi6GE4Aec8uDpHH7/cCg0FU5as=
diff --git a/security/nss/cmd/bltest/tests/rsa/key0 b/security/nss/cmd/bltest/tests/rsa/key0
deleted file mode 100644
index 1352fe9866..0000000000
--- a/security/nss/cmd/bltest/tests/rsa/key0
+++ /dev/null
@@ -1,4 +0,0 @@
-AAAAAAAAACC5lyu2K2ro8YGnvOCKaL1sFX1HEIblIVbuMXsa8oeFSwAAAAERAAAA
-IBXVjKwFG6LvPG4WOIjBBzmxGNpkQwDs3W5qZcXVzqahAAAAEOEOH/WnhZCJyM39
-oNfhf18AAAAQ0xvmxqXXs3L62xxogUl9lQAAABAaeiHgqkvy4wiQtG1Gkv/tAAAA
-EMaw2TNu6SFdKFXAYluQdjEAAAAQi0u+IlgKCt/hatGAsTrfzQ==
diff --git a/security/nss/cmd/bltest/tests/rsa/numtests b/security/nss/cmd/bltest/tests/rsa/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/rsa/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/rsa/plaintext0 b/security/nss/cmd/bltest/tests/rsa/plaintext0
deleted file mode 100644
index d915bc88c4..0000000000
--- a/security/nss/cmd/bltest/tests/rsa/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-512bitsforRSAPublicKeyEncryption
diff --git a/security/nss/cmd/bltest/tests/seed_cbc/ciphertext0 b/security/nss/cmd/bltest/tests/seed_cbc/ciphertext0
deleted file mode 100644
index 97e970e1ba..0000000000
--- a/security/nss/cmd/bltest/tests/seed_cbc/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-JVdzim3if1YIcpGABasoCQ==
diff --git a/security/nss/cmd/bltest/tests/seed_cbc/iv0 b/security/nss/cmd/bltest/tests/seed_cbc/iv0
deleted file mode 100644
index 2b3b07661c..0000000000
--- a/security/nss/cmd/bltest/tests/seed_cbc/iv0
+++ /dev/null
@@ -1 +0,0 @@
-1234567890123456
diff --git a/security/nss/cmd/bltest/tests/seed_cbc/key0 b/security/nss/cmd/bltest/tests/seed_cbc/key0
deleted file mode 100644
index 13911cc29a..0000000000
--- a/security/nss/cmd/bltest/tests/seed_cbc/key0
+++ /dev/null
@@ -1 +0,0 @@
-fedcba9876543210
diff --git a/security/nss/cmd/bltest/tests/seed_cbc/numtests b/security/nss/cmd/bltest/tests/seed_cbc/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/seed_cbc/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/seed_cbc/plaintext0 b/security/nss/cmd/bltest/tests/seed_cbc/plaintext0
deleted file mode 100644
index 8d6a8d555b..0000000000
--- a/security/nss/cmd/bltest/tests/seed_cbc/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-0123456789abcdef
diff --git a/security/nss/cmd/bltest/tests/seed_ecb/ciphertext0 b/security/nss/cmd/bltest/tests/seed_ecb/ciphertext0
deleted file mode 100644
index 314ffbd8e6..0000000000
--- a/security/nss/cmd/bltest/tests/seed_ecb/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-GX8KY3uUhAQnL6XbQhXjEw==
diff --git a/security/nss/cmd/bltest/tests/seed_ecb/iv0 b/security/nss/cmd/bltest/tests/seed_ecb/iv0
deleted file mode 100644
index 2b3b07661c..0000000000
--- a/security/nss/cmd/bltest/tests/seed_ecb/iv0
+++ /dev/null
@@ -1 +0,0 @@
-1234567890123456
diff --git a/security/nss/cmd/bltest/tests/seed_ecb/key0 b/security/nss/cmd/bltest/tests/seed_ecb/key0
deleted file mode 100644
index 13911cc29a..0000000000
--- a/security/nss/cmd/bltest/tests/seed_ecb/key0
+++ /dev/null
@@ -1 +0,0 @@
-fedcba9876543210
diff --git a/security/nss/cmd/bltest/tests/seed_ecb/numtests b/security/nss/cmd/bltest/tests/seed_ecb/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/seed_ecb/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/seed_ecb/plaintext0 b/security/nss/cmd/bltest/tests/seed_ecb/plaintext0
deleted file mode 100644
index 8d6a8d555b..0000000000
--- a/security/nss/cmd/bltest/tests/seed_ecb/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-0123456789abcdef
diff --git a/security/nss/cmd/bltest/tests/sha1/ciphertext0 b/security/nss/cmd/bltest/tests/sha1/ciphertext0
deleted file mode 100644
index 1fe4bd2bd4..0000000000
--- a/security/nss/cmd/bltest/tests/sha1/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-cDSMAygXMPIJZC5bntZ4ZhecQ9g=
diff --git a/security/nss/cmd/bltest/tests/sha1/numtests b/security/nss/cmd/bltest/tests/sha1/numtests
deleted file mode 100644
index d00491fd7e..0000000000
--- a/security/nss/cmd/bltest/tests/sha1/numtests
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/security/nss/cmd/bltest/tests/sha1/plaintext0 b/security/nss/cmd/bltest/tests/sha1/plaintext0
deleted file mode 100644
index 863e79c65b..0000000000
--- a/security/nss/cmd/bltest/tests/sha1/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-A cage went in search of a bird.
diff --git a/security/nss/cmd/bltest/tests/sha256/ciphertext0 b/security/nss/cmd/bltest/tests/sha256/ciphertext0
deleted file mode 100644
index 07e2ff14fa..0000000000
--- a/security/nss/cmd/bltest/tests/sha256/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0=
diff --git a/security/nss/cmd/bltest/tests/sha256/ciphertext1 b/security/nss/cmd/bltest/tests/sha256/ciphertext1
deleted file mode 100644
index 2ab6e1da58..0000000000
--- a/security/nss/cmd/bltest/tests/sha256/ciphertext1
+++ /dev/null
@@ -1 +0,0 @@
-JI1qYdIGOLjlwCaTDD5gOaM85Flk/yFn9uzt1BnbBsE=
diff --git a/security/nss/cmd/bltest/tests/sha256/numtests b/security/nss/cmd/bltest/tests/sha256/numtests
deleted file mode 100644
index 0cfbf08886..0000000000
--- a/security/nss/cmd/bltest/tests/sha256/numtests
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/security/nss/cmd/bltest/tests/sha256/plaintext0 b/security/nss/cmd/bltest/tests/sha256/plaintext0
deleted file mode 100644
index 8baef1b4ab..0000000000
--- a/security/nss/cmd/bltest/tests/sha256/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/security/nss/cmd/bltest/tests/sha256/plaintext1 b/security/nss/cmd/bltest/tests/sha256/plaintext1
deleted file mode 100644
index afb5dce5d4..0000000000
--- a/security/nss/cmd/bltest/tests/sha256/plaintext1
+++ /dev/null
@@ -1 +0,0 @@
-abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq
diff --git a/security/nss/cmd/bltest/tests/sha384/ciphertext0 b/security/nss/cmd/bltest/tests/sha384/ciphertext0
deleted file mode 100644
index c94f91e22a..0000000000
--- a/security/nss/cmd/bltest/tests/sha384/ciphertext0
+++ /dev/null
@@ -1 +0,0 @@
-ywB1P0WjXou1oD1pmsZQBycsMqsO3tFjGotgWkP/W+2AhgcroefMI1i67KE0yCWn
diff --git a/security/nss/cmd/bltest/tests/sha384/ciphertext1 b/security/nss/cmd/bltest/tests/sha384/ciphertext1
deleted file mode 100644
index 833f06d844..0000000000
--- a/security/nss/cmd/bltest/tests/sha384/ciphertext1
+++ /dev/null
@@ -1 +0,0 @@
-CTMMM/cRR+g9GS/Hgs0bR1MRGxc7OwXSL6CAhuOw9xL8x8caVX4tuWbD6fqRdGA5
diff --git a/security/nss/cmd/bltest/tests/sha384/numtests b/security/nss/cmd/bltest/tests/sha384/numtests
deleted file mode 100644
index 0cfbf08886..0000000000
--- a/security/nss/cmd/bltest/tests/sha384/numtests
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/security/nss/cmd/bltest/tests/sha384/plaintext0 b/security/nss/cmd/bltest/tests/sha384/plaintext0
deleted file mode 100644
index 8baef1b4ab..0000000000
--- a/security/nss/cmd/bltest/tests/sha384/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/security/nss/cmd/bltest/tests/sha384/plaintext1 b/security/nss/cmd/bltest/tests/sha384/plaintext1
deleted file mode 100644
index 94fcc2b297..0000000000
--- a/security/nss/cmd/bltest/tests/sha384/plaintext1
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu
diff --git a/security/nss/cmd/bltest/tests/sha512/ciphertext0 b/security/nss/cmd/bltest/tests/sha512/ciphertext0
deleted file mode 100644
index 8b626e2379..0000000000
--- a/security/nss/cmd/bltest/tests/sha512/ciphertext0
+++ /dev/null
@@ -1,2 +0,0 @@
-3a81oZNherrMQXNJriBBMRLm+k6JqX6iCp7u5ktV05ohkpkqJ0/BqDa6PCOj/uu9
-RU1EI2Q86A4qmslPpUyknw==
diff --git a/security/nss/cmd/bltest/tests/sha512/ciphertext1 b/security/nss/cmd/bltest/tests/sha512/ciphertext1
deleted file mode 100644
index c02d1752d0..0000000000
--- a/security/nss/cmd/bltest/tests/sha512/ciphertext1
+++ /dev/null
@@ -1,2 +0,0 @@
-jpWbddrjE9qM9PcoFPwUP493ecbrn3+hcpmurbaIkBhQHSieSQD35DMbmd7EtUM6
-x9Mp7rbdJlReluVbh0vpCQ==
diff --git a/security/nss/cmd/bltest/tests/sha512/numtests b/security/nss/cmd/bltest/tests/sha512/numtests
deleted file mode 100644
index 0cfbf08886..0000000000
--- a/security/nss/cmd/bltest/tests/sha512/numtests
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/security/nss/cmd/bltest/tests/sha512/plaintext0 b/security/nss/cmd/bltest/tests/sha512/plaintext0
deleted file mode 100644
index 8baef1b4ab..0000000000
--- a/security/nss/cmd/bltest/tests/sha512/plaintext0
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/security/nss/cmd/bltest/tests/sha512/plaintext1 b/security/nss/cmd/bltest/tests/sha512/plaintext1
deleted file mode 100644
index 94fcc2b297..0000000000
--- a/security/nss/cmd/bltest/tests/sha512/plaintext1
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu
diff --git a/security/nss/cmd/btoa/Makefile b/security/nss/cmd/btoa/Makefile
deleted file mode 100644
index 6eb6e71da2..0000000000
--- a/security/nss/cmd/btoa/Makefile
+++ /dev/null
@@ -1,79 +0,0 @@
-#! gmake
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-#######################################################################
-# (1) Include initial platform-independent assignments (MANDATORY). #
-#######################################################################
-
-include manifest.mn
-
-#######################################################################
-# (2) Include "global" configuration information. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/config.mk
-
-#######################################################################
-# (3) Include "component" configuration information. (OPTIONAL) #
-#######################################################################
-
-#######################################################################
-# (4) Include "local" platform-dependent assignments (OPTIONAL). #
-#######################################################################
-
-include ../platlibs.mk
-
-#######################################################################
-# (5) Execute "global" rules. (OPTIONAL) #
-#######################################################################
-
-include $(CORE_DEPTH)/coreconf/rules.mk
-
-#######################################################################
-# (6) Execute "component" rules. (OPTIONAL) #
-#######################################################################
-
-
-
-#######################################################################
-# (7) Execute "local" rules. (OPTIONAL). #
-#######################################################################
-
-
-include ../platrules.mk
-
diff --git a/security/nss/cmd/btoa/btoa.c b/security/nss/cmd/btoa/btoa.c
deleted file mode 100644
index f140bddf8d..0000000000
--- a/security/nss/cmd/btoa/btoa.c
+++ /dev/null
@@ -1,213 +0,0 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is the Netscape security libraries.
- *
- * The Initial Developer of the Original Code is
- * Netscape Communications Corporation.
- * Portions created by the Initial Developer are Copyright (C) 1994-2000
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
-
-#include "plgetopt.h"
-#include "secutil.h"
-#include "nssb64.h"
-#include
-
-#if defined(XP_WIN) || (defined(__sun) && !defined(SVR4))
-#if !defined(WIN32)
-extern int fread(char *, size_t, size_t, FILE*);
-extern int fwrite(char *, size_t, size_t, FILE*);
-extern int fprintf(FILE *, char *, ...);
-#endif
-#endif
-
-#if defined(WIN32)
-#include "fcntl.h"
-#include "io.h"
-#endif
-
-static PRInt32
-output_ascii (void *arg, const char *obuf, PRInt32 size)
-{
- FILE *outFile = arg;
- int nb;
-
- nb = fwrite(obuf, 1, size, outFile);
- if (nb != size) {
- PORT_SetError(SEC_ERROR_IO);
- return -1;
- }
-
- return nb;
-}
-
-static SECStatus
-encode_file(FILE *outFile, FILE *inFile)
-{
- NSSBase64Encoder *cx;
- int nb;
- SECStatus status = SECFailure;
- unsigned char ibuf[4096];
-
- cx = NSSBase64Encoder_Create(output_ascii, outFile);
- if (!cx) {
- return -1;
- }
-
- for (;;) {
- if (feof(inFile)) break;
- nb = fread(ibuf, 1, sizeof(ibuf), inFile);
- if (nb != sizeof(ibuf)) {
- if (nb == 0) {
- if (ferror(inFile)) {
- PORT_SetError(SEC_ERROR_IO);
- goto loser;
- }
- /* eof */
- break;
- }
- }
-
- status = NSSBase64Encoder_Update(cx, ibuf, nb);
- if (status != SECSuccess) goto loser;
- }
-
- status = NSSBase64Encoder_Destroy(cx, PR_FALSE);
- if (status != SECSuccess)
- return status;
-
- /*
- * Add a trailing CRLF. Note this must be done *after* the call
- * to Destroy above (because only then are we sure all data has
- * been written out).
- */
- fwrite("\r\n", 1, 2, outFile);
- return SECSuccess;
-
- loser:
- (void) NSSBase64Encoder_Destroy(cx, PR_TRUE);
- return status;
-}
-
-static void Usage(char *progName)
-{
- fprintf(stderr,
- "Usage: %s [-i input] [-o output]\n",
- progName);
- fprintf(stderr, "%-20s Define an input file to use (default is stdin)\n",
- "-i input");
- fprintf(stderr, "%-20s Define an output file to use (default is stdout)\n",
- "-o output");
- exit(-1);
-}
-
-int main(int argc, char **argv)
-{
- char *progName;
- SECStatus rv;
- FILE *inFile, *outFile;
- PLOptState *optstate;
- PLOptStatus status;
-
- inFile = 0;
- outFile = 0;
- progName = strrchr(argv[0], '/');
- if (!progName)
- progName = strrchr(argv[0], '\\');
- progName = progName ? progName+1 : argv[0];
-
- /* Parse command line arguments */
- optstate = PL_CreateOptState(argc, argv, "i:o:");
- while ((status = PL_GetNextOpt(optstate)) == PL_OPT_OK) {
- switch (optstate->option) {
- default:
- Usage(progName);
- break;
-
- case 'i':
- inFile = fopen(optstate->value, "rb");
- if (!inFile) {
- fprintf(stderr, "%s: unable to open \"%s\" for reading\n",
- progName, optstate->value);
- return -1;
- }
- break;
-
- case 'o':
- outFile = fopen(optstate->value, "wb");
- if (!outFile) {
- fprintf(stderr, "%s: unable to open \"%s\" for writing\n",
- progName, optstate->value);
- return -1;
- }
- break;
- }
- }
- if (status == PL_OPT_BAD)
- Usage(progName);
- if (!inFile) {
-#if defined(WIN32)
- /* If we're going to read binary data from stdin, we must put stdin
- ** into O_BINARY mode or else incoming \r\n's will become \n's.
- */
-
- int smrv = _setmode(_fileno(stdin), _O_BINARY);
- if (smrv == -1) {
- fprintf(stderr,
- "%s: Cannot change stdin to binary mode. Use -i option instead.\n",
- progName);
- return smrv;
- }
-#endif
- inFile = stdin;
- }
- if (!outFile) {
-#if defined(WIN32)
- /* We're going to write binary data to stdout. We must put stdout
- ** into O_BINARY mode or else outgoing \r\n's will become \r\r\n's.
- */
-
- int smrv = _setmode(_fileno(stdout), _O_BINARY);
- if (smrv == -1) {
- fprintf(stderr,
- "%s: Cannot change stdout to binary mode. Use -o option instead.\n",
- progName);
- return smrv;
- }
-#endif
- outFile = stdout;
- }
- rv = encode_file(outFile, inFile);
- if (rv != SECSuccess) {
- fprintf(stderr, "%s: lossage: error=%d errno=%d\n",
- progName, PORT_GetError(), errno);
- return -1;
- }
- return 0;
-}
diff --git a/security/nss/cmd/btoa/manifest.mn b/security/nss/cmd/btoa/manifest.mn
deleted file mode 100644
index 394c661beb..0000000000
--- a/security/nss/cmd/btoa/manifest.mn
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-CORE_DEPTH = ../../..
-
-# MODULE public and private header directories are implicitly REQUIRED.
-MODULE = nss
-
-# This next line is used by .mk files
-# and gets translated into $LINCS in manifest.mnw
-# MODULE is implicitly REQUIRED, doesn't need to be listed below.
-REQUIRES = seccmd dbm
-
-DEFINES = -DNSPR20
-
-CSRCS = btoa.c
-
-PROGRAM = btoa
-
diff --git a/security/nss/cmd/certcgi/HOWTO.txt b/security/nss/cmd/certcgi/HOWTO.txt
deleted file mode 100644
index f02ad32fd4..0000000000
--- a/security/nss/cmd/certcgi/HOWTO.txt
+++ /dev/null
@@ -1,168 +0,0 @@
- How to setup your very own Cert-O-Matic Root CA server
-
-***** BEGIN LICENSE BLOCK *****
-Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
-The contents of this file are subject to the Mozilla Public License Version
-1.1 (the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-http://www.mozilla.org/MPL/
-
-Software distributed under the License is distributed on an "AS IS" basis,
-WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-for the specific language governing rights and limitations under the
-License.
-
-The Original Code is Netscape security libraries.
-
-The Initial Developer of the Original Code is Netscape Communications
-Corporation. Portions created by the Initial Developer are
-Copyright (C) 2001 the Initial Developer. All Rights Reserved.
-
-Contributor(s):
-
-Alternatively, the contents of this file may be used under the terms of
-either the GNU General Public License Version 2 or later (the "GPL"), or
-the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-in which case the provisions of the GPL or the LGPL are applicable instead
-of those above. If you wish to allow use of your version of this file only
-under the terms of either the GPL or the LGPL, and not to allow others to
-use your version of this file under the terms of the MPL, indicate your
-decision by deleting the provisions above and replace them with the notice
-and other provisions required by the GPL or the LGPL. If you do not delete
-the provisions above, a recipient may use your version of this file under
-the terms of any one of the MPL, the GPL or the LGPL.
-
-***** END LICENSE BLOCK *****
-
- How to setup your very own Cert-O-Matic Root CA server
-
-The program certcgi is part of a small test CA that is used inside
-Netscape by the NSS development team. That CA is affectionately known
-as "Cert-O-Matic" or "Cert-O-Matic II". It presently runs on a server
-named interzone.mcom.com inside Netscape's firewall.
-
-If you wish to setup your own Cert-O-Matic, here are directions.
-
-Disclaimer: This program does not follow good practices for root CAs.
-It should be used only for playing/testing and never for production use.
-Remember, you've been warned!
-
-Cert-O-Matic consists of some html files, shell scripts, one executable
-program that uses NSS and NSPR, the usual set of NSS .db files, and a file
-in which to remember the serial number of the last cert issued. The
-html files and the source to the executable program are in this directory.
-Sample shell scripts are shown below.
-
-The shell scripts and executable program run as CGI "scripts". The
-entire thing runs on an ordinary http web server. It would also run on
-an https web server. The shell scripts and html files must be
-customized for the server on which they run.
-
-The package assumes you have a "document root" directory $DOCROOT, and a
-"cgi-bin" directory $CGIBIN. In this example, the document root is
-assumed to be located in /var/www/htdocs, and the cgi-bin directory in
-/var/www/cgi-bin.
-
-The server is assumed to run all cgi scripts as the user "nobody".
-The names of the cgi scripts run directly by the server all end in .cgi
-because some servers like it that way.
-
-Instructions:
-
-- Create directory $DOCROOT/certomatic
-- Copy the following files from nss/cmd/certcgi to $DOCROOT/certomatic
- ca.html index.html main.html nscp_ext_form.html stnd_ext_form.html
-- Edit the html files, substituting the name of your own server for the
- server named in those files.
-- In some web page (e.g. your server's home page), provide an html link to
- $DOCROOT/certomatic/index.html. This is where users start to get their
- own certs from certomatic.
-- give these files and directories appropriate permissions.
-
-- Create directories $CGIBIN/certomatic and $CGIBIN/certomatic/bin
- make sure that $CGIBIN/certomatic is writable by "nobody"
-
-- Create a new set of NSS db files there with the following command:
-
- certutil -N -d $CGIBIN/certomatic
-
-- when certutil prompts you for the password, enter the word foo
- because that is compiled into the certcgi program.
-
-- Create the new Root CA cert with this command
-
- certutil -S -x -d $CGIBIN/certomatic -n "Cert-O-Matic II" \
- -s "CN=Cert-O-Matic II, O=Cert-O-Matic II" -t TCu,cu,cu -k rsa \
- -g 1024 -m 10001 -v 60
-
- (adjust the -g, -m and -v parameters to taste. -s and -x must be as
-shown.)
-
-- dump out the new root CA cert in base64 encoding:
-
- certutil -d $CGIBIN/certomatic -L -n "Cert-O-Matic II" -a > \
- $CGIBIN/certomatic/root.cacert
-
-- In $CGIBIN/certomatic/bin add two shell scripts - one to download the
- root CA cert on demand, and one to run the certcgi program.
-
-download.cgi, the script to install the root CA cert into a browser on
-demand, is this:
-
-#!/bin/sh
-echo "Content-type: application/x-x509-ca-cert"
-echo
-cat $CGIBIN/certomatic/root.cacert
-
-You'll have to put the real path into that cat command because CGIBIN
-won't be defined when this script is run by the server.
-
-certcgi.cgi, the script to run the certcgi program is similar to this:
-
-#!/bin/sh
-cd $CGIBIN/certomatic/bin
-LD_LIBRARY_PATH=$PLATFORM/lib
-export LD_LIBRARY_PATH
-$PLATFORM/bin/certcgi $* 2>&1
-
-Where $PLATFORM/lib is where the NSPR nad NSS DSOs are located, and
-$PLATFORM/bin is where certcgi is located. PLATFORM is not defined when
-the server runs this script, so you'll have to substitute the right value
-in your script. certcgi requires that the working directory be one level
-below the NSS DBs, that is, the DBs are accessed in the directory "..".
-
-You'll want to provide an html link somewhere to the script that downloads
-the root.cacert file. You'll probably want to put that next to the link
-that loads the index.html page. On interzone, this is done with the
-following html:
-
-Cert-O-Matic II Root CA server
-
-Download and trust Root CA
-certificate
-
-The index.html file in this directory invokes the certcgi.cgi script with
-the form post method, so if you change the name of the certcgi.cgi script,
-you'll also have to change the index.html file in $DOCROOT/certomatic
-
-The 4 files used by the certcgi program (the 3 NSS DBs, and the serial
-number file) are not required to live in $CGIBIN/certomatic, but they are
-required to live in $CWD/.. when certcgi starts.
-
-Known bugs:
-
-1. Because multiple of these CAs exist simultaneously, it would be best if
-they didn't all have to be called "Cert-O-Matic II", but that string is
-presently hard coded into certcgi.c.
-
-2. the html files in this directory contain numerous extraneous
- Use a
- CA long
- automatically generated chain ending with the Cert-O-Matic Cert
- (18 maximum)
- Use a
- CA long
- user input chain ending in the Cert-O-Matic Cert.
-
diff --git a/security/nss/cmd/certcgi/ca_form.html b/security/nss/cmd/certcgi/ca_form.html
deleted file mode 100644
index cb3e195eae..0000000000
--- a/security/nss/cmd/certcgi/ca_form.html
+++ /dev/null
@@ -1,388 +0,0 @@
-
-
-
-
diff --git a/security/nss/cmd/certcgi/manifest.mn b/security/nss/cmd/certcgi/manifest.mn
deleted file mode 100644
index 057f2596d1..0000000000
--- a/security/nss/cmd/certcgi/manifest.mn
+++ /dev/null
@@ -1,54 +0,0 @@
-#
-# ***** BEGIN LICENSE BLOCK *****
-# Version: MPL 1.1/GPL 2.0/LGPL 2.1
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-# http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# The Original Code is the Netscape security libraries.
-#
-# The Initial Developer of the Original Code is
-# Netscape Communications Corporation.
-# Portions created by the Initial Developer are Copyright (C) 1994-2000
-# the Initial Developer. All Rights Reserved.
-#
-# Contributor(s):
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 2 or later (the "GPL"), or
-# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
-# in which case the provisions of the GPL or the LGPL are applicable instead
-# of those above. If you wish to allow use of your version of this file only
-# under the terms of either the GPL or the LGPL, and not to allow others to
-# use your version of this file under the terms of the MPL, indicate your
-# decision by deleting the provisions above and replace them with the notice
-# and other provisions required by the GPL or the LGPL. If you do not delete
-# the provisions above, a recipient may use your version of this file under
-# the terms of any one of the MPL, the GPL or the LGPL.
-#
-# ***** END LICENSE BLOCK *****
-
-CORE_DEPTH = ../../..
-
-# MODULE public and private header directories are implicitly REQUIREd.
-MODULE = nss
-
-# This next line is used by .mk files
-# and gets translated into $LINCS in manifest.mnw
-REQUIRES = seccmd dbm
-
-DEFINES = -DNSPR20
-
-CSRCS = certcgi.c
-
-PROGRAM = certcgi
-
-USE_STATIC_LIBS = 1
-
diff --git a/security/nss/cmd/certcgi/nscp_ext_form.html b/security/nss/cmd/certcgi/nscp_ext_form.html
deleted file mode 100644
index bc94ab3a2d..0000000000
--- a/security/nss/cmd/certcgi/nscp_ext_form.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-