security/nss/lib/freebl/stubs.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 /*
michael@0 6 * Allow freebl and softoken to be loaded without util or NSPR.
michael@0 7 *
michael@0 8 * These symbols are overridden once real NSPR, and libutil are attached.
michael@0 9 */
michael@0 10
michael@0 11 #ifndef _STUBS_H
michael@0 12 #define _STUBS_H_ 1
michael@0 13
michael@0 14 #ifdef _LIBUTIL_H_
michael@0 15 /* must be included before util */
michael@0 16 /*#error stubs.h included too late */
michael@0 17 #define MP_DIGITES(x) "stubs included too late"
michael@0 18 #endif
michael@0 19
michael@0 20 /* hide libutil rename */
michael@0 21 #define _LIBUTIL_H_ 1
michael@0 22
michael@0 23 #define PORT_Alloc PORT_Alloc_stub
michael@0 24 #define PORT_ArenaAlloc PORT_ArenaAlloc_stub
michael@0 25 #define PORT_ArenaZAlloc PORT_ArenaZAlloc_stub
michael@0 26 #define PORT_Free PORT_Free_stub
michael@0 27 #define PORT_FreeArena PORT_FreeArena_stub
michael@0 28 #define PORT_GetError PORT_GetError_stub
michael@0 29 #define PORT_NewArena PORT_NewArena_stub
michael@0 30 #define PORT_SetError PORT_SetError_stub
michael@0 31 #define PORT_ZAlloc PORT_ZAlloc_stub
michael@0 32 #define PORT_ZFree PORT_ZFree_stub
michael@0 33
michael@0 34 #define SECITEM_AllocItem SECITEM_AllocItem_stub
michael@0 35 #define SECITEM_CompareItem SECITEM_CompareItem_stub
michael@0 36 #define SECITEM_CopyItem SECITEM_CopyItem_stub
michael@0 37 #define SECITEM_FreeItem SECITEM_FreeItem_stub
michael@0 38 #define SECITEM_ZfreeItem SECITEM_ZfreeItem_stub
michael@0 39 #define SECOID_FindOIDTag SECOID_FindOIDTag_stub
michael@0 40 #define NSS_SecureMemcmp NSS_SecureMemcmp_stub
michael@0 41
michael@0 42 #define PR_Assert PR_Assert_stub
michael@0 43 #define PR_CallOnce PR_CallOnce_stub
michael@0 44 #define PR_Close PR_Close_stub
michael@0 45 #define PR_DestroyCondVar PR_DestroyCondVar_stub
michael@0 46 #define PR_DestroyLock PR_DestroyLock_stub
michael@0 47 #define PR_Free PR_Free_stub
michael@0 48 #define PR_GetLibraryFilePathname PR_GetLibraryFilePathname_stub
michael@0 49 #define PR_ImportPipe PR_ImportPipe_stub
michael@0 50 #define PR_Lock PR_Lock_stub
michael@0 51 #define PR_NewCondVar PR_NewCondVar_stub
michael@0 52 #define PR_NewLock PR_NewLock_stub
michael@0 53 #define PR_NotifyCondVar PR_NotifyCondVar_stub
michael@0 54 #define PR_NotifyAllCondVar PR_NotifyAllCondVar_stub
michael@0 55 #define PR_Open PR_Open_stub
michael@0 56 #define PR_Read PR_Read_stub
michael@0 57 #define PR_Seek PR_Seek_stub
michael@0 58 #define PR_Sleep PR_Sleep_stub
michael@0 59 #define PR_Unlock PR_Unlock_stub
michael@0 60 #define PR_WaitCondVar PR_WaitCondVar_stub
michael@0 61
michael@0 62 extern int FREEBL_InitStubs(void);
michael@0 63
michael@0 64 #endif

mercurial