~ubuntu-branches/ubuntu/trusty/xulrunner/trusty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-25 13:04:18 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080825130418-ck1i2ms384tzb9m0
Tags: 1.8.1.16+nobinonly-0ubuntu1
* New upstream release (taken from upstream CVS), LP: #254618.
* Fix MFSA 2008-35, MFSA 2008-34, MFSA 2008-33, MFSA 2008-32, MFSA 2008-31,
  MFSA 2008-30, MFSA 2008-29, MFSA 2008-28, MFSA 2008-27, MFSA 2008-25,
  MFSA 2008-24, MFSA 2008-23, MFSA 2008-22, MFSA 2008-21, MFSA 2008-26 also
  known as CVE-2008-2933, CVE-2008-2785, CVE-2008-2811, CVE-2008-2810,
  CVE-2008-2809, CVE-2008-2808, CVE-2008-2807, CVE-2008-2806, CVE-2008-2805,
  CVE-2008-2803, CVE-2008-2802, CVE-2008-2801, CVE-2008-2800, CVE-2008-2798.
* Drop 89_bz419350_attachment_306066 patch, merged upstream.
* Bump Standards-Version to 3.8.0.

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