mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-19 09:02:22 +02:00
distributed version 0.1.0
This commit is contained in:
parent
b83f687379
commit
6e0fd3df65
@ -21,9 +21,9 @@ cipher_SOURCES = blowfish.c \
|
|||||||
sha1.c \
|
sha1.c \
|
||||||
dsa.h \
|
dsa.h \
|
||||||
dsa.c \
|
dsa.c \
|
||||||
|
rsa.c \
|
||||||
|
rsa.h \
|
||||||
md.c \
|
md.c \
|
||||||
smallprime.c
|
smallprime.c
|
||||||
|
|
||||||
cipher_LIBADD = rsa.o
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -58,10 +58,10 @@ cipher_SOURCES = blowfish.c \
|
|||||||
sha1.c \
|
sha1.c \
|
||||||
dsa.h \
|
dsa.h \
|
||||||
dsa.c \
|
dsa.c \
|
||||||
|
rsa.c \
|
||||||
|
rsa.h \
|
||||||
md.c \
|
md.c \
|
||||||
smallprime.c
|
smallprime.c
|
||||||
|
|
||||||
cipher_LIBADD = rsa.o
|
|
||||||
mkinstalldirs = $(top_srcdir)/scripts/mkinstalldirs
|
mkinstalldirs = $(top_srcdir)/scripts/mkinstalldirs
|
||||||
CONFIG_HEADER = ../config.h
|
CONFIG_HEADER = ../config.h
|
||||||
LIBRARIES = $(noinst_LIBRARIES)
|
LIBRARIES = $(noinst_LIBRARIES)
|
||||||
@ -80,8 +80,9 @@ LIBS = @LIBS@
|
|||||||
|
|
||||||
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
|
||||||
LINK = $(CC) $(LDFLAGS) -o $@
|
LINK = $(CC) $(LDFLAGS) -o $@
|
||||||
|
cipher_LIBADD =
|
||||||
cipher_OBJECTS = blowfish.o elgamal.o gost.o md5.o primegen.o random.o \
|
cipher_OBJECTS = blowfish.o elgamal.o gost.o md5.o primegen.o random.o \
|
||||||
rmd160.o sha1.o dsa.o md.o smallprime.o
|
rmd160.o sha1.o dsa.o rsa.o md.o smallprime.o
|
||||||
EXTRA_cipher_SOURCES =
|
EXTRA_cipher_SOURCES =
|
||||||
LIBFILES = libcipher.a
|
LIBFILES = libcipher.a
|
||||||
AR = ar
|
AR = ar
|
||||||
@ -101,7 +102,7 @@ TAR = tar
|
|||||||
DEP_FILES = $(srcdir)/.deps/blowfish.P $(srcdir)/.deps/dsa.P \
|
DEP_FILES = $(srcdir)/.deps/blowfish.P $(srcdir)/.deps/dsa.P \
|
||||||
$(srcdir)/.deps/elgamal.P $(srcdir)/.deps/gost.P $(srcdir)/.deps/md.P \
|
$(srcdir)/.deps/elgamal.P $(srcdir)/.deps/gost.P $(srcdir)/.deps/md.P \
|
||||||
$(srcdir)/.deps/md5.P $(srcdir)/.deps/primegen.P \
|
$(srcdir)/.deps/md5.P $(srcdir)/.deps/primegen.P \
|
||||||
$(srcdir)/.deps/random.P $(srcdir)/.deps/rmd160.P \
|
$(srcdir)/.deps/random.P $(srcdir)/.deps/rmd160.P $(srcdir)/.deps/rsa.P \
|
||||||
$(srcdir)/.deps/sha1.P $(srcdir)/.deps/smallprime.P
|
$(srcdir)/.deps/sha1.P $(srcdir)/.deps/smallprime.P
|
||||||
SOURCES = $(cipher_SOURCES)
|
SOURCES = $(cipher_SOURCES)
|
||||||
OBJECTS = $(cipher_OBJECTS)
|
OBJECTS = $(cipher_OBJECTS)
|
||||||
|
@ -19,6 +19,7 @@ AC_ARG_ENABLE(m-debug,
|
|||||||
[ --enable-m-debug Enable debugging of memory allocation])
|
[ --enable-m-debug Enable debugging of memory allocation])
|
||||||
if test "$enableval" = y || test "$enableval" = yes; then
|
if test "$enableval" = y || test "$enableval" = yes; then
|
||||||
AC_DEFINE(M_DEBUG)
|
AC_DEFINE(M_DEBUG)
|
||||||
|
CFLAGS=-g
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl some additional macros
|
dnl some additional macros
|
||||||
@ -141,9 +142,9 @@ WK_CHECK_TYPEDEF(ulong, HAVE_ULONG_TYPEDEF)
|
|||||||
WK_CHECK_TYPEDEF(u16, HAVE_U16_TYPEDEF)
|
WK_CHECK_TYPEDEF(u16, HAVE_U16_TYPEDEF)
|
||||||
WK_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF)
|
WK_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF)
|
||||||
|
|
||||||
AC_CHECK_SIZEOF(unsigned short, 16)
|
AC_CHECK_SIZEOF(unsigned short, 2)
|
||||||
AC_CHECK_SIZEOF(unsigned int, 32)
|
AC_CHECK_SIZEOF(unsigned int, 4)
|
||||||
AC_CHECK_SIZEOF(unsigned long, 32)
|
AC_CHECK_SIZEOF(unsigned long, 4)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,9 +44,9 @@
|
|||||||
|
|
||||||
#ifndef HAVE_U16_TYPEDEF
|
#ifndef HAVE_U16_TYPEDEF
|
||||||
#undef u16 /* maybe there is a macro with this name */
|
#undef u16 /* maybe there is a macro with this name */
|
||||||
#if SIZEOF_UNSIGNED_INT == 16
|
#if SIZEOF_UNSIGNED_INT == 2
|
||||||
typedef unsigned int u16;
|
typedef unsigned int u16;
|
||||||
#elif SIZEOF_UNSIGNED_SHORT == 16
|
#elif SIZEOF_UNSIGNED_SHORT == 2
|
||||||
typedef unsigned short u16;
|
typedef unsigned short u16;
|
||||||
#else
|
#else
|
||||||
#error no typedef for u16
|
#error no typedef for u16
|
||||||
@ -56,9 +56,9 @@
|
|||||||
|
|
||||||
#ifndef HAVE_U32_TYPEDEF
|
#ifndef HAVE_U32_TYPEDEF
|
||||||
#undef u32 /* maybe there is a macro with this name */
|
#undef u32 /* maybe there is a macro with this name */
|
||||||
#if SIZEOF_UNSIGNED_INT == 32
|
#if SIZEOF_UNSIGNED_INT == 4
|
||||||
typedef unsigned long u32;
|
typedef unsigned long u32;
|
||||||
#elif SIZEOF_UNSIGNED_LONG == 32
|
#elif SIZEOF_UNSIGNED_LONG == 4
|
||||||
typedef unsigned int u32;
|
typedef unsigned int u32;
|
||||||
#else
|
#else
|
||||||
#error no typedef for u32
|
#error no typedef for u32
|
||||||
|
@ -41,7 +41,11 @@ init_ttyfp()
|
|||||||
if( ttyfp )
|
if( ttyfp )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
ttyfp = stderr; /* fixme */
|
||||||
|
#else
|
||||||
ttyfp = fopen("/dev/tty", "r+");
|
ttyfp = fopen("/dev/tty", "r+");
|
||||||
|
#endif
|
||||||
if( !ttyfp )
|
if( !ttyfp )
|
||||||
log_fatal("cannot open /dev/tty: %s\n", strerror(errno) );
|
log_fatal("cannot open /dev/tty: %s\n", strerror(errno) );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user