~ubuntu-branches/ubuntu/lucid/seamonkey/lucid-security

« back to all changes in this revision

Viewing changes to security/nss/lib/pkcs12/pkcs12.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabien Tassin
  • Date: 2008-07-29 21:29:02 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080729212902-spm9kpvchp9udwbw
Tags: 1.1.11+nobinonly-0ubuntu1
* New security upstream release: 1.1.11 (LP: #218534)
  Fixes USN-602-1, USN-619-1, USN-623-1 and USN-629-1
* Refresh diverged patch:
  - update debian/patches/80_security_build.patch
* Fix FTBFS with missing -lfontconfig
  - add debian/patches/11_fix_ftbfs_with_fontconfig.patch
  - update debian/patches/series
* Build with default gcc (hardy: 4.2, intrepid: 4.3)
  - update debian/rules
  - update debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#include "pkcs12t.h"
42
42
#include "p12.h"
43
43
 
44
 
SEC_BEGIN_PROTOS
45
 
 
46
 
typedef SECItem * (* SEC_PKCS12GetPassword)(void *arg);
47
 
 
48
 
/* Decode functions */
49
 
/* Import a PFX item.  
50
 
 *      der_pfx is the der-encoded pfx item to import.
51
 
 *      pbef, and pbefarg are used to retrieve passwords for the HMAC,
52
 
 *          and any passwords needed for passing to PKCS5 encryption 
53
 
 *          routines.
54
 
 *      algorithm is the algorithm by which private keys are stored in
55
 
 *          the key database.  this could be a specific algorithm or could
56
 
 *          be based on a global setting.
57
 
 *      slot is the slot to where the certificates will be placed.  if NULL,
58
 
 *          the internal key slot is used.
59
 
 * If the process is successful, a SECSuccess is returned, otherwise
60
 
 * a failure occurred.
61
 
 */ 
62
 
SECStatus
63
 
SEC_PKCS12PutPFX(SECItem *der_pfx, SECItem *pwitem,
64
 
                 SEC_PKCS12NicknameCollisionCallback ncCall,
65
 
                 PK11SlotInfo *slot, void *wincx);
66
 
 
67
 
/* check the first two bytes of a file to make sure that it matches
68
 
 * the desired header for a PKCS 12 file
69
 
 */
70
 
PRBool SEC_PKCS12ValidData(char *buf, int bufLen, long int totalLength);
71
 
 
72
 
SEC_END_PROTOS
73
 
 
74
44
#endif