diff options
author | alexei.volkov.bugs%sun.com <devnull@localhost> | 2007-08-24 20:43:01 +0000 |
---|---|---|
committer | alexei.volkov.bugs%sun.com <devnull@localhost> | 2007-08-24 20:43:01 +0000 |
commit | 29d936dd96590a21c3764bd7351f8dbbee73e2c1 (patch) | |
tree | 0fabce6bcdbc393698821352d23c149dd213627d /security/nss/cmd/libpkix/pkix/certsel/test_comcertselparams.c | |
parent | f066798a77223ed9935c41e332e8d558dfad1d40 (diff) | |
download | nss-hg-29d936dd96590a21c3764bd7351f8dbbee73e2c1.tar.gz |
301213: Combine internal libpkix function tests into a single statically linked program. r=nelson,julien
Diffstat (limited to 'security/nss/cmd/libpkix/pkix/certsel/test_comcertselparams.c')
-rw-r--r-- | security/nss/cmd/libpkix/pkix/certsel/test_comcertselparams.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/security/nss/cmd/libpkix/pkix/certsel/test_comcertselparams.c b/security/nss/cmd/libpkix/pkix/certsel/test_comcertselparams.c index fa62525dd..1f449478c 100644 --- a/security/nss/cmd/libpkix/pkix/certsel/test_comcertselparams.c +++ b/security/nss/cmd/libpkix/pkix/certsel/test_comcertselparams.c @@ -44,8 +44,9 @@ #include "testutil.h" #include "testutil_nss.h" -void *plContext = NULL; +static void *plContext = NULL; +static void test_CreateOIDList(PKIX_List *certPolicyInfos, PKIX_List **pPolicyOIDs) { PKIX_UInt32 i = 0; @@ -90,6 +91,7 @@ cleanup: PKIX_TEST_RETURN(); } +static void test_NameConstraints(char *dirName) { PKIX_PL_Cert *goodCert = NULL; @@ -149,6 +151,7 @@ cleanup: PKIX_TEST_RETURN(); } +static void test_PathToNames(void) { PKIX_ComCertSelParams *goodParams = NULL; @@ -257,6 +260,7 @@ cleanup: PKIX_TEST_RETURN(); } +static void test_SubjAltNames(void) { PKIX_ComCertSelParams *goodParams = NULL; @@ -383,6 +387,7 @@ cleanup: PKIX_TEST_RETURN(); } +static void test_KeyUsages(void) { PKIX_ComCertSelParams *goodParams = NULL; @@ -453,6 +458,7 @@ cleanup: PKIX_TEST_RETURN(); } +static void test_Version_Issuer_SerialNumber(void) { PKIX_ComCertSelParams *goodParams = NULL; @@ -548,6 +554,7 @@ cleanup: PKIX_TEST_RETURN(); } +static void test_SubjKeyId_AuthKeyId(void) { PKIX_ComCertSelParams *goodParams = NULL; @@ -621,6 +628,7 @@ cleanup: PKIX_TEST_RETURN(); } +static void test_SubjAlgId_SubjPublicKey(char *dirName) { PKIX_ComCertSelParams *goodParams = NULL; @@ -702,11 +710,12 @@ cleanup: PKIX_TEST_RETURN(); } +static void printUsage(void) { (void) printf("\nUSAGE:\ttest_comcertselparams <NIST_FILES_DIR> \n\n"); } -int main(int argc, char *argv[]) { +int test_comcertselparams(int argc, char *argv[]) { PKIX_UInt32 actualMinorVersion; PKIX_UInt32 j = 0; |