summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-07-07 13:28:26 +0200
committerWerner Koch <wk@gnupg.org>1999-07-07 13:28:26 +0200
commitbd7298cf0dbeacbd415acdf814acace9aabb8455 (patch)
treeae235766ee42b77ba5ca19dfb1bf99e678154e3d /include
parentSee ChangeLog: Fri Jul 2 11:45:54 CEST 1999 Werner Koch (diff)
downloadgnupg2-bd7298cf0dbeacbd415acdf814acace9aabb8455.tar.xz
gnupg2-bd7298cf0dbeacbd415acdf814acace9aabb8455.zip
See ChangeLog: Wed Jul 7 13:23:40 CEST 1999 Werner Koch
Diffstat (limited to 'include')
-rw-r--r--include/mpi.h3
-rw-r--r--include/util.h4
2 files changed, 5 insertions, 2 deletions
diff --git a/include/mpi.h b/include/mpi.h
index e845bec50..2293af8fd 100644
--- a/include/mpi.h
+++ b/include/mpi.h
@@ -110,11 +110,14 @@ int mpi_write( IOBUF out, MPI a );
MPI mpi_read_from_buffer(byte *buffer, unsigned *ret_nread, int secure);
int mpi_fromstr(MPI val, const char *str);
int mpi_print( FILE *fp, MPI a, int mode );
+void g10_log_mpidump( const char *text, MPI a );
u32 mpi_get_keyid( MPI a, u32 *keyid );
byte *mpi_get_buffer( MPI a, unsigned *nbytes, int *sign );
byte *mpi_get_secure_buffer( MPI a, unsigned *nbytes, int *sign );
void mpi_set_buffer( MPI a, const byte *buffer, unsigned nbytes, int sign );
+#define log_mpidump g10_log_mpidump
+
/*-- mpi-add.c --*/
void mpi_add_ui(MPI w, MPI u, ulong v );
void mpi_add(MPI w, MPI u, MPI v);
diff --git a/include/util.h b/include/util.h
index b36e11bb2..6feab3211 100644
--- a/include/util.h
+++ b/include/util.h
@@ -60,12 +60,12 @@ typedef struct {
/*-- logger.c --*/
void log_set_logfile( const char *name, int fd );
FILE *log_stream(void);
+void g10_log_print_prefix(const char *text);
void log_set_name( const char *name );
const char *log_get_name(void);
void log_set_pid( int pid );
int log_get_errorcount( int clear );
void g10_log_hexdump( const char *text, const char *buf, size_t len );
-void g10_log_mpidump( const char *text, MPI a );
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5 )
void g10_log_bug( const char *fmt, ... )
@@ -100,7 +100,6 @@ void g10_log_mpidump( const char *text, MPI a );
#endif
#define log_hexdump g10_log_hexdump
-#define log_mpidump g10_log_mpidump
#define log_bug g10_log_bug
#define log_bug0 g10_log_bug0
#define log_fatal g10_log_fatal
@@ -148,6 +147,7 @@ const char *print_fname_stdout( const char *s );
/*-- miscutil.c --*/
u32 make_timestamp(void);
+u32 scan_isodatestr( const char *string );
u32 add_days_to_timestamp( u32 stamp, u16 days );
const char *strtimevalue( u32 stamp );
const char *strtimestamp( u32 stamp ); /* GMT */