Don't leak symbols into static library

Werner Koch wk at gnupg.org
Fri Apr 18 11:10:59 CEST 2008


On Fri, 18 Apr 2008 09:00, simon at josefsson.org said:

> 000059c0 T Camellia_DecryptBlock

Ooops.  The linker script made it invisible to me.

>   * This prefixes all external symbols with "foo_".
>   */
> +#define CAMELLIA_EXT_SYM_PREFIX _gcry_

Okay, I put it into config.h to keep this file unmodified.

> Index: cipher/ac.c
> @@ -1117,7 +1117,7 @@
>  
>     (IDENTIFIER [...]
>     (ALGORITHM <list of named MPI values>)) */
> -gcry_error_t
> +static gcry_error_t
>  ac_data_extract (const char *identifier, const char *algorithm,
>  		 gcry_sexp_t sexp, gcry_ac_data_t *data)


What is the reasons for this?


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Auschnahme regelt ein Bundeschgesetz.




More information about the Gcrypt-devel mailing list