~ubuntu-branches/ubuntu/karmic/nss/karmic-updates

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/freebl/stubs.h

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ***** BEGIN LICENSE BLOCK *****
 
2
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
3
 *
 
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/
 
8
 *
 
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
 
12
 * License.
 
13
 *
 
14
 * The Original Code is Network Security Services.
 
15
 *
 
16
 * The Initial Developer of the Original Code is
 
17
 * Red Hat Inc.
 
18
 * Portions created by the Initial Developer are Copyright (C) 2009
 
19
 * the Initial Developer. All Rights Reserved.
 
20
 *
 
21
 * Contributor(s):
 
22
 *  Robert Relyea <rrelyea@redhat.com>
 
23
 *
 
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.
 
35
 *
 
36
 * ***** END LICENSE BLOCK ***** */
 
37
 
 
38
/*
 
39
 * Allow freebl and softoken to be loaded without util or NSPR.
 
40
 *
 
41
 * These symbols are overridden once real NSPR, and libutil are attached.
 
42
 */
 
43
 
 
44
#ifndef _STUBS_H
 
45
#define _STUBS_H_ 1
 
46
 
 
47
#ifdef _LIBUTIL_H_
 
48
/* must be included before util */
 
49
/*#error stubs.h included too late */
 
50
#define MP_DIGITES(x) "stubs included too late" 
 
51
#endif
 
52
 
 
53
/* hide libutil rename */
 
54
#define _LIBUTIL_H_ 1
 
55
 
 
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
 
65
 
 
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
 
71
 
 
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
 
85
 
 
86
extern int  FREEBL_InitStubs(void);
 
87
 
 
88
#endif