~ubuntu-branches/ubuntu/maverick/nss/maverick

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-06-16 13:23:47 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090616132347-311ysb8oep74b98y
Tags: 3.12.3-0ubuntu1
* new upstream release 3.12.3 RTM (NSS_3_12_3_RTM) (LP: #387751)
* adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
* needs nspr >= 4.7.4
  - update debian/control
* update 85_security_load.patch to latest debian version
  - update debian/patches/85_security_load.patch
* add new symbols for 3.12.3
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
283
283
        PKIX_CertStore **pCertStore,
284
284
        void *plContext);
285
285
 
286
 
/*
287
 
 * FUNCTION: PKIX_PL_EkuChecker_Create
288
 
 *
289
 
 * DESCRIPTION:
290
 
 *  Create a CertChainChecker with EkuCheckerState and add it into
291
 
 *  PKIX_ProcessingParams object.
292
 
 *
293
 
 * PARAMETERS
294
 
 *  "params"
295
 
 *      a PKIX_ProcessingParams links to PKIX_ComCertSelParams where a list of
296
 
 *      Extended Key Usage OIDs specified by application can be retrieved for
297
 
 *      verification.
298
 
 *  "plContext"
299
 
 *      Platform-specific context pointer.
300
 
 *
301
 
 * THREAD SAFETY:
302
 
 *  Thread Safe (see Thread Safety Definitions in Programmer's Guide)
303
 
 *
304
 
 * RETURNS:
305
 
 *  Returns NULL if the function succeeds.
306
 
 *  Returns a UserDefinedModules Error if the function fails in a non-fatal
307
 
 *  way.
308
 
 *  Returns a Fatal Error
309
 
 */
310
 
PKIX_Error *
311
 
PKIX_PL_EkuChecker_Create(
312
 
        PKIX_ProcessingParams *params,
313
 
        void *plContext);
314
 
 
315
 
/*
316
 
 * FUNCTION: PKIX_PL_EkuChecker_GetRequiredEku
317
 
 *
318
 
 * DESCRIPTION:
319
 
 *  This function retrieves application specified ExtenedKeyUsage(s) from
320
 
 *  ComCertSetparams and converts its OID representations to SECCertUsageEnum.
321
 
 *  The result is stored and returned in bit mask at "pRequiredExtKeyUsage".
322
 
 *
323
 
 * PARAMETERS
324
 
 *  "certSelector"
325
 
 *      a PKIX_CertSelector links to PKIX_ComCertSelParams where a list of
326
 
 *      Extended Key Usage OIDs specified by application can be retrieved for
327
 
 *      verification. Must be non-NULL.
328
 
 *  "pRequiredExtKeyUsage"
329
 
 *      Address where the result is returned. Must be non-NULL.
330
 
 *  "plContext"
331
 
 *      Platform-specific context pointer.
332
 
 *
333
 
 * THREAD SAFETY:
334
 
 *  Thread Safe (see Thread Safety Definitions in Programmer's Guide)
335
 
 *
336
 
 * RETURNS:
337
 
 *  Returns NULL if the function succeeds.
338
 
 *  Returns a UserDefinedModules Error if the function fails in a non-fatal
339
 
 *  way.
340
 
 *  Returns a Fatal Error
341
 
 */
342
 
PKIX_Error *
343
 
pkix_pl_EkuChecker_GetRequiredEku(
344
 
        PKIX_CertSelector *certSelector,
345
 
        PKIX_UInt32 *pRequiredExtKeyUsage,
346
 
        void *plContext);
347
 
 
348
286
/* PKIX_PL_NssContext
349
287
 *
350
288
 * A PKIX_PL_NssContext provides an example showing how the "plContext"
422
360
PKIX_PL_NssContext_Destroy(
423
361
        void *nssContext);
424
362
 
 
363
/*
 
364
 * FUNCTION: PKIX_PL_NssContext_SetTimeout
 
365
 * DESCRIPTION:
 
366
 *
 
367
 * Sets IO timeout for network operations like OCSP response and cert
 
368
 * fetching.
 
369
 *
 
370
 * PARAMETERS:
 
371
 *  "nssContext"
 
372
 *      Address of NssContext to be destroyed. Must be non-NULL.
 
373
 * THREAD SAFETY:
 
374
 *  Thread Safe (see Thread Safety Definitions in Programmer's Guide)
 
375
 * RETURNS:
 
376
 *  Returns NULL if the function succeeds.
 
377
 *  Returns a Context Error if the function fails in a non-fatal way.
 
378
 *  Returns a Fatal Error if the function fails in an unrecoverable way.
 
379
 */
 
380
PKIX_Error *
 
381
PKIX_PL_NssContext_SetTimeout(PKIX_UInt32 timeout, PKIX_PL_NssContext *nssContext);
 
382
 
 
383
/*
 
384
 * FUNCTION: PKIX_PL_NssContext_SetMaxResponseLen
 
385
 * DESCRIPTION:
 
386
 *
 
387
 * Sets maximum responce length allowed during network IO operations.
 
388
 *
 
389
 * PARAMETERS:
 
390
 *  "nssContext"
 
391
 *      Address of NssContext to be destroyed. Must be non-NULL.
 
392
 * THREAD SAFETY:
 
393
 *  Thread Safe (see Thread Safety Definitions in Programmer's Guide)
 
394
 * RETURNS:
 
395
 *  Returns NULL if the function succeeds.
 
396
 *  Returns a Context Error if the function fails in a non-fatal way.
 
397
 *  Returns a Fatal Error if the function fails in an unrecoverable way.
 
398
 */
 
399
PKIX_Error *
 
400
PKIX_PL_NssContext_SetMaxResponseLen(PKIX_UInt32 len, PKIX_PL_NssContext *nssContext);
 
401
 
425
402
#ifdef __cplusplus
426
403
}
427
404
#endif