1
/* ***** BEGIN LICENSE BLOCK *****
2
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
4
* The contents of this file are subject to the Mozilla Public License Version
5
* 1.1 (the "License"); you may not use this file except in compliance with
6
* the License. You may obtain a copy of the License at
7
* http://www.mozilla.org/MPL/
9
* Software distributed under the License is distributed on an "AS IS" basis,
10
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
* for the specific language governing rights and limitations under the
14
* The Original Code is Network Security Services.
16
* The Initial Developer of the Original Code is
18
* Portions created by the Initial Developer are Copyright (C) 2009
19
* the Initial Developer. All Rights Reserved.
22
* Robert Relyea <rrelyea@redhat.com>
24
* Alternatively, the contents of this file may be used under the terms of
25
* either the GNU General Public License Version 2 or later (the "GPL"), or
26
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27
* in which case the provisions of the GPL or the LGPL are applicable instead
28
* of those above. If you wish to allow use of your version of this file only
29
* under the terms of either the GPL or the LGPL, and not to allow others to
30
* use your version of this file under the terms of the MPL, indicate your
31
* decision by deleting the provisions above and replace them with the notice
32
* and other provisions required by the GPL or the LGPL. If you do not delete
33
* the provisions above, a recipient may use your version of this file under
34
* the terms of any one of the MPL, the GPL or the LGPL.
36
* ***** END LICENSE BLOCK ***** */
39
* Allow freebl and softoken to be loaded without util or NSPR.
41
* These symbols are overridden once real NSPR, and libutil are attached.
48
/* must be included before util */
49
/*#error stubs.h included too late */
50
#define MP_DIGITES(x) "stubs included too late"
53
/* hide libutil rename */
56
#define PORT_Alloc PORT_Alloc_stub
57
#define PORT_ArenaZAlloc PORT_ArenaZAlloc_stub
58
#define PORT_Free PORT_Free_stub
59
#define PORT_FreeArena PORT_FreeArena_stub
60
#define PORT_GetError PORT_GetError_stub
61
#define PORT_NewArena PORT_NewArena_stub
62
#define PORT_SetError PORT_SetError_stub
63
#define PORT_ZAlloc PORT_ZAlloc_stub
64
#define PORT_ZFree PORT_ZFree_stub
66
#define SECITEM_AllocItem SECITEM_AllocItem_stub
67
#define SECITEM_CompareItem SECITEM_CompareItem_stub
68
#define SECITEM_CopyItem SECITEM_CopyItem_stub
69
#define SECITEM_FreeItem SECITEM_FreeItem_stub
70
#define SECITEM_ZfreeItem SECITEM_ZfreeItem_stub
72
#define PR_Assert PR_Assert_stub
73
#define PR_CallOnce PR_CallOnce_stub
74
#define PR_Close PR_Close_stub
75
#define PR_DestroyLock PR_DestroyLock_stub
76
#define PR_Free PR_Free_stub
77
#define PR_GetLibraryFilePathname PR_GetLibraryFilePathname_stub
78
#define PR_Lock PR_Lock_stub
79
#define PR_NewLock PR_NewLock_stub
80
#define PR_Open PR_Open_stub
81
#define PR_Read PR_Read_stub
82
#define PR_Seek PR_Seek_stub
83
#define PR_Sleep PR_Sleep_stub
84
#define PR_Unlock PR_Unlock_stub
86
extern int FREEBL_InitStubs(void);