~ubuntu-branches/ubuntu/jaunty/xulrunner-1.9/jaunty

« back to all changes in this revision

Viewing changes to mozilla/security/nss/cmd/pk11mode/pk11mode.c

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin, Sasa Bodiroza, Fabien Tassin, Alexander Sack
  • Date: 2008-09-02 11:54:00 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20080902115400-yfy26crvszpalvg5
Tags: 1.9.0.2+build3+nobinonly-0ubuntu1
[ Sasa Bodiroza ]
* In debian/rules:
  - Set 644 chmod to png files (LP: #252793) [Patch by Paolo Naldini]

[ Fabien Tassin ]
* improve create-build-system.sh to detect build-tree directory
  when embedded tarball is used. Fix un-escaped variables.
  Create build-system.tar.gz in the debian directory to prevent
  cdbs to check and unpack it during the build
  - update debian/create-build-system.sh
* Fix variables when an embedded tarball is used
  - update debian/rules
* Fix buffer overflow in realpath() at runtime and drop -U_FORTIFY_SOURCE
  from CPPFLAGS (LP: #263014)
  - add debian/patches/bz412610_att335369_realpath_overflow.patch
  - update debian/patches/series

[ Alexander Sack <asac@jwsdot.com> ]
* introduce preferred plugins by mime-type experimental feature;
  you can now set a pref to explicitly select a plugin to serve a particilar
  mime-type; patch contains further documentation.
  - add debian/patches/bzXXX_plugin_for_mimetype_pref.patch
  - update debian/patches/series
* drop patches applied upstream
  - drop bz120380_att326044.patch (fixed by bz442629)
  - update debian/patches/series

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *              The goal of this program is to test every function
4
4
 *              entry point of the PKCS11 api at least once.
5
5
 *              To test in FIPS mode: pk11mode
6
 
 *              To test in NONFIPS mode: pk11mode nonFIPS
 
6
 *              To test in NONFIPS mode: pk11mode -n
 
7
 *              usage: pk11mode -h
7
8
 *
8
9
 * ***** BEGIN LICENSE BLOCK *****
9
10
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5015
5016
        (void) pFunctionList->C_DestroyObject(hSession, kmo.hClientMacSecret);
5016
5017
    if (kmo.hServerMacSecret != CK_INVALID_HANDLE)
5017
5018
        (void) pFunctionList->C_DestroyObject(hSession, kmo.hServerMacSecret);
5018
 
    if (kmo.hClientKey != CK_INVALID_HANDLE);
 
5019
    if (kmo.hClientKey != CK_INVALID_HANDLE)
5019
5020
        (void) pFunctionList->C_DestroyObject(hSession, kmo.hClientKey);
5020
5021
    if (kmo.hServerKey != CK_INVALID_HANDLE)
5021
5022
        (void) pFunctionList->C_DestroyObject(hSession, kmo.hServerKey);
 
5023
 
5022
5024
    crv = pFunctionList->C_Logout(hSession);
5023
5025
    if (crv == CKR_OK) {
5024
5026
        PKM_LogIt("C_Logout succeeded\n");
5034
5036
        return crv;
5035
5037
    }
5036
5038
 
5037
 
 
5038
5039
    return (crv);
5039
5040
}
5040
5041
 
5041
 
 
5042
 
 
5043
5042
CK_RV PKM_DualFuncSign(CK_FUNCTION_LIST_PTR pFunctionList,
5044
5043
                       CK_SESSION_HANDLE hRwSession,
5045
5044
                       CK_OBJECT_HANDLE publicKey, CK_OBJECT_HANDLE privateKey,
5317
5316
    PR_fprintf(debug_out, "pk11mode test program usage:\n");
5318
5317
    PR_fprintf(debug_out, "\t-f <file>   Password File : echo pw > file \n");
5319
5318
    PR_fprintf(debug_out, "\t-n          Non Fips Mode \n");
5320
 
    PR_fprintf(debug_out, "\t-d <path>   Database path location)\n");
5321
 
    PR_fprintf(debug_out, "\t-p <prefix> DataBase prefix)\n");
 
5319
    PR_fprintf(debug_out, "\t-d <path>   Database path location\n");
 
5320
    PR_fprintf(debug_out, "\t-p <prefix> DataBase prefix\n");
5322
5321
    PR_fprintf(debug_out, "\t-h          this help message\n");
5323
5322
    exit(1);
5324
5323
}