~ubuntu-branches/ubuntu/hardy/gnupg2/hardy-proposed

« back to all changes in this revision

Viewing changes to common/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-05-15 13:54:55 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070515135455-89qfyalmgjy6gcqw
Tags: 2.0.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Remove libpcsclite-dev, libopensc2-dev build dependencies (they are in
    universe).
  - Build-depend on libcurl3-gnutls-dev
  - g10/call-agent.c: set DBG_ASSUAN to 0 to suppress a debug message
  - Include /doc files as done with gnupg
  - debian/rules: add doc/com-certs.pem to the docs for gpgsm
  - debian/copyright: update download url
  - debian/README.Debian: remove note the gnupg2 isn't released yet.
  - debian/control: Change Maintainer/XSBC-Original-Maintainer field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#include "../jnlib/dotlock.h"
44
44
#include "../jnlib/utf8conv.h"
45
45
 
46
 
 
47
46
#if __GNUC__ >= 4 
48
47
# define GNUPG_GCC_A_SENTINEL(a) __attribute__ ((sentinel(a)))
49
48
#else
172
171
 
173
172
/*-- miscellaneous.c --*/
174
173
 
 
174
/* This function is called at startup to tell libgcrypt to use our own
 
175
   logging subsystem. */
 
176
void setup_libgcrypt_logging (void);
 
177
 
175
178
/* Same as asprintf but return an allocated buffer suitable to be
176
179
   freed using xfree.  This function simply dies on memory failure,
177
180
   thus no extra check is required. */
186
189
void print_string (FILE *fp, const byte *p, size_t n, int delim);
187
190
void print_utf8_string2 ( FILE *fp, const byte *p, size_t n, int delim);
188
191
void print_utf8_string (FILE *fp, const byte *p, size_t n);
 
192
void print_hexstring (FILE *fp, const void *buffer, size_t length,
 
193
                      int reserved);
189
194
char *make_printable_string (const void *p, size_t n, int delim);
190
195
 
191
196
int is_file_compressed (const char *s, int *ret_rc);