X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=common%2Futil.h;h=c0aa57a1e901f515286079a97f7afcc111c17b87;hb=d9787447fe6a57e39113b60305b4ab672b9ba897;hp=f7a53e160826070a273295206e37eb295f51cd56;hpb=f77eedfaad1525168ca8593a3eb43ef157cd2891;p=platform%2Fupstream%2Fgpg2.git diff --git a/common/util.h b/common/util.h index f7a53e1..c0aa57a 100644 --- a/common/util.h +++ b/common/util.h @@ -3,8 +3,8 @@ * * This file is part of GnuPG. * - * GnuPG is free software; you can redistribute it and/or modify it - * under the terms of either + * GnuPG is free software; you can redistribute and/or modify this + * part of GnuPG under the terms of either * * - the GNU Lesser General Public License as published by the Free * Software Foundation; either version 3 of the License, or (at @@ -195,10 +195,10 @@ gpg_error_t get_rsa_pk_from_canon_sexp (const unsigned char *keydata, size_t *r_nlen, unsigned char const **r_e, size_t *r_elen); -gpg_error_t get_pk_algo_from_canon_sexp (const unsigned char *keydata, - size_t keydatalen, - const char **r_algo); + int get_pk_algo_from_key (gcry_sexp_t key); +int get_pk_algo_from_canon_sexp (const unsigned char *keydata, + size_t keydatalen); /*-- convert.c --*/ int hex2bin (const char *string, void *buffer, size_t length);