Skip to content
Snippets Groups Projects
Select Git revision
  • a986fa71015e84dc627a5ed1dcefe622d75b16f2
  • x86_ghash
  • x86_poly
  • ppc-poly1305-multi
  • ppc-poly-multi-44
  • power7-chacha-fix
  • ppc-r64-44-n
  • ppc-r64-44
  • s390x-gief-fix
  • chacha_m4_fix
  • arm64-poly
  • poly_avx2
  • s390x-poly
  • ppc-poly
  • s390x-ghash-refactor
  • arm64-chacha
  • s390x-ecc-7748
  • s390x-ecc-mod
  • s390x-vf-fix
  • s390x-chacha
  • s390x-sha1
  • nettle_3.6_release_20200429
  • nettle_3.6rc3
  • nettle_3.6rc2
  • nettle_3.6rc1
  • nettle_3.5.1_release_20190627
  • nettle_3.5_release_20190626
  • nettle_3.5rc1
  • nettle_3.4.1_release_20181204
  • nettle_3.4.1rc1
  • nettle_3.4_release_20171119
  • nettle_3.4rc2
  • nettle_3.4rc1
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
41 results

dsa-keygen-test.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    dlopen.c 65.14 KiB
    /*
    || This file is part of Pike. For copyright information see COPYRIGHT.
    || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
    || for more information.
    || $Id: dlopen.c,v 1.76 2006/07/05 19:06:46 mast Exp $
    */
    
    /* Note: This is not used if --enable-dll is. */
    
    #include <global.h>
    #include "fdlib.h"
    #define DL_INTERNAL
    #include "pike_dlfcn.h"
    #include "pike_memory.h"
    #include "pike_error.h"
    #include "pike_macros.h"
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <errno.h>
    #if !defined(__FreeBSD__) && !defined(__OpenBSD__)
    /* FreeBSD and OpenBSD has <malloc.h>, but it just contains a warning... */
    #include <malloc.h>
    #endif /* !__FreeBSD__ && !__OpenBSD__ */
    #include <windows.h>
    #include <memory.h>
    #include <sys/stat.h>
    #include <assert.h>
    #include <math.h>
    #include <tchar.h>
    #include <interpret.h>
    #include <callback.h>
    
    /* In case we're compiling with NDEBUG */
    _CRTIMP void __cdecl _assert(void*, void*, unsigned);
    
    #ifdef DEBUG_MALLOC
    #define ACCEPT_MEMORY_LEAK(X) dmalloc_accept_leak(X)
    #else
    #define ACCEPT_MEMORY_LEAK(X)
    #endif
    
    static char *dlerr=0;
    
    
    /* Todo:
     *  Make image debugable if possible
     *  Separate RWX, RW and R memory sections.
     */
    
    #ifdef _WIN64
    #define USE_PDB_SYMBOLS
    #endif
    
    /* Enable debug output if compiled on win64. */
    #ifdef _WIN64
    #define DLDEBUG 1
    #endif /* _WIN64 */
    
    /* #define DL_VERBOSE 1 */
    /* #define DLDEBUG */
    
    /*
     * This define makes dlopen create a logfile which maps
     * addresses to symbols. This can be very helpful when
     * debugging since regular debug info does not work with
     * code loaded by dlopen.
     */
    /* #define DL_SYMBOL_LOG */