security/nss/lib/freebl/stubs.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/lib/freebl/stubs.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,64 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +/*
     1.9 + * Allow freebl and softoken to be loaded without util or NSPR.
    1.10 + *
    1.11 + * These symbols are overridden once real NSPR, and libutil are attached.
    1.12 + */
    1.13 +
    1.14 +#ifndef _STUBS_H
    1.15 +#define _STUBS_H_ 1
    1.16 +
    1.17 +#ifdef _LIBUTIL_H_
    1.18 +/* must be included before util */
    1.19 +/*#error stubs.h included too late */
    1.20 +#define MP_DIGITES(x) "stubs included too late"
    1.21 +#endif
    1.22 +
    1.23 +/* hide libutil rename */
    1.24 +#define _LIBUTIL_H_ 1
    1.25 +
    1.26 +#define PORT_Alloc PORT_Alloc_stub
    1.27 +#define PORT_ArenaAlloc  PORT_ArenaAlloc_stub
    1.28 +#define PORT_ArenaZAlloc  PORT_ArenaZAlloc_stub
    1.29 +#define PORT_Free PORT_Free_stub
    1.30 +#define PORT_FreeArena  PORT_FreeArena_stub
    1.31 +#define PORT_GetError  PORT_GetError_stub
    1.32 +#define PORT_NewArena  PORT_NewArena_stub
    1.33 +#define PORT_SetError  PORT_SetError_stub
    1.34 +#define PORT_ZAlloc PORT_ZAlloc_stub
    1.35 +#define PORT_ZFree  PORT_ZFree_stub
    1.36 +
    1.37 +#define SECITEM_AllocItem  SECITEM_AllocItem_stub
    1.38 +#define SECITEM_CompareItem  SECITEM_CompareItem_stub
    1.39 +#define SECITEM_CopyItem  SECITEM_CopyItem_stub
    1.40 +#define SECITEM_FreeItem  SECITEM_FreeItem_stub
    1.41 +#define SECITEM_ZfreeItem  SECITEM_ZfreeItem_stub
    1.42 +#define SECOID_FindOIDTag  SECOID_FindOIDTag_stub
    1.43 +#define NSS_SecureMemcmp NSS_SecureMemcmp_stub
    1.44 +
    1.45 +#define PR_Assert  PR_Assert_stub
    1.46 +#define PR_CallOnce  PR_CallOnce_stub
    1.47 +#define PR_Close  PR_Close_stub
    1.48 +#define PR_DestroyCondVar PR_DestroyCondVar_stub
    1.49 +#define PR_DestroyLock  PR_DestroyLock_stub
    1.50 +#define PR_Free  PR_Free_stub
    1.51 +#define PR_GetLibraryFilePathname  PR_GetLibraryFilePathname_stub
    1.52 +#define PR_ImportPipe  PR_ImportPipe_stub
    1.53 +#define PR_Lock  PR_Lock_stub
    1.54 +#define PR_NewCondVar PR_NewCondVar_stub
    1.55 +#define PR_NewLock  PR_NewLock_stub
    1.56 +#define PR_NotifyCondVar PR_NotifyCondVar_stub
    1.57 +#define PR_NotifyAllCondVar PR_NotifyAllCondVar_stub
    1.58 +#define PR_Open  PR_Open_stub
    1.59 +#define PR_Read  PR_Read_stub
    1.60 +#define PR_Seek  PR_Seek_stub
    1.61 +#define PR_Sleep  PR_Sleep_stub
    1.62 +#define PR_Unlock  PR_Unlock_stub
    1.63 +#define PR_WaitCondVar PR_WaitCondVar_stub
    1.64 +
    1.65 +extern int  FREEBL_InitStubs(void);
    1.66 +
    1.67 +#endif

mercurial