~ubuntu-branches/ubuntu/raring/nss/raring-security

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/util/secport.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2010-03-25 13:46:06 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100325134606-bl6liuok2w9l7snv
Tags: 3.12.6-0ubuntu1
* New upstream release 3.12.6 RTM (NSS_3_12_6_RTM)
  - fixes CVE-2009-3555 aka US-CERT VU#120541
* Adjust patches to changed upstream code base
  - update debian/patches/38_kbsd.patch
  - update debian/patches/38_mips64_build.patch
  - update debian/patches/85_security_load.patch
* Remove patches that are merged upstream
  - delete debian/patches/91_nonexec_stack.patch
  - update debian/patches/series
* Bump nspr dependency to 4.8
  - update debian/control
* Add new symbols for 3.12.6
  - update debian/libnss3-1d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
/*
38
38
 * secport.h - portability interfaces for security libraries
39
39
 *
40
 
 * $Id: secport.h,v 1.19 2009/02/27 00:15:03 nelson%bolyard.com Exp $
 
40
 * $Id: secport.h,v 1.23 2009/10/30 09:44:47 nelson%bolyard.com Exp $
41
41
 */
42
42
 
43
43
#ifndef _SECPORT_H_
44
44
#define _SECPORT_H_
45
45
 
46
46
#include "utilrename.h"
 
47
#include "prlink.h"
47
48
 
48
49
/*
49
50
 * define XP_WIN, XP_BEOS, or XP_UNIX, in case they are not defined
57
58
# ifndef XP_WIN32
58
59
# define XP_WIN32
59
60
# endif
60
 
#else
61
 
# ifndef XP_WIN16
62
 
# define XP_WIN16
63
 
# endif
64
61
#endif
65
62
#endif
66
63
 
244
241
 
245
242
extern int NSS_PutEnv(const char * envVarName, const char * envValue);
246
243
 
 
244
extern int NSS_SecureMemcmp(const void *a, const void *b, size_t n);
 
245
 
 
246
/*
 
247
 * Load a shared library called "newShLibName" in the same directory as
 
248
 * a shared library that is already loaded, called existingShLibName.
 
249
 * A pointer to a static function in that shared library,
 
250
 * staticShLibFunc, is required.
 
251
 *
 
252
 * existingShLibName:
 
253
 *   The file name of the shared library that shall be used as the 
 
254
 *   "reference library". The loader will attempt to load the requested
 
255
 *   library from the same directory as the reference library.
 
256
 *
 
257
 * staticShLibFunc:
 
258
 *   Pointer to a static function in the "reference library".
 
259
 *
 
260
 * newShLibName:
 
261
 *   The simple file name of the new shared library to be loaded.
 
262
 *
 
263
 * We use PR_GetLibraryFilePathname to get the pathname of the loaded 
 
264
 * shared lib that contains this function, and then do a
 
265
 * PR_LoadLibraryWithFlags with an absolute pathname for the shared
 
266
 * library to be loaded.
 
267
 *
 
268
 * On Windows, the "alternate search path" strategy is employed, if available.
 
269
 * On Unix, if existingShLibName is a symbolic link, and no link exists for the
 
270
 * new library, the original link will be resolved, and the new library loaded
 
271
 * from the resolved location.
 
272
 *
 
273
 * If the new shared library is not found in the same location as the reference
 
274
 * library, it will then be loaded from the normal system library path.
 
275
 */
 
276
PRLibrary *
 
277
PORT_LoadLibraryFromOrigin(const char* existingShLibName,
 
278
                 PRFuncPtr staticShLibFunc,
 
279
                 const char *newShLibName);
 
280
 
247
281
SEC_END_PROTOS
248
282
 
249
283
#endif /* _SECPORT_H_ */