Artifact dc7006b9f28d7ba06be38217883e428d47f57c1a2a039d87a10eb1a1517eda4a:
- File gnupg.h — part of check-in [c14cf350df] at 2014-05-15 21:36:21 on branch manualheaven — Move src and doc files to top directory (user: base@atomicules.co.uk size: 1265) [more...]
- File
src/gnupg.h
— part of check-in
[80ff0d7b69]
at
2011-01-29 22:27:43
on branch origin/tweaks
— Fixes to compiler warnings
git-svn-id: https://pwman.svn.sourceforge.net/svnroot/pwman/trunk@111 db5f1c25-4851-472e-ac1e-5437d07aece1 (user: gagravarr@users.sourceforge.net size: 1265)
0000: 2f 2a 0a 20 2a 20 20 50 57 4d 61 6e 20 2d 20 70 /*. * PWMan - p 0010: 61 73 73 77 6f 72 64 20 6d 61 6e 61 67 65 6d 65 assword manageme 0020: 6e 74 20 61 70 70 6c 69 63 61 74 69 6f 6e 0a 20 nt application. 0030: 2a 0a 20 2a 20 20 43 6f 70 79 72 69 67 68 74 20 *. * Copyright 0040: 28 43 29 20 32 30 30 32 20 20 49 76 61 6e 20 4b (C) 2002 Ivan K 0050: 65 6c 6c 79 20 3c 69 76 61 6e 40 69 76 61 6e 6b elly <ivan@ivank 0060: 65 6c 6c 79 2e 6e 65 74 3e 0a 20 2a 0a 20 2a 20 elly.net>. *. * 0070: 20 54 68 69 73 20 70 72 6f 67 72 61 6d 20 69 73 This program is 0080: 20 66 72 65 65 20 73 6f 66 74 77 61 72 65 3b 20 free software; 0090: 79 6f 75 20 63 61 6e 20 72 65 64 69 73 74 72 69 you can redistri 00a0: 62 75 74 65 20 69 74 20 61 6e 64 2f 6f 72 20 6d bute it and/or m 00b0: 6f 64 69 66 79 0a 20 2a 20 20 69 74 20 75 6e 64 odify. * it und 00c0: 65 72 20 74 68 65 20 74 65 72 6d 73 20 6f 66 20 er the terms of 00d0: 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c 20 the GNU General 00e0: 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20 61 Public License a 00f0: 73 20 70 75 62 6c 69 73 68 65 64 20 62 79 0a 20 s published by. 0100: 2a 20 20 74 68 65 20 46 72 65 65 20 53 6f 66 74 * the Free Soft 0110: 77 61 72 65 20 46 6f 75 6e 64 61 74 69 6f 6e 3b ware Foundation; 0120: 20 65 69 74 68 65 72 20 76 65 72 73 69 6f 6e 20 either version 0130: 32 20 6f 66 20 74 68 65 20 4c 69 63 65 6e 73 65 2 of the License 0140: 2c 20 6f 72 0a 20 2a 20 20 28 61 74 20 79 6f 75 , or. * (at you 0150: 72 20 6f 70 74 69 6f 6e 29 20 61 6e 79 20 6c 61 r option) any la 0160: 74 65 72 20 76 65 72 73 69 6f 6e 2e 0a 20 2a 0a ter version.. *. 0170: 20 2a 20 20 54 68 69 73 20 70 72 6f 67 72 61 6d * This program 0180: 20 69 73 20 64 69 73 74 72 69 62 75 74 65 64 20 is distributed 0190: 69 6e 20 74 68 65 20 68 6f 70 65 20 74 68 61 74 in the hope that 01a0: 20 69 74 20 77 69 6c 6c 20 62 65 20 75 73 65 66 it will be usef 01b0: 75 6c 2c 0a 20 2a 20 20 62 75 74 20 57 49 54 48 ul,. * but WITH 01c0: 4f 55 54 20 41 4e 59 20 57 41 52 52 41 4e 54 59 OUT ANY WARRANTY 01d0: 3b 20 77 69 74 68 6f 75 74 20 65 76 65 6e 20 74 ; without even t 01e0: 68 65 20 69 6d 70 6c 69 65 64 20 77 61 72 72 61 he implied warra 01f0: 6e 74 79 20 6f 66 0a 20 2a 20 20 4d 45 52 43 48 nty of. * MERCH 0200: 41 4e 54 41 42 49 4c 49 54 59 20 6f 72 20 46 49 ANTABILITY or FI 0210: 54 4e 45 53 53 20 46 4f 52 20 41 20 50 41 52 54 TNESS FOR A PART 0220: 49 43 55 4c 41 52 20 50 55 52 50 4f 53 45 2e 20 ICULAR PURPOSE. 0230: 20 53 65 65 20 74 68 65 0a 20 2a 20 20 47 4e 55 See the. * GNU 0240: 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 General Public 0250: 4c 69 63 65 6e 73 65 20 66 6f 72 20 6d 6f 72 65 License for more 0260: 20 64 65 74 61 69 6c 73 2e 0a 20 2a 0a 20 2a 20 details.. *. * 0270: 20 59 6f 75 20 73 68 6f 75 6c 64 20 68 61 76 65 You should have 0280: 20 72 65 63 65 69 76 65 64 20 61 20 63 6f 70 79 received a copy 0290: 20 6f 66 20 74 68 65 20 47 4e 55 20 47 65 6e 65 of the GNU Gene 02a0: 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e ral Public Licen 02b0: 73 65 0a 20 2a 20 20 61 6c 6f 6e 67 20 77 69 74 se. * along wit 02c0: 68 20 74 68 69 73 20 70 72 6f 67 72 61 6d 3b 20 h this program; 02d0: 69 66 20 6e 6f 74 2c 20 77 72 69 74 65 20 74 6f if not, write to 02e0: 20 74 68 65 20 46 72 65 65 20 53 6f 66 74 77 61 the Free Softwa 02f0: 72 65 0a 20 2a 20 20 46 6f 75 6e 64 61 74 69 6f re. * Foundatio 0300: 6e 2c 20 49 6e 63 2e 2c 20 35 39 20 54 65 6d 70 n, Inc., 59 Temp 0310: 6c 65 20 50 6c 61 63 65 2c 20 53 75 69 74 65 20 le Place, Suite 0320: 33 33 30 2c 20 42 6f 73 74 6f 6e 2c 20 4d 41 20 330, Boston, MA 0330: 20 30 32 31 31 31 2d 31 33 30 37 20 20 55 53 41 02111-1307 USA 0340: 0a 20 2a 2f 0a 0a 23 69 66 6e 64 65 66 20 50 57 . */..#ifndef PW 0350: 5f 47 4e 55 50 47 5f 48 0a 23 64 65 66 69 6e 65 _GNUPG_H.#define 0360: 20 50 57 5f 47 4e 55 50 47 5f 48 0a 0a 23 69 6e PW_GNUPG_H..#in 0370: 63 6c 75 64 65 20 3c 6c 69 62 78 6d 6c 2f 74 72 clude <libxml/tr 0380: 65 65 2e 68 3e 0a 23 69 6e 63 6c 75 64 65 20 3c ee.h>.#include < 0390: 6c 69 62 78 6d 6c 2f 70 61 72 73 65 72 2e 68 3e libxml/parser.h> 03a0: 0a 0a 76 6f 69 64 20 67 6e 75 70 67 5f 66 6f 72 ..void gnupg_for 03b0: 67 65 74 5f 70 61 73 73 70 68 72 61 73 65 28 29 get_passphrase() 03c0: 3b 0a 0a 69 6e 74 20 67 6e 75 70 67 5f 63 68 65 ;..int gnupg_che 03d0: 63 6b 5f 69 64 28 63 68 61 72 2a 29 3b 0a 76 6f ck_id(char*);.vo 03e0: 69 64 20 67 6e 75 70 67 5f 67 65 74 5f 69 64 28 id gnupg_get_id( 03f0: 63 68 61 72 2a 29 3b 0a 76 6f 69 64 20 67 6e 75 char*);.void gnu 0400: 70 67 5f 67 65 74 5f 69 64 73 28 63 68 61 72 20 pg_get_ids(char 0410: 2a 2a 2c 20 69 6e 74 29 3b 0a 0a 63 68 61 72 2a **, int);..char* 0420: 20 67 6e 75 70 67 5f 67 65 74 5f 66 69 6c 65 6e gnupg_get_filen 0430: 61 6d 65 28 63 68 61 72 2a 2c 20 63 68 61 72 29 ame(char*, char) 0440: 3b 0a 63 6f 6e 73 74 20 63 68 61 72 2a 20 67 6e ;.const char* gn 0450: 75 70 67 5f 67 65 74 5f 70 61 73 73 70 68 72 61 upg_get_passphra 0460: 73 65 28 29 3b 0a 0a 69 6e 74 20 67 6e 75 70 67 se();..int gnupg 0470: 5f 72 65 61 64 28 63 68 61 72 2a 2c 20 78 6d 6c _read(char*, xml 0480: 44 6f 63 50 74 72 2a 29 3b 0a 69 6e 74 20 67 6e DocPtr*);.int gn 0490: 75 70 67 5f 77 72 69 74 65 28 78 6d 6c 44 6f 63 upg_write(xmlDoc 04a0: 50 74 72 2c 20 63 68 61 72 2a 2c 20 63 68 61 72 Ptr, char*, char 04b0: 2a 29 3b 0a 69 6e 74 20 67 6e 75 70 67 5f 77 72 *);.int gnupg_wr 04c0: 69 74 65 5f 6d 61 6e 79 28 78 6d 6c 44 6f 63 50 ite_many(xmlDocP 04d0: 74 72 2c 20 63 68 61 72 2a 2a 2c 20 69 6e 74 2c tr, char**, int, 04e0: 20 63 68 61 72 2a 29 3b 0a 0a 23 65 6e 64 69 66 char*);..#endif 04f0: 0a .