lib/libpkix/pkix/util/pkix_tools.h
author Wan-Teh Chang <wtc@google.com>
Wed, 23 Dec 2015 20:30:41 -0800 (2015-12-24)
changeset 11804 5d9f8b809e6f7020529ba1345b64e36f61994c8d
parent 11521 0a59f0bce2ea7089bce03a54ca442dc323c6e995
permissions -rwxr-xr-x
Bug 1180095: Use PR_INT64() or PR_UINT64() instead of LL_INIT(). r=franziskuskiefer
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10313
008b1ff2736b6eb1af210a57c0bb84c2a58e8547 Bug 716563 - update license to MPL 2. r=rrelyea.
gerv%gerv.net
parents: 10060
diff changeset
     1
/* This Source Code Form is subject to the terms of the Mozilla Public
008b1ff2736b6eb1af210a57c0bb84c2a58e8547 Bug 716563 - update license to MPL 2. r=rrelyea.
gerv%gerv.net
parents: 10060
diff changeset
     2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
008b1ff2736b6eb1af210a57c0bb84c2a58e8547 Bug 716563 - update license to MPL 2. r=rrelyea.
gerv%gerv.net
parents: 10060
diff changeset
     3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
     4
/*
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
     5
 * pkix_tools.h
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
     6
 *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
     7
 * Header for Utility Functions and Macros
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
     8
 *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
     9
 */
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    10
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    11
#ifndef _PKIX_TOOLS_H
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    12
#define _PKIX_TOOLS_H
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    13
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    14
#include "pkix.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    15
#include <stddef.h>
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    16
#include <stdio.h>
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    17
#include "secport.h"
9132
edbf9864fd5e3bb51c8123b7f9b1411e6991b0c1 Bug 485370: crash, bus error due to unaligned access in pkix_pl_OcspResponse_Create
nelson%bolyard.com
parents: 8837
diff changeset
    18
#include "prlong.h"
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    19
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    20
/* private PKIX system headers */
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    21
#include "pkix_basicconstraintschecker.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    22
#include "pkix_buildresult.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    23
#include "pkix_certchainchecker.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    24
#include "pkix_certselector.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    25
#include "pkix_comcertselparams.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    26
#include "pkix_comcrlselparams.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    27
#include "pkix_crlselector.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    28
#include "pkix_error.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    29
#include "pkix_expirationchecker.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    30
#include "pkix_list.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    31
#include "pkix_logger.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    32
#include "pkix_namechainingchecker.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    33
#include "pkix_nameconstraintschecker.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    34
#include "pkix_policychecker.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    35
#include "pkix_policynode.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    36
#include "pkix_procparams.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    37
#include "pkix_resourcelimits.h"
8798
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
    38
#include "pkix_revocationmethod.h"
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    39
#include "pkix_revocationchecker.h"
8798
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
    40
#include "pkix_crlchecker.h"
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
    41
#include "pkix_ocspchecker.h"
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    42
#include "pkix_signaturechecker.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    43
#include "pkix_store.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    44
#include "pkix_targetcertchecker.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    45
#include "pkix_validate.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    46
#include "pkix_valresult.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    47
#include "pkix_verifynode.h"
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    48
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    49
#ifdef __cplusplus
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    50
extern "C" {
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    51
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
    52
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    53
typedef struct pkixStdVarsStr {
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    54
    const char        *aMyFuncName;
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    55
    PKIX_Error        *aPkixErrorResult;
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    56
    PKIX_Error        *aPkixTempResult;
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    57
    PKIX_Error        *aPkixReturnResult;
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
    58
    PKIX_ERRORCODE     aPkixErrorCode;
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    59
    PKIX_Boolean       aPkixErrorReceived;
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    60
    PKIX_Boolean       aPkixTempErrorReceived;
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
    61
    PKIX_ERRORCLASS    aPkixErrorClass;
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    62
    PKIX_UInt32        aPkixType;
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    63
    PKIX_PL_Object    *aLockedObject;
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    64
    PKIX_List         *aPkixErrorList;
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    65
} PKIX_StdVars;
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    66
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    67
#ifdef PKIX_STDVARS_POINTER
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    68
#define myFuncName                  stdVars->aMyFuncName
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    69
#define pkixErrorResult             stdVars->aPkixErrorResult
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    70
#define pkixTempResult              stdVars->aPkixTempResult
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    71
#define pkixReturnResult            stdVars->aPkixReturnResult
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    72
#define pkixErrorCode               stdVars->aPkixErrorCode
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    73
#define pkixErrorReceived           stdVars->aPkixErrorReceived
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    74
#define pkixTempErrorReceived       stdVars->aPkixTempErrorReceived 
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    75
#define pkixErrorClass              stdVars->aPkixErrorClass
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    76
#define pkixType                    stdVars->aPkixType
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    77
#define lockedObject                stdVars->aLockedObject
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    78
#define pkixErrorList               stdVars->aPkixErrorList
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    79
#define stdVarsPtr                  stdVars
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    80
#else
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    81
#define myFuncName                  stdVars.aMyFuncName
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    82
#define pkixErrorResult             stdVars.aPkixErrorResult
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    83
#define pkixTempResult              stdVars.aPkixTempResult
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    84
#define pkixReturnResult            stdVars.aPkixReturnResult
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    85
#define pkixErrorCode               stdVars.aPkixErrorCode
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    86
#define pkixErrorReceived           stdVars.aPkixErrorReceived
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    87
#define pkixTempErrorReceived       stdVars.aPkixTempErrorReceived 
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    88
#define pkixErrorClass              stdVars.aPkixErrorClass
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    89
#define pkixType                    stdVars.aPkixType
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    90
#define lockedObject                stdVars.aLockedObject
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    91
#define pkixErrorList               stdVars.aPkixErrorList
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    92
#define stdVarsPtr                  &stdVars
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    93
#endif
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    94
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    95
extern PKIX_Error * PKIX_DoReturn(PKIX_StdVars * stdVars, 
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
    96
                                  PKIX_ERRORCLASS errClass, 
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    97
                                  PKIX_Boolean doLogger,
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
    98
                                  void * plContext);
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
    99
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   100
extern PKIX_Error * PKIX_DoThrow(PKIX_StdVars * stdVars, 
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
   101
                                 PKIX_ERRORCLASS errClass, 
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   102
                                 PKIX_ERRORCODE errCode,
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   103
                                 PKIX_ERRORCLASS overrideClass, 
8037
1887266437e0d56ab6286b0b185272f561e1d1ff 390527 - libpkix does not return a numeric error code. r=nelson
alexei.volkov.bugs%sun.com
parents: 8024
diff changeset
   104
                                 void * plContext);
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   105
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   106
extern void PKIX_DoAddError(PKIX_StdVars * stdVars, 
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   107
                            PKIX_Error * error,
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   108
                            void * plContext);
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   109
8534
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   110
#ifdef PKIX_OBJECT_LEAK_TEST
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   111
extern PKIX_Error * pkix_CheckForGeneratedError(PKIX_StdVars * stdVars, 
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   112
                                                PKIX_ERRORCLASS errClass, 
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   113
                                                char * fnName,
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   114
                                                PKIX_Boolean *errorStateSet,
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   115
                                                void * plContext);
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   116
#endif /* PKIX_OBJECT_LEAK_TEST */
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   117
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   118
extern const PKIX_StdVars zeroStdVars;
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   119
8488
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   120
extern PRLogModuleInfo *pkixLog;
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   121
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   122
/*
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   123
 * UTILITY MACROS
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   124
 * Documentation for these common utility macros can be found in the
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   125
 * Implementation Guidelines document (Section 4.3)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   126
 *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   127
 * In general, macros with multiple statements (or a single "if" statement)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   128
 * use the "do {<body>} while (0)" technique in order to convert the multiple
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   129
 * statements into one statement, thus avoiding the dangling else problem.
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   130
 * For macros which ALWAYS exit with a "return" or "goto", there is no
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   131
 * need to use this technique (and it yields compiler warnings of "statement
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   132
 * not reached"), so we just use "{<body>}" to group the statements together.
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   133
 */
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   134
8534
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   135
#if !defined (PKIX_OBJECT_LEAK_TEST)
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   136
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   137
#define PKIX_STD_VARS(funcName) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   138
    static const char cMyFuncName[] = {funcName}; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   139
    PKIX_StdVars      stdVars = zeroStdVars; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   140
    myFuncName = cMyFuncName
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   141
8534
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   142
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   143
#else /* PKIX_OBJECT_LEAK_TEST */
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   144
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   145
extern char **fnStackNameArr;
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   146
extern PKIX_UInt32 *fnStackInvCountArr;
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   147
extern PKIX_UInt32  stackPosition;
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   148
extern PKIX_Boolean noErrorState;
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   149
extern PKIX_Boolean errorGenerated;
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   150
extern PKIX_Boolean runningLeakTest;
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   151
extern PLHashTable *fnInvTable;
8634
d7ba5c1a45949a1786a6b82f7c083a4eed74f686 Bug 430135 – Need improvement to pkix object leak testing. r=nelson
alexei.volkov.bugs%sun.com
parents: 8559
diff changeset
   152
extern PKIX_UInt32 testStartFnStackPosition;
d7ba5c1a45949a1786a6b82f7c083a4eed74f686 Bug 430135 – Need improvement to pkix object leak testing. r=nelson
alexei.volkov.bugs%sun.com
parents: 8559
diff changeset
   153
extern char *errorFnStackString;
8534
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   154
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   155
extern PLHashNumber PR_CALLBACK pkix_ErrorGen_Hash (const void *key);
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   156
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   157
#define PKIX_STD_VARS(funcName) \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   158
    static const char cMyFuncName[] = {funcName}; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   159
    PKIX_StdVars      stdVars = zeroStdVars; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   160
    PKIX_Boolean      errorSetFlag = PKIX_FALSE; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   161
    myFuncName = cMyFuncName; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   162
    if (runningLeakTest) { \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   163
        if (fnStackNameArr) { \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   164
            fnStackInvCountArr[stackPosition] += 1; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   165
            stackPosition += 1; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   166
            fnStackInvCountArr[stackPosition] = 0; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   167
            fnStackNameArr[stackPosition] = (char*)myFuncName; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   168
            fnStackNameArr[stackPosition + 1] = NULL; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   169
            PR_LOG(pkixLog, 5, \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   170
                    ("%s%*s+> %s(%d) - %s\n", (errorGenerated ? "*" : " "), \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   171
                             stackPosition, " ", fnStackNameArr[stackPosition], \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   172
                             stackPosition, myFuncName)); \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   173
        } \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   174
        do { \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   175
            pkixErrorResult = pkix_CheckForGeneratedError(&stdVars, PKIX_MEM_ERROR, \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   176
                                                          funcName, &errorSetFlag, \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   177
                                                          plContext); \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   178
            if (pkixErrorResult) { \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   179
                 PR_LOG(pkixLog, 5, \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   180
                    ("%s%*s<- %s(%d) - %s\n", (errorGenerated ? "*" : " "), \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   181
                              stackPosition, " ", fnStackNameArr[stackPosition], \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   182
                              stackPosition, myFuncName)); \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   183
                 fnStackNameArr[stackPosition--] = NULL; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   184
                 if (errorSetFlag) { \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   185
                       noErrorState = (noErrorState) ? PKIX_FALSE : PKIX_TRUE; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   186
                 } \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   187
                 return pkixErrorResult; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   188
            } \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   189
        } while (0); \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   190
    }
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   191
#endif /* PKIX_OBJECT_LEAK_TEST */
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   192
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   193
#ifdef DEBUG
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   194
#define _PKIX_DEBUG_TRACE(cond, prefix, level) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   195
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   196
	if (cond) { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   197
	    pkix_Logger_Check(pkixLoggersDebugTrace, myFuncName, \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   198
	                      prefix, pkixType, level, plContext); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   199
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   200
    } while (0)
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   201
#else
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   202
#define _PKIX_DEBUG_TRACE(cond, prefix, level) 
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   203
#endif
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   204
8837
a573f497085e47bfd36bbd525ee5dda9d31d0b98 390527 - get rid of pkixErrorMsg variable in PKIX_Error. r=nelson
alexei.volkov.bugs%sun.com
parents: 8798
diff changeset
   205
#define _PKIX_LOG_ERROR(code, level) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   206
    { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   207
	if (pkixLoggersErrors) { \
8837
a573f497085e47bfd36bbd525ee5dda9d31d0b98 390527 - get rid of pkixErrorMsg variable in PKIX_Error. r=nelson
alexei.volkov.bugs%sun.com
parents: 8798
diff changeset
   208
	    pkix_Logger_CheckWithCode(pkixLoggersErrors, code, \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   209
	                      NULL, pkixType, level, plContext); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   210
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   211
    }
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   212
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   213
#define PKIX_ENTER(type, funcName) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   214
    PKIX_STD_VARS(funcName); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   215
    pkixType = PKIX_ ## type ## _ERROR; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   216
    PKIX_DEBUG_ENTER(type); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   217
    _PKIX_DEBUG_TRACE(pkixLoggersDebugTrace, ">>>", PKIX_LOGGER_LEVEL_TRACE);
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   218
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   219
#define PKIX_ENTER_NO_LOGGER(type, funcName) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   220
    PKIX_STD_VARS(funcName); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   221
    pkixType = PKIX_ ## type ## _ERROR; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   222
    PKIX_DEBUG_ENTER(type);
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   223
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   224
#define PKIX_DEBUG_ENTER(type) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   225
    PKIX_ ## type ## _DEBUG_ARG("( Entering %s).\n", myFuncName)
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   226
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   227
#define PKIX_DEBUG_EXIT(type) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   228
    PKIX_ ## type ## _DEBUG_ARG("( Exiting %s).\n", myFuncName)
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   229
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   230
#define PKIX_OBJECT_UNLOCK(obj) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   231
    do { \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   232
	if (obj && lockedObject == (PKIX_PL_Object *)(obj)){ \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   233
	    pkixTempResult = \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   234
		    PKIX_PL_Object_Unlock \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   235
		    ((PKIX_PL_Object *)(obj), plContext); \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   236
	    if (pkixTempResult) { \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   237
		PKIX_DoAddError(stdVarsPtr, pkixTempResult, plContext); \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   238
		pkixTempResult = NULL; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   239
	    } \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   240
	    lockedObject = NULL; \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   241
	} else { \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   242
	    PORT_Assert(lockedObject == NULL); \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   243
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   244
    } while (0)
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   245
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   246
#define PKIX_DECREF(obj) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   247
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   248
	if (obj){ \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   249
	    pkixTempResult = PKIX_PL_Object_DecRef \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   250
			((PKIX_PL_Object *)(obj), plContext); \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   251
	    if (pkixTempResult) { \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   252
		PKIX_DoAddError(stdVarsPtr, pkixTempResult, plContext); \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   253
		pkixTempResult = NULL; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   254
	    } \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   255
	    obj = NULL; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   256
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   257
    } while (0)
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   258
8037
1887266437e0d56ab6286b0b185272f561e1d1ff 390527 - libpkix does not return a numeric error code. r=nelson
alexei.volkov.bugs%sun.com
parents: 8024
diff changeset
   259
#define PKIX_THROW(type, descNum) \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   260
    return PKIX_DoThrow(&stdVars, (PKIX_ ## type ## _ERROR), descNum, \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   261
                        pkixErrorClass, plContext);
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   262
8534
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   263
#ifdef PKIX_OBJECT_LEAK_TEST
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   264
#define PKIX_RETURN(type) \
8534
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   265
    if (runningLeakTest && fnStackNameArr) { \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   266
        PR_LOG(pkixLog, 5, \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   267
               ("%s%*s<- %s(%d) - %s\n", (errorGenerated ? "*" : " "), \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   268
               stackPosition, " ", fnStackNameArr[stackPosition], \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   269
               stackPosition, myFuncName)); \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   270
        fnStackNameArr[stackPosition--] = NULL; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   271
        if (errorSetFlag) noErrorState = (noErrorState) ? PKIX_FALSE : PKIX_TRUE; \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   272
    } \
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   273
    return PKIX_DoReturn(&stdVars, (PKIX_ ## type ## _ERROR), PKIX_TRUE, plContext);
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   274
#else
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   275
#define PKIX_RETURN(type) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   276
    return PKIX_DoReturn(&stdVars, (PKIX_ ## type ## _ERROR), PKIX_TRUE, plContext);
8534
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   277
#endif /* PKIX_OBJECT_LEAK_TEST */
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
   278
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   279
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   280
#if defined(DEBUG) && !defined(DEBUG_nb95248)
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   281
#define PKIX_RETURN_NO_LOGGER(type) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   282
    { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   283
	PKIX_OBJECT_UNLOCK(lockedObject); \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   284
	if ((pkixErrorReceived) || (pkixErrorResult) || pkixErrorList) \
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
   285
	    PKIX_THROW(type, pkixErrorCode); \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   286
	PKIX_DEBUG_EXIT(type); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   287
	return NULL; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   288
    }
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   289
#else
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   290
#define PKIX_RETURN_NO_LOGGER(type) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   291
    return PKIX_DoReturn(&stdVars, (PKIX_ ## type ## _ERROR), PKIX_FALSE, plContext);
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   292
#endif
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   293
8488
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   294
/* disable to disable ;-) */
8770
17a939b28fc037908eb2507c0180e4c323f6d612 Bug 457980: remove hundreds of kilobytes of useless strings in libPKIX, r=alexei
nelson%bolyard.com
parents: 8634
diff changeset
   295
/* #define WANT_TRACE_CHECK_FAILURES */
8488
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   296
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   297
#ifdef WANT_TRACE_CHECK_FAILURES
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   298
#define TRACE_CHECK_FAILURE(what, errorstring) \
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   299
    if (pkixLog) { \
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   300
      PR_LOG(pkixLog, PR_LOG_DEBUG, \
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   301
        ("====> [%s] failed: %s\n", #what, errorstring)); \
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   302
    }
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   303
#else
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   304
#define TRACE_CHECK_FAILURE(what, errorstring)
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   305
#endif
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   306
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   307
#define PKIX_CHECK(func, descNum) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   308
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   309
	pkixErrorResult = (func); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   310
	if (pkixErrorResult) { \
8488
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   311
            TRACE_CHECK_FAILURE((func), PKIX_ErrorText[descNum]) \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   312
	    pkixErrorClass = pkixErrorResult->errClass; \
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
   313
	    pkixErrorCode = descNum; \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   314
	    goto cleanup; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   315
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   316
    } while (0)
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   317
10060
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   318
/* like PKIX_CHECK but without goto cleanup */
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   319
#define PKIX_CHECK_NO_GOTO(func, descNum) \
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   320
    do { \
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   321
	pkixErrorResult = (func); \
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   322
	if (pkixErrorResult) { \
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   323
            TRACE_CHECK_FAILURE((func), PKIX_ErrorText[descNum]) \
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   324
	    pkixErrorClass = pkixErrorResult->errClass; \
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   325
	    pkixErrorCode = descNum; \
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   326
	} \
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   327
    } while (0)
66bca88b1b24b88f5b14e27a5c6f5677947c49d0 Bug 662557: Set pkixErrorClass and pkixErrorCode if localRevChecker or
wtc%google.com
parents: 9219
diff changeset
   328
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   329
#define PKIX_CHECK_ONLY_FATAL(func, descNum) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   330
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   331
	pkixTempErrorReceived = PKIX_FALSE; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   332
	pkixErrorResult = (func); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   333
	if (pkixErrorResult) { \
8488
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   334
            TRACE_CHECK_FAILURE((func), PKIX_ErrorText[descNum]) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   335
	    pkixTempErrorReceived = PKIX_TRUE; \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   336
	    pkixErrorClass = pkixErrorResult->errClass; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   337
            if (pkixErrorClass == PKIX_FATAL_ERROR) { \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   338
	         goto cleanup; \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   339
	    } \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   340
	    PKIX_DECREF(pkixErrorResult); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   341
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   342
    } while (0)
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   343
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   344
#define PKIX_LOG_ERROR(descNum) \
8837
a573f497085e47bfd36bbd525ee5dda9d31d0b98 390527 - get rid of pkixErrorMsg variable in PKIX_Error. r=nelson
alexei.volkov.bugs%sun.com
parents: 8798
diff changeset
   345
    _PKIX_LOG_ERROR(descNum, PKIX_LOGGER_LEVEL_ERROR)
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   346
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   347
#define PKIX_ERROR(descNum) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   348
    { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   349
	PKIX_LOG_ERROR(descNum) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   350
	pkixErrorReceived = PKIX_TRUE; \
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
   351
	pkixErrorCode = descNum; \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   352
	goto cleanup; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   353
    }
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   354
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   355
#define PKIX_ERROR_ALLOC_ERROR() \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   356
    { \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   357
	PKIX_LOG_ERROR(PKIX_ALLOCERROR) \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   358
	pkixErrorReceived = PKIX_TRUE; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   359
	pkixErrorResult = PKIX_ALLOC_ERROR(); \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   360
	goto cleanup; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   361
    }
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   362
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   363
#define PKIX_ERROR_FATAL(descNum) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   364
    { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   365
	pkixErrorReceived = PKIX_TRUE; \
8122
5ed9d3ccde8791765998a0f4acd9802c557b19d3 391457 - libpkix does not check for object ref leak at shutdown. r=nelson
alexei.volkov.bugs%sun.com
parents: 8070
diff changeset
   366
	pkixErrorCode = descNum; \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   367
	pkixErrorClass = PKIX_FATAL_ERROR; \
8837
a573f497085e47bfd36bbd525ee5dda9d31d0b98 390527 - get rid of pkixErrorMsg variable in PKIX_Error. r=nelson
alexei.volkov.bugs%sun.com
parents: 8798
diff changeset
   368
	_PKIX_LOG_ERROR(pkixErrorCode, PKIX_LOGGER_LEVEL_FATALERROR); \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   369
	goto cleanup; \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   370
    }
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   371
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   372
#define PKIX_CHECK_FATAL(func, descNum) \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   373
    do { \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   374
	pkixErrorResult = (func); \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   375
	if (pkixErrorResult) { \
8488
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
   376
                TRACE_CHECK_FAILURE((func), PKIX_ErrorText[descNum]) \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   377
		pkixErrorReceived = PKIX_TRUE; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   378
		pkixErrorCode = descNum; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   379
		pkixErrorClass = PKIX_FATAL_ERROR; \
8837
a573f497085e47bfd36bbd525ee5dda9d31d0b98 390527 - get rid of pkixErrorMsg variable in PKIX_Error. r=nelson
alexei.volkov.bugs%sun.com
parents: 8798
diff changeset
   380
		_PKIX_LOG_ERROR(pkixErrorCode, PKIX_LOGGER_LEVEL_FATALERROR); \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   381
		goto fatal; \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   382
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   383
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   384
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   385
#define PKIX_NULLCHECK_ONE(a) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   386
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   387
	if ((a) == NULL){ \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   388
	    pkixErrorReceived = PKIX_TRUE; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   389
	    pkixErrorCode = PKIX_NULLARGUMENT; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   390
	    PKIX_RETURN(FATAL); \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   391
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   392
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   393
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   394
#define PKIX_NULLCHECK_TWO(a, b) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   395
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   396
	if (((a) == NULL) || ((b) == NULL)){ \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   397
	    pkixErrorReceived = PKIX_TRUE; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   398
	    pkixErrorCode = PKIX_NULLARGUMENT; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   399
	    PKIX_RETURN(FATAL); \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   400
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   401
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   402
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   403
#define PKIX_NULLCHECK_THREE(a, b, c) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   404
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   405
	if (((a) == NULL) || ((b) == NULL) || ((c) == NULL)){ \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   406
	    pkixErrorReceived = PKIX_TRUE; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   407
	    pkixErrorCode = PKIX_NULLARGUMENT; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   408
	    PKIX_RETURN(FATAL); \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   409
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   410
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   411
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   412
#define PKIX_NULLCHECK_FOUR(a, b, c, d) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   413
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   414
	if (((a) == NULL) || ((b) == NULL) || \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   415
	    ((c) == NULL) || ((d) == NULL)){ \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   416
	    pkixErrorReceived = PKIX_TRUE; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   417
	    pkixErrorCode = PKIX_NULLARGUMENT; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   418
	    PKIX_RETURN(FATAL); \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   419
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   420
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   421
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   422
#define PKIX_OBJECT_LOCK(obj) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   423
    do { \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   424
	if (obj) { \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   425
	    pkixTempResult = \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   426
		PKIX_PL_Object_Lock((PKIX_PL_Object*)(obj), plContext); \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   427
	    if (pkixTempResult) { \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   428
		PKIX_DoAddError(stdVarsPtr, pkixTempResult, plContext); \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   429
		pkixTempResult = NULL; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   430
		pkixErrorCode = PKIX_OBJECTLOCKFAILED; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   431
		goto cleanup; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   432
	    } \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   433
	    lockedObject = (PKIX_PL_Object *)(obj); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   434
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   435
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   436
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   437
#define PKIX_ERROR_CREATE(type, descNum, error) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   438
    { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   439
	pkixTempResult = (PKIX_Error*)pkix_Throw \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   440
		(PKIX_ ## type ## _ERROR,  myFuncName, \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   441
		descNum, PKIX_ ## type ## _ERROR, pkixErrorResult, \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   442
		&error, plContext); \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   443
	if (pkixTempResult) { \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   444
	    error = pkixTempResult; \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   445
	    pkixTempResult = NULL; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   446
	} \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   447
    }
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   448
		
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   449
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   450
#define PKIX_ERROR_RECEIVED \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   451
    (pkixErrorReceived || pkixErrorResult || pkixTempErrorReceived || \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   452
     pkixErrorList)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   453
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   454
#define PKIX_INCREF(obj) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   455
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   456
	if (obj){ \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   457
	    pkixTempResult = PKIX_PL_Object_IncRef \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   458
			((PKIX_PL_Object *)(obj), plContext); \
8196
cf94d0643ab0392d4eaf5934e5289e2110fc1883 397832 - lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c. First part of the patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8122
diff changeset
   459
	    if (pkixTempResult) { \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   460
		PKIX_DoAddError(&stdVars, pkixTempResult, plContext); \
8294
ebc2675e62a1621fafc2e671aaff0061c5150015 397832 - libpkix leaks memory if a macro calls a function that returns an error.r=nelson
alexei.volkov.bugs%sun.com
parents: 8287
diff changeset
   461
		pkixTempResult = NULL; \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   462
		goto cleanup; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   463
	    } \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   464
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   465
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   466
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   467
#define PKIX_FREE(obj) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   468
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   469
	if (obj) { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   470
	    pkixTempResult = PKIX_PL_Free((obj), plContext); \
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   471
	    if (pkixTempResult) { \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   472
		PKIX_DoAddError(&stdVars, pkixTempResult, plContext); \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   473
		pkixTempResult = NULL; \
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
   474
	    } \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   475
	    obj = NULL; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   476
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   477
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   478
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   479
#define PKIX_EXACTLY_ONE_NULL(a, b) (((a) && !(b)) || ((b) && !(a)))
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   480
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   481
/* DIGIT MACROS */
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   482
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   483
#define PKIX_ISDIGIT(c) (((c) >= '0') && ((c) <= '9'))
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   484
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   485
#define PKIX_ISXDIGIT(c) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   486
    (PKIX_ISDIGIT(c) || ( (((c)|0x20) >= 'a') && (((c)|0x20) <= 'f') ))
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   487
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   488
#define PKIX_TOSTRING(a, b, c, d) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   489
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   490
	int descNum; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   491
	if ((a) != NULL) { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   492
	    pkixErrorResult =  \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   493
		PKIX_PL_Object_ToString((PKIX_PL_Object *)(a), (b), (c)); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   494
	    descNum = (d); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   495
	} else { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   496
	    pkixErrorResult =  \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   497
		PKIX_PL_String_Create(PKIX_ESCASCII, "(null)", 0, (b), (c)); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   498
	    descNum = PKIX_STRINGCREATEFAILED; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   499
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   500
	PKIX_CHECK(pkixErrorResult, descNum); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   501
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   502
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   503
#define PKIX_EQUALS(a, b, c, d, e) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   504
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   505
	if ((a) != NULL && (b) != NULL) { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   506
	    PKIX_CHECK(PKIX_PL_Object_Equals\
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   507
			((PKIX_PL_Object *)(a), \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   508
			(PKIX_PL_Object*)(b), \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   509
			(c), \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   510
			(d)), \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   511
			(e)); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   512
	} else if ((a) == NULL && (b) == NULL) { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   513
	    *(c) = PKIX_TRUE; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   514
	} else { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   515
	    *(c) = PKIX_FALSE; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   516
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   517
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   518
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   519
#define PKIX_HASHCODE(a, b, c, d) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   520
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   521
	if ((a) != NULL) { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   522
	    PKIX_CHECK(PKIX_PL_Object_Hashcode\
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   523
		((PKIX_PL_Object *)(a), (b), (c)), (d)); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   524
	} else { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   525
	    *(b) = 0; \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   526
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   527
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   528
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   529
#define PKIX_DUPLICATE(a, b, c, d) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   530
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   531
	if ((a) != NULL) { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   532
	    PKIX_CHECK(PKIX_PL_Object_Duplicate\
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   533
			((PKIX_PL_Object *)(a), \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   534
			(PKIX_PL_Object **)(b), \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   535
			(c)), \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   536
			(d)); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   537
	} else { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   538
	    *(b) = (a); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   539
	} \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   540
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   541
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   542
/*
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   543
 * DEBUG MACROS
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   544
 *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   545
 * Each type has an associated debug flag, which can
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   546
 * be set on the compiler line using "-D<debugflag>". For convenience,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   547
 * "-DPKIX_DEBUGALL" turns on debug for all the components.
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   548
 *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   549
 * If a type's debug flag is defined, then its two associated macros
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   550
 * are defined: PKIX_type_DEBUG(expr) and PKIX_type_DEBUG_ARG(expr, arg),
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   551
 * which call PKIX_DEBUG(expr) and PKIX_DEBUG_ARG(expr, arg) respectively,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   552
 * which, in turn, enable standard and consistently formatted output.
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   553
 *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   554
 * If a type's debug flag is not defined, the two associated macros
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   555
 * are defined as a NO-OP. As such, any PKIX_type_DEBUG or PKIX_type_DEBUG_ARG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   556
 * macros for an undefined type will be stripped from the code during
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   557
 * pre-processing, thereby reducing code size.
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   558
 */
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   559
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   560
#ifdef PKIX_DEBUGALL
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   561
#define PKIX_REFCOUNTDEBUG                        1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   562
#define PKIX_MEMDEBUG                             1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   563
#define PKIX_MUTEXDEBUG                           1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   564
#define PKIX_OBJECTDEBUG                          1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   565
#define PKIX_STRINGDEBUG                          1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   566
#define PKIX_OIDDEBUG                             1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   567
#define PKIX_LISTDEBUG                            1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   568
#define PKIX_ERRORDEBUG                           1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   569
#define PKIX_BYTEARRAYDEBUG                       1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   570
#define PKIX_RWLOCKDEBUG                          1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   571
#define PKIX_BIGINTDEBUG                          1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   572
#define PKIX_HASHTABLEDEBUG                       1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   573
#define PKIX_X500NAMEDEBUG                        1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   574
#define PKIX_GENERALNAMEDEBUG                     1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   575
#define PKIX_PUBLICKEYDEBUG                       1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   576
#define PKIX_CERTDEBUG                            1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   577
#define PKIX_HTTPCLIENTDEBUG                      1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   578
#define PKIX_DATEDEBUG                            1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   579
#define PKIX_TRUSTANCHORDEBUG                     1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   580
#define PKIX_PROCESSINGPARAMSDEBUG                1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   581
#define PKIX_VALIDATEPARAMSDEBUG                  1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   582
#define PKIX_VALIDATERESULTDEBUG                  1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   583
#define PKIX_VALIDATEDEBUG                        1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   584
#define PKIX_CERTCHAINCHECKERDEBUG                1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   585
#define PKIX_REVOCATIONCHECKERDEBUG               1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   586
#define PKIX_CERTSELECTORDEBUG                    1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   587
#define PKIX_COMCERTSELPARAMSDEBUG                1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   588
#define PKIX_TARGETCERTCHECKERSTATEDEBUG          1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   589
#define PKIX_INITIALIZEPARAMSDEBUG                1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   590
#define PKIX_CERTBASICCONSTRAINTSDEBUG            1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   591
#define PKIX_CERTNAMECONSTRAINTSDEBUG             1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   592
#define PKIX_CERTNAMECONSTRAINTSCHECKERSTATEDEBUG 1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   593
#define PKIX_SUBJALTNAMECHECKERSTATEDEBUG         1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   594
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   595
#define PKIX_CERTPOLICYQUALIFIERDEBUG             1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   596
#define PKIX_CERTPOLICYINFODEBUG                  1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   597
#define PKIX_CERTPOLICYNODEDEBUG                  1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   598
#define PKIX_CERTPOLICYCHECKERSTATEDEBUG          1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   599
#define PKIX_LIFECYCLEDEBUG                       1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   600
#define PKIX_BASICCONSTRAINTSCHECKERSTATEDEBUG    1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   601
#define PKIX_CRLDEBUG                             1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   602
#define PKIX_CRLENTRYDEBUG                        1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   603
#define PKIX_CRLSELECTORDEBUG                     1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   604
#define PKIX_COMCRLSELPARAMSDEBUG                 1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   605
#define PKIX_CERTSTOREDEBUG                       1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   606
#define PKIX_COLLECTIONCERTSTORECONTEXTDEBUG      1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   607
#define PKIX_DEFAULTCRLCHECKERSTATEDEBUG          1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   608
#define PKIX_CERTPOLICYMAPDEBUG                   1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   609
#define PKIX_BUILDDEBUG                           1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   610
#define PKIX_BUILDRESULTDEBUG                     1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   611
#define PKIX_FORWARDBUILDERSTATEDEBUG             1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   612
#define PKIX_SIGNATURECHECKERSTATEDEBUG           1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   613
#define PKIX_USERDEFINEDMODULESDEBUG              1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   614
#define PKIX_CONTEXTDEBUG                         1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   615
#define PKIX_DEFAULTREVOCATIONCHECKERDEBUG        1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   616
#define PKIX_LDAPREQUESTDEBUG                     1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   617
#define PKIX_LDAPRESPONSEDEBUG                    1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   618
#define PKIX_LDAPCLIENTDEBUG                      1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   619
#define PKIX_LDAPDEFAULTCLIENTDEBUG               1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   620
#define PKIX_SOCKETDEBUG                          1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   621
#define PKIX_RESOURCELIMITSDEBUG                  1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   622
#define PKIX_LOGGERDEBUG                          1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   623
#define PKIX_MONITORLOCKDEBUG                     1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   624
#define PKIX_INFOACCESSDEBUG                      1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   625
#define PKIX_AIAMGRDEBUG                          1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   626
#define PKIX_OCSPCHECKERDEBUG                     1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   627
#define PKIX_OCSPREQUESTDEBUG                     1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   628
#define PKIX_OCSPRESPONSEDEBUG                    1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   629
#define PKIX_HTTPDEFAULTCLIENTDEBUG               1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   630
#define PKIX_HTTPCERTSTORECONTEXTDEBUG            1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   631
#define PKIX_VERIFYNODEDEBUG                      1
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   632
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   633
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   634
/*
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   635
 * XXX Both PKIX_DEBUG and PKIX_DEBUG_ARG currently use printf.
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   636
 * This needs to be replaced with Loggers.
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   637
 */
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   638
9193
8dfeedc50610e338ae32735c7bd01f4f51600fc9 Fix tinderbox(a debug line from libpkix was added to downloaded script): allow libpkix to print warnings only in debug mode and only into stderr.
alexei.volkov.bugs%sun.com
parents: 9132
diff changeset
   639
#ifdef DEBUG
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   640
#define PKIX_DEBUG(expr) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   641
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   642
	_PKIX_DEBUG_TRACE(pkixLoggersErrors, expr, PKIX_LOGGER_LEVEL_DEBUG); \
9193
8dfeedc50610e338ae32735c7bd01f4f51600fc9 Fix tinderbox(a debug line from libpkix was added to downloaded script): allow libpkix to print warnings only in debug mode and only into stderr.
alexei.volkov.bugs%sun.com
parents: 9132
diff changeset
   643
	(void) fprintf(stderr, "(%s: ", myFuncName); \
8dfeedc50610e338ae32735c7bd01f4f51600fc9 Fix tinderbox(a debug line from libpkix was added to downloaded script): allow libpkix to print warnings only in debug mode and only into stderr.
alexei.volkov.bugs%sun.com
parents: 9132
diff changeset
   644
        (void) fprintf(stderr, expr);                \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   645
    } while (0)
9193
8dfeedc50610e338ae32735c7bd01f4f51600fc9 Fix tinderbox(a debug line from libpkix was added to downloaded script): allow libpkix to print warnings only in debug mode and only into stderr.
alexei.volkov.bugs%sun.com
parents: 9132
diff changeset
   646
#else
8dfeedc50610e338ae32735c7bd01f4f51600fc9 Fix tinderbox(a debug line from libpkix was added to downloaded script): allow libpkix to print warnings only in debug mode and only into stderr.
alexei.volkov.bugs%sun.com
parents: 9132
diff changeset
   647
#define PKIX_DEBUG(expr)
8dfeedc50610e338ae32735c7bd01f4f51600fc9 Fix tinderbox(a debug line from libpkix was added to downloaded script): allow libpkix to print warnings only in debug mode and only into stderr.
alexei.volkov.bugs%sun.com
parents: 9132
diff changeset
   648
#endif
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   649
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   650
/* Logging doesn't support DEBUG with ARG: cannot convert control and arg */
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   651
#define PKIX_DEBUG_ARG(expr, arg) \
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   652
    do { \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   653
	(void) printf("(%s: ", myFuncName); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   654
	(void) printf(expr, arg); \
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
   655
    } while (0)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   656
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   657
#if PKIX_FATALDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   658
#define PKIX_FATAL_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   659
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   660
#define PKIX_FATAL_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   661
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   662
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   663
#define PKIX_FATAL_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   664
#define PKIX_FATAL_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   665
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   666
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   667
#if PKIX_REFCOUNTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   668
#define PKIX_REF_COUNT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   669
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   670
#define PKIX_REF_COUNT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   671
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   672
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   673
#define PKIX_REF_COUNT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   674
#define PKIX_REF_COUNT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   675
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   676
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   677
#if PKIX_MEMDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   678
#define PKIX_MEM_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   679
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   680
#define PKIX_MEM_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   681
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   682
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   683
#define PKIX_MEM_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   684
#define PKIX_MEM_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   685
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   686
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   687
#if PKIX_MUTEXDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   688
#define PKIX_MUTEX_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   689
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   690
#define PKIX_MUTEX_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   691
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   692
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   693
#define PKIX_MUTEX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   694
#define PKIX_MUTEX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   695
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   696
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   697
#if PKIX_OBJECTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   698
#define PKIX_OBJECT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   699
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   700
#define PKIX_OBJECT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   701
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   702
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   703
#define PKIX_OBJECT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   704
#define PKIX_OBJECT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   705
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   706
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   707
#if PKIX_ERRORDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   708
#define PKIX_ERROR_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   709
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   710
#define PKIX_ERROR_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   711
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   712
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   713
#define PKIX_ERROR_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   714
#define PKIX_ERROR_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   715
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   716
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   717
#if PKIX_STRINGDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   718
#define PKIX_STRING_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   719
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   720
#define PKIX_STRING_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   721
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   722
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   723
#define PKIX_STRING_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   724
#define PKIX_STRING_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   725
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   726
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   727
#if PKIX_OIDDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   728
#define PKIX_OID_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   729
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   730
#define PKIX_OID_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   731
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   732
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   733
#define PKIX_OID_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   734
#define PKIX_OID_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   735
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   736
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   737
#if PKIX_LISTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   738
#define PKIX_LIST_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   739
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   740
#define PKIX_LIST_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   741
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   742
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   743
#define PKIX_LIST_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   744
#define PKIX_LIST_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   745
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   746
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   747
#if PKIX_RWLOCKDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   748
#define PKIX_RWLOCK_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   749
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   750
#define PKIX_RWLOCK_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   751
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   752
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   753
#define PKIX_RWLOCK_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   754
#define PKIX_RWLOCK_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   755
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   756
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   757
#if PKIX_BYTEARRAYDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   758
#define PKIX_BYTEARRAY_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   759
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   760
#define PKIX_BYTEARRAY_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   761
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   762
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   763
#define PKIX_BYTEARRAY_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   764
#define PKIX_BYTEARRAY_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   765
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   766
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   767
#if PKIX_HASHTABLEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   768
#define PKIX_HASHTABLE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   769
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   770
#define PKIX_HASHTABLE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   771
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   772
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   773
#define PKIX_HASHTABLE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   774
#define PKIX_HASHTABLE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   775
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   776
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   777
#if PKIX_X500NAMEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   778
#define PKIX_X500NAME_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   779
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   780
#define PKIX_X500NAME_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   781
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   782
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   783
#define PKIX_X500NAME_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   784
#define PKIX_X500NAME_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   785
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   786
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   787
#if PKIX_GENERALNAMEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   788
#define PKIX_GENERALNAME_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   789
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   790
#define PKIX_GENERALNAME_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   791
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   792
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   793
#define PKIX_GENERALNAME_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   794
#define PKIX_GENERALNAME_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   795
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   796
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   797
#if PKIX_PUBLICKEYDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   798
#define PKIX_PUBLICKEY_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   799
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   800
#define PKIX_PUBLICKEY_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   801
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   802
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   803
#define PKIX_PUBLICKEY_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   804
#define PKIX_PUBLICKEY_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   805
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   806
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   807
#if PKIX_CERTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   808
#define PKIX_CERT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   809
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   810
#define PKIX_CERT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   811
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   812
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   813
#define PKIX_CERT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   814
#define PKIX_CERT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   815
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   816
9219
4634889c442c5641ae6ef7a80761140151f44d85 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
alexei.volkov.bugs%sun.com
parents: 9193
diff changeset
   817
#if PKIX_CRLDPDEBUG
4634889c442c5641ae6ef7a80761140151f44d85 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
alexei.volkov.bugs%sun.com
parents: 9193
diff changeset
   818
#define PKIX_CRLDP_DEBUG(expr) \
4634889c442c5641ae6ef7a80761140151f44d85 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
alexei.volkov.bugs%sun.com
parents: 9193
diff changeset
   819
        PKIX_DEBUG(expr)
4634889c442c5641ae6ef7a80761140151f44d85 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
alexei.volkov.bugs%sun.com
parents: 9193
diff changeset
   820
#define PKIX_CRLDP_DEBUG_ARG(expr, arg) \
4634889c442c5641ae6ef7a80761140151f44d85 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
alexei.volkov.bugs%sun.com
parents: 9193
diff changeset
   821
        PKIX_DEBUG_ARG(expr, arg)
4634889c442c5641ae6ef7a80761140151f44d85 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
alexei.volkov.bugs%sun.com
parents: 9193
diff changeset
   822
#else
4634889c442c5641ae6ef7a80761140151f44d85 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
alexei.volkov.bugs%sun.com
parents: 9193
diff changeset
   823
#define PKIX_CRLDP_DEBUG(expr)
4634889c442c5641ae6ef7a80761140151f44d85 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
alexei.volkov.bugs%sun.com
parents: 9193
diff changeset
   824
#define PKIX_CRLDP_DEBUG_ARG(expr, arg)
4634889c442c5641ae6ef7a80761140151f44d85 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
alexei.volkov.bugs%sun.com
parents: 9193
diff changeset
   825
#endif
4634889c442c5641ae6ef7a80761140151f44d85 321755 - (CRLDP) implement crlDistributionPoint extension in libPKIX. Patch partially provided by Julien. r=nelson.
alexei.volkov.bugs%sun.com
parents: 9193
diff changeset
   826
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   827
#if PKIX_HTTPCLIENTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   828
#define PKIX_HTTPCLIENT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   829
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   830
#define PKIX_HTTPCLIENT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   831
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   832
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   833
#define PKIX_HTTPCLIENT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   834
#define PKIX_HTTPCLIENT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   835
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   836
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   837
#if PKIX_BIGINTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   838
#define PKIX_BIGINT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   839
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   840
#define PKIX_BIGINT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   841
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   842
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   843
#define PKIX_BIGINT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   844
#define PKIX_BIGINT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   845
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   846
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   847
#if PKIX_DATEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   848
#define PKIX_DATE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   849
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   850
#define PKIX_DATE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   851
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   852
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   853
#define PKIX_DATE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   854
#define PKIX_DATE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   855
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   856
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   857
#if PKIX_TRUSTANCHORDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   858
#define PKIX_TRUSTANCHOR_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   859
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   860
#define PKIX_TRUSTANCHOR_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   861
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   862
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   863
#define PKIX_TRUSTANCHOR_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   864
#define PKIX_TRUSTANCHOR_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   865
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   866
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   867
#if PKIX_PROCESSINGPARAMSDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   868
#define PKIX_PROCESSINGPARAMS_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   869
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   870
#define PKIX_PROCESSINGPARAMS_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   871
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   872
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   873
#define PKIX_PROCESSINGPARAMS_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   874
#define PKIX_PROCESSINGPARAMS_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   875
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   876
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   877
#if PKIX_VALIDATEPARAMSDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   878
#define PKIX_VALIDATEPARAMS_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   879
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   880
#define PKIX_VALIDATEPARAMS_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   881
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   882
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   883
#define PKIX_VALIDATEPARAMS_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   884
#define PKIX_VALIDATEPARAMS_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   885
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   886
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   887
#if PKIX_VALIDATERESULTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   888
#define PKIX_VALIDATERESULT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   889
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   890
#define PKIX_VALIDATERESULT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   891
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   892
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   893
#define PKIX_VALIDATERESULT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   894
#define PKIX_VALIDATERESULT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   895
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   896
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   897
#if PKIX_VALIDATEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   898
#define PKIX_VALIDATE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   899
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   900
#define PKIX_VALIDATE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   901
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   902
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   903
#define PKIX_VALIDATE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   904
#define PKIX_VALIDATE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   905
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   906
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   907
#if PKIX_BUILDDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   908
#define PKIX_BUILD_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   909
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   910
#define PKIX_BUILD_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   911
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   912
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   913
#define PKIX_BUILD_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   914
#define PKIX_BUILD_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   915
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   916
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   917
#if PKIX_CERTCHAINCHECKERDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   918
#define PKIX_CERTCHAINCHECKER_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   919
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   920
#define PKIX_CERTCHAINCHECKER_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   921
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   922
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   923
#define PKIX_CERTCHAINCHECKER_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   924
#define PKIX_CERTCHAINCHECKER_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   925
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   926
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   927
#if PKIX_REVOCATIONCHECKERDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   928
#define PKIX_REVOCATIONCHECKER_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   929
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   930
#define PKIX_REVOCATIONCHECKER_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   931
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   932
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   933
#define PKIX_REVOCATIONCHECKER_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   934
#define PKIX_REVOCATIONCHECKER_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   935
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   936
8798
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
   937
#if PKIX_REVOCATIONMETHODDEBUG
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
   938
#define PKIX_REVOCATIONMETHOD_DEBUG(expr) \
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
   939
        PKIX_DEBUG(expr)
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
   940
#define PKIX_REVOCATIONMETHOD_DEBUG_ARG(expr, arg) \
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
   941
        PKIX_DEBUG_ARG(expr, arg)
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
   942
#else
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
   943
#define PKIX_REVOCATIONMETHOD_DEBUG(expr)
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
   944
#define PKIX_REVOCATIONMETHOD_DEBUG_ARG(expr, arg)
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
   945
#endif
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
   946
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   947
#if PKIX_CERTSELECTORDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   948
#define PKIX_CERTSELECTOR_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   949
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   950
#define PKIX_CERTSELECTOR_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   951
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   952
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   953
#define PKIX_CERTSELECTOR_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   954
#define PKIX_CERTSELECTOR_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   955
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   956
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   957
#if PKIX_COMCERTSELPARAMSDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   958
#define PKIX_COMCERTSELPARAMS_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   959
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   960
#define PKIX_COMCERTSELPARAMS_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   961
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   962
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   963
#define PKIX_COMCERTSELPARAMS_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   964
#define PKIX_COMCERTSELPARAMS_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   965
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   966
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   967
#if PKIX_TARGETCERTCHECKERSTATEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   968
#define PKIX_TARGETCERTCHECKERSTATE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   969
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   970
#define PKIX_TARGETCERTCHECKERSTATE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   971
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   972
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   973
#define PKIX_TARGETCERTCHECKERSTATE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   974
#define PKIX_TARGETCERTCHECKERSTATE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   975
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   976
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   977
#if PKIX_BASICCONSTRAINTSCHECKERSTATEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   978
#define PKIX_BASICCONSTRAINTSCHECKERSTATE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   979
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   980
#define PKIX_BASICCONSTRAINTSCHECKERSTATE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   981
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   982
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   983
#define PKIX_BASICCONSTRAINTSCHECKERSTATE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   984
#define PKIX_BASICCONSTRAINTSCHECKERSTATE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   985
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   986
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   987
#if PKIX_INITIALIZEPARAMSDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   988
#define PKIX_INITIALIZEPARAMS_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   989
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   990
#define PKIX_INITIALIZEPARAMS_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   991
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   992
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   993
#define PKIX_INITIALIZEPARAMS_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   994
#define PKIX_INITIALIZEPARAMS_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   995
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   996
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   997
#if PKIX_CERTBASICCONSTRAINTSDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   998
#define PKIX_CERTBASICCONSTRAINTS_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
   999
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1000
#define PKIX_CERTBASICCONSTRAINTS_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1001
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1002
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1003
#define PKIX_CERTBASICCONSTRAINTS_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1004
#define PKIX_CERTBASICCONSTRAINTS_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1005
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1006
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1007
#if PKIX_CERTNAMECONSTRAINTSDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1008
#define PKIX_CERTNAMECONSTRAINTS_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1009
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1010
#define PKIX_CERTNAMECONSTRAINTS_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1011
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1012
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1013
#define PKIX_CERTNAMECONSTRAINTS_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1014
#define PKIX_CERTNAMECONSTRAINTS_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1015
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1016
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1017
#if PKIX_CERTNAMECONSTRAINTSCHECKERSTATEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1018
#define PKIX_CERTNAMECONSTRAINTSCHECKERSTATE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1019
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1020
#define PKIX_CERTNAMECONSTRAINTSCHECKERSTATE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1021
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1022
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1023
#define PKIX_CERTNAMECONSTRAINTSCHECKERSTATE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1024
#define PKIX_CERTNAMECONSTRAINTSCHECKERSTATE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1025
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1026
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1027
#if PKIX_SUBJALTNAMECHECKERSTATEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1028
#define PKIX_SUBJALTNAMECHECKERSTATE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1029
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1030
#define PKIX_SUBJALTNAMECHECKERSTATE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1031
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1032
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1033
#define PKIX_SUBJALTNAMECHECKERSTATE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1034
#define PKIX_SUBJALTNAMECHECKERSTATE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1035
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1036
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1037
#if PKIX_CERTPOLICYQUALIFIERDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1038
#define PKIX_CERTPOLICYQUALIFIER_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1039
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1040
#define PKIX_CERTPOLICYQUALIFIER_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1041
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1042
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1043
#define PKIX_CERTPOLICYQUALIFIER_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1044
#define PKIX_CERTPOLICYQUALIFIER_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1045
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1046
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1047
#if PKIX_CERTPOLICYINFODEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1048
#define PKIX_CERTPOLICYINFO_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1049
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1050
#define PKIX_CERTPOLICYINFO_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1051
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1052
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1053
#define PKIX_CERTPOLICYINFO_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1054
#define PKIX_CERTPOLICYINFO_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1055
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1056
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1057
#if PKIX_CERTPOLICYNODEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1058
#define PKIX_CERTPOLICYNODE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1059
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1060
#define PKIX_CERTPOLICYNODE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1061
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1062
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1063
#define PKIX_CERTPOLICYNODE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1064
#define PKIX_CERTPOLICYNODE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1065
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1066
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1067
#if PKIX_CERTPOLICYCHECKERSTATEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1068
#define PKIX_CERTPOLICYCHECKERSTATE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1069
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1070
#define PKIX_CERTPOLICYCHECKERSTATE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1071
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1072
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1073
#define PKIX_CERTPOLICYCHECKERSTATE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1074
#define PKIX_CERTPOLICYCHECKERSTATE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1075
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1076
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1077
#if PKIX_LIFECYCLEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1078
#define PKIX_LIFECYCLE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1079
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1080
#define PKIX_LIFECYCLE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1081
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1082
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1083
#define PKIX_LIFECYCLE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1084
#define PKIX_LIFECYCLE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1085
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1086
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1087
#if PKIX_BASICCONSTRAINTSCHECKERSTATEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1088
#define PKIX_BASICCONSTRAINTSCHECKERSTATE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1089
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1090
#define PKIX_BASICCONSTRAINTSCHECKERSTATE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1091
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1092
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1093
#define PKIX_BASICCONSTRAINTSCHECKERSTATE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1094
#define PKIX_BASICCONSTRAINTSCHECKERSTATE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1095
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1096
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1097
#if PKIX_CRLDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1098
#define PKIX_CRL_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1099
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1100
#define PKIX_CRL_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1101
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1102
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1103
#define PKIX_CRL_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1104
#define PKIX_CRL_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1105
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1106
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1107
#if PKIX_CRLENTRYDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1108
#define PKIX_CRLENTRY_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1109
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1110
#define PKIX_CRLENTRY_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1111
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1112
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1113
#define PKIX_CRLENTRY_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1114
#define PKIX_CRLENTRY_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1115
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1116
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1117
#if PKIX_CRLSELECTORDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1118
#define PKIX_CRLSELECTOR_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1119
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1120
#define PKIX_CRLSELECTOR_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1121
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1122
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1123
#define PKIX_CRLSELECTOR_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1124
#define PKIX_CRLSELECTOR_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1125
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1126
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1127
#if PKIX_COMCRLSELPARAMSDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1128
#define PKIX_COMCRLSELPARAMS_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1129
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1130
#define PKIX_COMCRLSELPARAMS_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1131
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1132
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1133
#define PKIX_COMCRLSELPARAMS_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1134
#define PKIX_COMCRLSELPARAMS_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1135
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1136
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1137
#if PKIX_CERTSTOREDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1138
#define PKIX_CERTSTORE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1139
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1140
#define PKIX_CERTSTORE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1141
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1142
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1143
#define PKIX_CERTSTORE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1144
#define PKIX_CERTSTORE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1145
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1146
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1147
#if PKIX_COLLECTIONCERTSTORECONTEXTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1148
#define PKIX_COLLECTIONCERTSTORECONTEXT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1149
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1150
#define PKIX_COLLECTIONCERTSTORECONTEXT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1151
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1152
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1153
#define PKIX_COLLECTIONCERTSTORECONTEXT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1154
#define PKIX_COLLECTIONCERTSTORECONTEXT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1155
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1156
8798
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
  1157
#if PKIX_CRLCHECKERDEBUG
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
  1158
#define PKIX_CRLCHECKER_DEBUG(expr) \
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1159
        PKIX_DEBUG(expr)
8798
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
  1160
#define PKIX_CRLCHECKER_DEBUG_ARG(expr, arg) \
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1161
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1162
#else
8798
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
  1163
#define PKIX_CRLCHECKER_DEBUG(expr)
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
  1164
#define PKIX_CRLCHECKER_DEBUG_ARG(expr, arg)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1165
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1166
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1167
#if PKIX_CERTPOLICYMAPDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1168
#define PKIX_CERTPOLICYMAP_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1169
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1170
#define PKIX_CERTPOLICYMAP_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1171
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1172
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1173
#define PKIX_CERTPOLICYMAP_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1174
#define PKIX_CERTPOLICYMAP_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1175
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1176
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1177
#if PKIX_BUILDRESULTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1178
#define PKIX_BUILDRESULT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1179
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1180
#define PKIX_BUILDRESULT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1181
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1182
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1183
#define PKIX_BUILDRESULT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1184
#define PKIX_BUILDRESULT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1185
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1186
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1187
#if PKIX_FORWARDBUILDERSTATEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1188
#define PKIX_FORWARDBUILDERSTATE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1189
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1190
#define PKIX_FORWARDBUILDERSTATE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1191
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1192
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1193
#define PKIX_FORWARDBUILDERSTATE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1194
#define PKIX_FORWARDBUILDERSTATE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1195
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1196
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1197
#if PKIX_SIGNATURECHECKERSTATEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1198
#define PKIX_SIGNATURECHECKERSTATE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1199
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1200
#define PKIX_SIGNATURECHECKERSTATE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1201
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1202
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1203
#define PKIX_SIGNATURECHECKERSTATE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1204
#define PKIX_SIGNATURECHECKERSTATE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1205
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1206
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1207
#if PKIX_USERDEFINEDMODULESDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1208
#define PKIX_USERDEFINEDMODULES_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1209
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1210
#define PKIX_USERDEFINEDMODULES_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1211
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1212
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1213
#define PKIX_USERDEFINEDMODULES_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1214
#define PKIX_USERDEFINEDMODULES_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1215
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1216
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1217
#if PKIX_CONTEXTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1218
#define PKIX_CONTEXT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1219
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1220
#define PKIX_CONTEXT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1221
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1222
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1223
#define PKIX_CONTEXT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1224
#define PKIX_CONTEXT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1225
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1226
8798
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
  1227
#if PKIX_REVOCATIONCHECKERDEBUG
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
  1228
#define PKIX_REVOCATIONCHECKER_DEBUG(expr) \
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1229
        PKIX_DEBUG(expr)
8798
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
  1230
#define PKIX_REVOCATIONCHECKER_DEBUG_ARG(expr, arg) \
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1231
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1232
#else
8798
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
  1233
#define PKIX_REVOCATIONCHECKER_DEBUG(expr)
ea7ecdb776a736c25032f21f353a57b5b85aecdf 205434 - Fully implement new libPKIX cert verification API from bug 294531. r=nelson
alexei.volkov.bugs%sun.com
parents: 8770
diff changeset
  1234
#define PKIX_REVOCATIONCHECKER_DEBUG_ARG(expr, arg)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1235
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1236
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1237
#if PKIX_LDAPREQUESTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1238
#define PKIX_LDAPREQUEST_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1239
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1240
#define PKIX_LDAPREQUEST_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1241
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1242
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1243
#define PKIX_LDAPREQUEST_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1244
#define PKIX_LDAPREQUEST_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1245
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1246
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1247
#if PKIX_LDAPRESPONSEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1248
#define PKIX_LDAPRESPONSE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1249
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1250
#define PKIX_LDAPRESPONSE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1251
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1252
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1253
#define PKIX_LDAPRESPONSE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1254
#define PKIX_LDAPRESPONSE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1255
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1256
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1257
#if PKIX_LDAPCLIENTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1258
#define PKIX_LDAPCLIENT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1259
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1260
#define PKIX_LDAPCLIENT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1261
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1262
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1263
#define PKIX_LDAPCLIENT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1264
#define PKIX_LDAPCLIENT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1265
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1266
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1267
#if PKIX_LDAPDEFAULTCLIENTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1268
#define PKIX_LDAPDEFAULTCLIENT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1269
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1270
#define PKIX_LDAPDEFAULTCLIENT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1271
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1272
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1273
#define PKIX_LDAPDEFAULTCLIENT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1274
#define PKIX_LDAPDEFAULTCLIENT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1275
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1276
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1277
#if PKIX_SOCKETDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1278
#define PKIX_SOCKET_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1279
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1280
#define PKIX_SOCKET_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1281
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1282
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1283
#define PKIX_SOCKET_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1284
#define PKIX_SOCKET_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1285
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1286
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1287
#if PKIX_RESOURCELIMITSDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1288
#define PKIX_RESOURCELIMITS_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1289
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1290
#define PKIX_RESOURCELIMITS_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1291
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1292
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1293
#define PKIX_RESOURCELIMITS_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1294
#define PKIX_RESOURCELIMITS_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1295
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1296
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1297
#if PKIX_LOGGERDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1298
#define PKIX_LOGGER_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1299
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1300
#define PKIX_LOGGER_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1301
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1302
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1303
#define PKIX_LOGGER_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1304
#define PKIX_LOGGER_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1305
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1306
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1307
#if PKIX_MONITORLOCKDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1308
#define PKIX_MONITORLOCK_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1309
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1310
#define PKIX_MONITORLOCK_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1311
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1312
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1313
#define PKIX_MONITORLOCK_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1314
#define PKIX_MONITORLOCK_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1315
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1316
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1317
#if PKIX_INFOACCESSDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1318
#define PKIX_INFOACCESS_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1319
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1320
#define PKIX_INFOACCESS_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1321
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1322
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1323
#define PKIX_INFOACCESS_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1324
#define PKIX_INFOACCESS_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1325
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1326
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1327
#if PKIX_AIAMGRDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1328
#define PKIX_AIAMGR_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1329
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1330
#define PKIX_AIAMGR_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1331
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1332
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1333
#define PKIX_AIAMGR_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1334
#define PKIX_AIAMGR_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1335
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1336
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1337
#if PKIX_OCSPCHECKERDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1338
#define PKIX_OCSPCHECKER_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1339
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1340
#define PKIX_OCSPCHECKER_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1341
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1342
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1343
#define PKIX_OCSPCHECKER_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1344
#define PKIX_OCSPCHECKER_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1345
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1346
8385
f319962087c5d362e6263e26d26a5e93e0d286d5 Bug 375019, Cache-enable pkix_OcspChecker_Check
kaie%kuix.de
parents: 8294
diff changeset
  1347
#if PKIX_OCSPCERTIDDEBUG
f319962087c5d362e6263e26d26a5e93e0d286d5 Bug 375019, Cache-enable pkix_OcspChecker_Check
kaie%kuix.de
parents: 8294
diff changeset
  1348
#define PKIX_OCSPCERTID_DEBUG(expr) \
f319962087c5d362e6263e26d26a5e93e0d286d5 Bug 375019, Cache-enable pkix_OcspChecker_Check
kaie%kuix.de
parents: 8294
diff changeset
  1349
        PKIX_DEBUG(expr)
f319962087c5d362e6263e26d26a5e93e0d286d5 Bug 375019, Cache-enable pkix_OcspChecker_Check
kaie%kuix.de
parents: 8294
diff changeset
  1350
#define PKIX_OCSPCERTID_DEBUG_ARG(expr, arg) \
f319962087c5d362e6263e26d26a5e93e0d286d5 Bug 375019, Cache-enable pkix_OcspChecker_Check
kaie%kuix.de
parents: 8294
diff changeset
  1351
        PKIX_DEBUG_ARG(expr, arg)
f319962087c5d362e6263e26d26a5e93e0d286d5 Bug 375019, Cache-enable pkix_OcspChecker_Check
kaie%kuix.de
parents: 8294
diff changeset
  1352
#else
f319962087c5d362e6263e26d26a5e93e0d286d5 Bug 375019, Cache-enable pkix_OcspChecker_Check
kaie%kuix.de
parents: 8294
diff changeset
  1353
#define PKIX_OCSPCERTID_DEBUG(expr)
f319962087c5d362e6263e26d26a5e93e0d286d5 Bug 375019, Cache-enable pkix_OcspChecker_Check
kaie%kuix.de
parents: 8294
diff changeset
  1354
#define PKIX_OCSPCERTID_DEBUG_ARG(expr, arg)
f319962087c5d362e6263e26d26a5e93e0d286d5 Bug 375019, Cache-enable pkix_OcspChecker_Check
kaie%kuix.de
parents: 8294
diff changeset
  1355
#endif
f319962087c5d362e6263e26d26a5e93e0d286d5 Bug 375019, Cache-enable pkix_OcspChecker_Check
kaie%kuix.de
parents: 8294
diff changeset
  1356
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1357
#if PKIX_OCSPREQUESTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1358
#define PKIX_OCSPREQUEST_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1359
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1360
#define PKIX_OCSPREQUEST_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1361
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1362
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1363
#define PKIX_OCSPREQUEST_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1364
#define PKIX_OCSPREQUEST_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1365
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1366
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1367
#if PKIX_OCSPRESPONSEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1368
#define PKIX_OCSPRESPONSE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1369
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1370
#define PKIX_OCSPRESPONSE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1371
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1372
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1373
#define PKIX_OCSPRESPONSE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1374
#define PKIX_OCSPRESPONSE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1375
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1376
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1377
#if PKIX_HTTPDEFAULTCLIENTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1378
#define PKIX_HTTPDEFAULTCLIENT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1379
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1380
#define PKIX_HTTPDEFAULTCLIENT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1381
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1382
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1383
#define PKIX_HTTPDEFAULTCLIENT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1384
#define PKIX_HTTPDEFAULTCLIENT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1385
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1386
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1387
#if PKIX_HTTPCERTSTORECONTEXTDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1388
#define PKIX_HTTPCERTSTORECONTEXT_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1389
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1390
#define PKIX_HTTPCERTSTORECONTEXT_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1391
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1392
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1393
#define PKIX_HTTPCERTSTORECONTEXT_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1394
#define PKIX_HTTPCERTSTORECONTEXT_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1395
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1396
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1397
#if PKIX_VERIFYNODEDEBUG
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1398
#define PKIX_VERIFYNODE_DEBUG(expr) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1399
        PKIX_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1400
#define PKIX_VERIFYNODE_DEBUG_ARG(expr, arg) \
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1401
        PKIX_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1402
#else
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1403
#define PKIX_VERIFYNODE_DEBUG(expr)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1404
#define PKIX_VERIFYNODE_DEBUG_ARG(expr, arg)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1405
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1406
8287
305c2affa0c01986a9f49bdbb89edb9f51f91935 397825 - libpkix: ifdef code that uses user object types. r=nelson
alexei.volkov.bugs%sun.com
parents: 8247
diff changeset
  1407
#if PKIX_EKUCHECKER
305c2affa0c01986a9f49bdbb89edb9f51f91935 397825 - libpkix: ifdef code that uses user object types. r=nelson
alexei.volkov.bugs%sun.com
parents: 8247
diff changeset
  1408
#define PKIX_EKUCHECKER_DEBUG(expr) \
305c2affa0c01986a9f49bdbb89edb9f51f91935 397825 - libpkix: ifdef code that uses user object types. r=nelson
alexei.volkov.bugs%sun.com
parents: 8247
diff changeset
  1409
        PKIX_DEBUG(expr)
305c2affa0c01986a9f49bdbb89edb9f51f91935 397825 - libpkix: ifdef code that uses user object types. r=nelson
alexei.volkov.bugs%sun.com
parents: 8247
diff changeset
  1410
#define PKIX_EKUCHECKER_DEBUG_ARG(expr, arg) \
305c2affa0c01986a9f49bdbb89edb9f51f91935 397825 - libpkix: ifdef code that uses user object types. r=nelson
alexei.volkov.bugs%sun.com
parents: 8247
diff changeset
  1411
        PKIX_DEBUG_ARG(expr, arg)
305c2affa0c01986a9f49bdbb89edb9f51f91935 397825 - libpkix: ifdef code that uses user object types. r=nelson
alexei.volkov.bugs%sun.com
parents: 8247
diff changeset
  1412
#else
305c2affa0c01986a9f49bdbb89edb9f51f91935 397825 - libpkix: ifdef code that uses user object types. r=nelson
alexei.volkov.bugs%sun.com
parents: 8247
diff changeset
  1413
#define PKIX_EKUCHECKER_DEBUG(expr)
305c2affa0c01986a9f49bdbb89edb9f51f91935 397825 - libpkix: ifdef code that uses user object types. r=nelson
alexei.volkov.bugs%sun.com
parents: 8247
diff changeset
  1414
#define PKIX_EKUCHECKER_DEBUG_ARG(expr, arg)
305c2affa0c01986a9f49bdbb89edb9f51f91935 397825 - libpkix: ifdef code that uses user object types. r=nelson
alexei.volkov.bugs%sun.com
parents: 8247
diff changeset
  1415
#endif
305c2affa0c01986a9f49bdbb89edb9f51f91935 397825 - libpkix: ifdef code that uses user object types. r=nelson
alexei.volkov.bugs%sun.com
parents: 8247
diff changeset
  1416
8014
7a6cf3e84a933cd6f750de98a55138c941ab89a6 390888 - CERT_Verify* functions should be able to use libPKIX. r=nelson
alexei.volkov.bugs%sun.com
parents: 7986
diff changeset
  1417
#if PKIX_CERTVFYPKIXDEBUG
7a6cf3e84a933cd6f750de98a55138c941ab89a6 390888 - CERT_Verify* functions should be able to use libPKIX. r=nelson
alexei.volkov.bugs%sun.com
parents: 7986
diff changeset
  1418
#define PKIX_CERTVFYPKIX_DEBUG(expr) \
7a6cf3e84a933cd6f750de98a55138c941ab89a6 390888 - CERT_Verify* functions should be able to use libPKIX. r=nelson
alexei.volkov.bugs%sun.com
parents: 7986
diff changeset
  1419
        PKIX_DEBUG(expr)
7a6cf3e84a933cd6f750de98a55138c941ab89a6 390888 - CERT_Verify* functions should be able to use libPKIX. r=nelson
alexei.volkov.bugs%sun.com
parents: 7986
diff changeset
  1420
#define PKIX_CERTVFYPKIX_DEBUG_ARG(expr, arg) \
7a6cf3e84a933cd6f750de98a55138c941ab89a6 390888 - CERT_Verify* functions should be able to use libPKIX. r=nelson
alexei.volkov.bugs%sun.com
parents: 7986
diff changeset
  1421
        PKIX_DEBUG_ARG(expr, arg)
7a6cf3e84a933cd6f750de98a55138c941ab89a6 390888 - CERT_Verify* functions should be able to use libPKIX. r=nelson
alexei.volkov.bugs%sun.com
parents: 7986
diff changeset
  1422
#else
7a6cf3e84a933cd6f750de98a55138c941ab89a6 390888 - CERT_Verify* functions should be able to use libPKIX. r=nelson
alexei.volkov.bugs%sun.com
parents: 7986
diff changeset
  1423
#define PKIX_CERTVFYPKIX_DEBUG(expr)
7a6cf3e84a933cd6f750de98a55138c941ab89a6 390888 - CERT_Verify* functions should be able to use libPKIX. r=nelson
alexei.volkov.bugs%sun.com
parents: 7986
diff changeset
  1424
#define PKIX_CERTVFYPKIX_DEBUG_ARG(expr, arg)
7a6cf3e84a933cd6f750de98a55138c941ab89a6 390888 - CERT_Verify* functions should be able to use libPKIX. r=nelson
alexei.volkov.bugs%sun.com
parents: 7986
diff changeset
  1425
#endif
7a6cf3e84a933cd6f750de98a55138c941ab89a6 390888 - CERT_Verify* functions should be able to use libPKIX. r=nelson
alexei.volkov.bugs%sun.com
parents: 7986
diff changeset
  1426
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1427
/*
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1428
 * All object types register themselves with the system using a
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1429
 * pkix_ClassTable_Entry, which consists of a set of functions for that
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1430
 * type and an ASCII string (char *) which is used by the default
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1431
 * ToStringCallback (if necessary). System types register themselves directly
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1432
 * when their respective PKIX_"type"_RegisterSelf functions are called.
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1433
 * User-defined types can be registered using PKIX_PL_Object_RegisterType.
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1434
 * (see comments in pkix_pl_system.h)
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1435
 */
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1436
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1437
typedef struct pkix_ClassTable_EntryStruct pkix_ClassTable_Entry;
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1438
struct pkix_ClassTable_EntryStruct {
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1439
        char *description;
11521
0a59f0bce2ea7089bce03a54ca442dc323c6e995 Bug 1182667 - Enable warnings as errors, r=rrelyea
Martin Thomson <martin.thomson@gmail.com>
parents: 11516
diff changeset
  1440
        PKIX_UInt32 objCounter;
0a59f0bce2ea7089bce03a54ca442dc323c6e995 Bug 1182667 - Enable warnings as errors, r=rrelyea
Martin Thomson <martin.thomson@gmail.com>
parents: 11516
diff changeset
  1441
        PKIX_UInt32 typeObjectSize;
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1442
        PKIX_PL_DestructorCallback destructor;
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1443
        PKIX_PL_EqualsCallback equalsFunction;
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1444
        PKIX_PL_HashcodeCallback hashcodeFunction;
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1445
        PKIX_PL_ToStringCallback toStringFunction;
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1446
        PKIX_PL_ComparatorCallback comparator;
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1447
        PKIX_PL_DuplicateCallback duplicateFunction;
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1448
};
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1449
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1450
/*
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
  1451
 * PKIX_ERRORCLASSNAMES is an array of strings, with each string holding a
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1452
 * descriptive name for an error code. This is used by the default
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1453
 * PKIX_PL_Error_ToString function.
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1454
 */
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
  1455
extern const char *PKIX_ERRORCLASSNAMES[PKIX_NUMERRORCLASSES];
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1456
8534
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
  1457
#define MAX_STACK_DEPTH         1000
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
  1458
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
  1459
extern PRLogModuleInfo *pkixLog;
25f51a3f1bb1f72f0dc7eae304c1bd51ee2e7080 397832 - libpkix leaks memory if a macro calls a function that returns an error. Object leak test. r=nelson
alexei.volkov.bugs%sun.com
parents: 8494
diff changeset
  1460
11804
5d9f8b809e6f7020529ba1345b64e36f61994c8d Bug 1180095: Use PR_INT64() or PR_UINT64() instead of LL_INIT().
Wan-Teh Chang <wtc@google.com>
parents: 11521
diff changeset
  1461
#define PKIX_MAGIC_HEADER           PR_UINT64(0xFEEDC0FFEEFACADE)
5d9f8b809e6f7020529ba1345b64e36f61994c8d Bug 1180095: Use PR_INT64() or PR_UINT64() instead of LL_INIT().
Wan-Teh Chang <wtc@google.com>
parents: 11521
diff changeset
  1462
#define PKIX_MAGIC_HEADER_DESTROYED PR_UINT64(0xBAADF00DDEADBEEF)
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1463
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1464
/* see source file for function documentation */
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1465
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1466
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1467
pkix_IsCertSelfIssued(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1468
        PKIX_PL_Cert *cert,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1469
        PKIX_Boolean *pSelfIssued,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1470
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1471
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1472
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1473
pkix_Throw(
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
  1474
        PKIX_ERRORCLASS errClass,
7986
8cd6b3c61ab932656a879742f9184f3cc9469a87 Bug 389343 - Greatly reduce libPKIX bloat by turning macros into functions.
nelson%bolyard.com
parents: 7570
diff changeset
  1475
        const char *funcName,
8070
6218e806ff64463ab7934eae01193669f607b4ae Bug 391183, rename libPKIX error string number type to pkix error number types
nelson%bolyard.com
parents: 8056
diff changeset
  1476
        PKIX_ERRORCODE errorTextCode,
8247
a0288dba94a31f822004bd0deaff9fa5309cb889 397832 - libpkix leaks memory if a macro calls a function that returns an error. Main patch. r=nelson.
alexei.volkov.bugs%sun.com
parents: 8223
diff changeset
  1477
        PKIX_ERRORCLASS overrideClass,
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1478
        PKIX_Error *cause,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1479
        PKIX_Error **pError,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1480
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1481
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1482
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1483
pkix_CheckTypes(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1484
        PKIX_PL_Object *first,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1485
        PKIX_PL_Object *second,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1486
        PKIX_UInt32 type,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1487
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1488
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1489
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1490
pkix_CheckType(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1491
        PKIX_PL_Object *object,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1492
        PKIX_UInt32 type,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1493
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1494
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1495
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1496
pkix_hash(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1497
        const unsigned char *bytes,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1498
        PKIX_UInt32 length,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1499
        PKIX_UInt32 *hash,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1500
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1501
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1502
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1503
pkix_duplicateImmutable(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1504
        PKIX_PL_Object *object,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1505
        PKIX_PL_Object **pNewObject,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1506
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1507
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1508
PKIX_UInt32
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1509
pkix_countArray(void **array);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1510
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1511
PKIX_UInt32
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1512
pkix_hex2i(char c);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1513
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1514
char
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1515
pkix_i2hex(char c);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1516
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1517
PKIX_Boolean
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1518
pkix_isPlaintext(unsigned char c, PKIX_Boolean debug);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1519
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1520
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1521
pkix_CacheCertChain_Lookup(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1522
        PKIX_PL_Cert* targetCert,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1523
        PKIX_List* anchors,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1524
        PKIX_PL_Date *testDate,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1525
        PKIX_Boolean *pFound,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1526
        PKIX_BuildResult **pBuildResult,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1527
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1528
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1529
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1530
pkix_CacheCertChain_Remove(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1531
        PKIX_PL_Cert* targetCert,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1532
        PKIX_List* anchors,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1533
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1534
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1535
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1536
pkix_CacheCertChain_Add(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1537
        PKIX_PL_Cert* targetCert,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1538
        PKIX_List* anchors,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1539
        PKIX_PL_Date *validityDate,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1540
        PKIX_BuildResult *buildResult,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1541
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1542
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1543
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1544
pkix_CacheCert_Lookup(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1545
        PKIX_CertStore *store,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1546
        PKIX_ComCertSelParams *certSelParams,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1547
        PKIX_PL_Date *testDate,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1548
        PKIX_Boolean *pFound,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1549
        PKIX_List** pCerts,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1550
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1551
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1552
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1553
pkix_CacheCert_Add(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1554
        PKIX_CertStore *store,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1555
        PKIX_ComCertSelParams *certSelParams,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1556
        PKIX_List* certs,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1557
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1558
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1559
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1560
pkix_CacheCrlEntry_Lookup(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1561
        PKIX_CertStore *store,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1562
        PKIX_PL_X500Name *certIssuer,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1563
        PKIX_PL_BigInt *certSerialNumber,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1564
        PKIX_Boolean *pFound,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1565
        PKIX_List** pCrlEntryList,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1566
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1567
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1568
PKIX_Error *
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1569
pkix_CacheCrlEntry_Add(
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1570
        PKIX_CertStore *store,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1571
        PKIX_PL_X500Name *certIssuer,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1572
        PKIX_PL_BigInt *certSerialNumber,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1573
        PKIX_List* crlEntryList,
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1574
        void *plContext);
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1575
8494
6398712bbcd73da4f0eeada69fd9714f4e1d0057 Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8488
diff changeset
  1576
#ifdef PR_LOGGING
8488
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
  1577
void
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
  1578
pkix_trace_dump_cert(
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
  1579
        const char *info, 
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
  1580
        PKIX_PL_Cert *cert, 
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
  1581
        void *plContext);
8494
6398712bbcd73da4f0eeada69fd9714f4e1d0057 Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8488
diff changeset
  1582
#endif
8488
2eba69c60c72a47909881e5483d81fd233fe35db Bug 418398, Need some high level libpkix tracing for mental sanity
kaie%kuix.de
parents: 8385
diff changeset
  1583
7570
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1584
#ifdef __cplusplus
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1585
}
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1586
#endif
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1587
a9ce7692efe127ef85a8071fa75dcb819003bb74 Bugzilla Bug 358785: merged the mozilla/security/nss/lib/libpkix from the
wtchang%redhat.com
parents:
diff changeset
  1588
#endif /* _PKIX_TOOLS_H */