~ubuntu-branches/ubuntu/raring/nss/raring-security

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/libpkix/include/pkix_pl_pki.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-03-25 13:46:06 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100325134606-bl6liuok2w9l7snv
Tags: 3.12.6-0ubuntu1
* New upstream release 3.12.6 RTM (NSS_3_12_6_RTM)
  - fixes CVE-2009-3555 aka US-CERT VU#120541
* Adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
  - update debian/patches/85_security_load.patch
* Remove patches that are merged upstream
  - delete debian/patches/91_nonexec_stack.patch
  - update debian/patches/series
* Bump nspr dependency to 4.8
  - update debian/control
* Add new symbols for 3.12.6
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
1394
1394
        void *plContext);
1395
1395
 
1396
1396
/*
 
1397
 * FUNCTION: PKIX_PL_Cert_VerifyCertAndKeyType
 
1398
 * DESCRIPTION:
 
1399
 *
 
1400
 * Verifies cert and key types against certificate usage that is
 
1401
 * a part of plContext(pkix_pl_nsscontext) structure. Throws an error
 
1402
 * if cert or key types does not match.
 
1403
 *
 
1404
 * PARAMETERS:
 
1405
 *  "cert"
 
1406
 *      Address of Cert whose keyUsage bits are to be verified.
 
1407
 *      Must be non-NULL.
 
1408
 *  "isLeafCert"
 
1409
 *      What type of a cert has been verified.
 
1410
 *  "plContext" - Platform-specific context pointer.
 
1411
 * THREAD SAFETY:
 
1412
 *  Thread Safe (see Thread Safety Definitions in Programmer's Guide)
 
1413
 * RETURNS:
 
1414
 *  Returns NULL if the function succeeds.
 
1415
 *  Returns a Cert Error if the function fails in a non-fatal way.
 
1416
 *  Returns a Fatal Error if the function fails in an unrecoverable way.
 
1417
 */
 
1418
PKIX_Error *
 
1419
PKIX_PL_Cert_VerifyCertAndKeyType(
 
1420
        PKIX_PL_Cert *cert,
 
1421
        PKIX_Boolean isChainCert,
 
1422
        void *plContext);
 
1423
 
 
1424
/*
1397
1425
 * FUNCTION: PKIX_PL_Cert_CheckValidity
1398
1426
 * DESCRIPTION:
1399
1427
 *
1721
1749
        void *plContext);
1722
1750
 
1723
1751
 
 
1752
 
 
1753
/*
 
1754
 * FUNCTION: PKIX_PL_Cert_GetCrlDp
 
1755
 * DESCRIPTION:
 
1756
 *
 
1757
 *  Retrieves the value(s) of the CRL Distribution Point Extension and
 
1758
 *  returns it in a list at address pointed by "pDpList".
 
1759
 *
 
1760
 * PARAMETERS:
 
1761
 *  "cert"
 
1762
 *      Address of Cert whose Subject Information Access is fetched.
 
1763
 *      Must be non-NULL.
 
1764
 *  "pDpList"
 
1765
 *      Address where CRL DP will be stored and returned.
 
1766
 *      Must be non-NULL.
 
1767
 *  "plContext"
 
1768
 *      Platform-specific context pointer.
 
1769
 * THREAD SAFETY:
 
1770
 *  Thread Safe (see Thread Safety Definitions in Programmer's Guide)
 
1771
 * RETURNS:
 
1772
 *  Returns NULL if the function succeeds.
 
1773
 *  Returns a Cert Error if the function fails in a non-fatal way.
 
1774
 *  Returns a Fatal Error if the function fails in an unrecoverable way.
 
1775
 */
 
1776
PKIX_Error *
 
1777
PKIX_PL_Cert_GetCrlDp(PKIX_PL_Cert *cert,
 
1778
                      PKIX_List **pDpList,
 
1779
                      void *plContext);
 
1780
 
 
1781
 
1724
1782
/*
1725
1783
 * InfoAccess 
1726
1784
 *
2094
2152
        void *plContext);
2095
2153
 
2096
2154
/*
 
2155
 * FUNCTION: PKIX_PL_CRL_ReleaseDerCrl
 
2156
 * DESCRIPTION:
 
2157
 *
 
2158
 * Relinguish the ownership for the crl der. The operation will succeed if
 
2159
 * a crl owns the der. If the crl was created from existing crl and does not
 
2160
 * own the der, then the function will return null.
 
2161
 *
 
2162
 * PARAMETERS:
 
2163
 *  "crl"
 
2164
 *      Address of CRL whose signature is to be verified. Must be non-NULL.
 
2165
 *  "derCrl"
 
2166
 *      Pointer to a SECItem that has der crl.
 
2167
 *  "plContext"
 
2168
 *      Platform-specific context pointer.
 
2169
 * THREAD SAFETY:
 
2170
 *  Thread Safe (see Thread Safety Definitions in Programmer's Guide)
 
2171
 * RETURNS:
 
2172
 *  Returns NULL if the function succeeds.
 
2173
 *  Returns a CRL Error if the function fails in a non-fatal way.
 
2174
 *  Returns a Fatal Error if the function fails in an unrecoverable way.
 
2175
 */
 
2176
PKIX_Error *
 
2177
PKIX_PL_CRL_ReleaseDerCrl(PKIX_PL_CRL *crl,
 
2178
                         SECItem **derCrl,
 
2179
                         void *plContext);
 
2180
/*
 
2181
 * FUNCTION: PKIX_PL_CRL_AdoptDerCrl
 
2182
 * DESCRIPTION:
 
2183
 *
 
2184
 * Adopt memory of the der. The secItem that contains der will be
 
2185
 * freed with destruction of parent pkix crl structure.
 
2186
 *
 
2187
 * * PARAMETERS:
 
2188
 *  "crl"
 
2189
 *      Address of CRL whose signature is to be verified. Must be non-NULL.
 
2190
 *  "derCrl"
 
2191
 *      Pointer to a SECItem that has der crl.
 
2192
 *  "plContext"
 
2193
 *      Platform-specific context pointer.
 
2194
 * THREAD SAFETY:
 
2195
 *  Thread Safe (see Thread Safety Definitions in Programmer's Guide)
 
2196
 * RETURNS:
 
2197
 *  Returns NULL if the function succeeds.
 
2198
 *  Returns a CRL Error if the function fails in a non-fatal way.
 
2199
 *  Returns a Fatal Error if the function fails in an unrecoverable way.
 
2200
 */
 
2201
PKIX_Error *
 
2202
PKIX_PL_CRL_AdoptDerCrl(PKIX_PL_CRL *crl,
 
2203
                        SECItem *derCrl,
 
2204
                        void *plContext);
 
2205
 
 
2206
/*
2097
2207
 * FUNCTION: PKIX_PL_CRLEntry_GetCRLEntryReasonCode
2098
2208
 * DESCRIPTION:
2099
2209
 *