/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
 *  Authors: Jeffrey Stedfast <fejj@helixcode.com>
 *
 *  Copyright 2000 Helix Code, Inc. (www.helixcode.com)
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
 *
 */

#ifndef MAIL_CRYPTO_H
#define MAIL_CRYPTO_H

#include <camel/camel.h>
#include <camel/camel-pgp-mime.h>

#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus }*/

gboolean mail_crypto_is_smime_v3_signed (CamelMimePart *mime_part);
gboolean mail_crypto_is_pkcs7_mime (CamelMimePart *mime_part);

void mail_crypto_pgp_mime_part_sign (CamelMimePart **mime_part,
				     const char *userid,
				     CamelCipherHash hash,
				     CamelException *ex);

CamelCipherValidity *mail_crypto_pgp_mime_part_verify (CamelMimePart *mime_part,
						       CamelException *ex);

void mail_crypto_pgp_mime_part_encrypt (CamelMimePart **mime_part,
					GPtrArray *recipients,
					CamelException *ex);

CamelMimePart *mail_crypto_pgp_mime_part_decrypt (CamelMimePart *mime_part,
						  CamelException *ex);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* ! MAIL_CRYPTO_H */
graphics obsolete development ports (https://github.com/freebsd/freebsd-ports-graphics)</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/about/'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/refs/?id=50282e76ae737c47a0a3e1e5f7e9f954d2447375'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio/mpiosh/Makefile'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/tree/audio/mpiosh/Makefile?id=50282e76ae737c47a0a3e1e5f7e9f954d2447375'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/audio/mpiosh/Makefile?id=50282e76ae737c47a0a3e1e5f7e9f954d2447375'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/diff/audio/mpiosh/Makefile?id=50282e76ae737c47a0a3e1e5f7e9f954d2447375'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/stats/audio/mpiosh/Makefile'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio/mpiosh/Makefile'>
<input type='hidden' name='id' value='50282e76ae737c47a0a3e1e5f7e9f954d2447375'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/?id=50282e76ae737c47a0a3e1e5f7e9f954d2447375'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio?id=50282e76ae737c47a0a3e1e5f7e9f954d2447375'>audio</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio/mpiosh?id=50282e76ae737c47a0a3e1e5f7e9f954d2447375'>mpiosh</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio/mpiosh/Makefile?id=50282e76ae737c47a0a3e1e5f7e9f954d2447375'>Makefile</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/audio/mpiosh/Makefile?id=50282e76ae737c47a0a3e1e5f7e9f954d2447375&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/audio/mpiosh/Makefile?id=9c82607227181a022df46fe877788a53b1b0e376'>- Update to 0.7.1 pre2</a></td><td>pav</td><td><span title='2004-05-31 20:20:13 +0800'>2004-05-31</span></td><td>1</td><td><span class='deletions'>-12</span>/<span class='insertions'>+4</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/audio/mpiosh/Makefile?id=ec7e839df6339ee2ce45b2a86705d36babd6ddb2'>- Use USE_ICONV knob</a></td><td>krion</td><td><span title='2004-03-31 03:20:22 +0800'>2004-03-31</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/audio/mpiosh/Makefile?id=9291e9a32f6612ca0d4f25bdcb5c417e0451d313'>Whoa there, boy, that's a mighty big commit y'all have there...</a></td><td>ade</td><td><span title='2004-03-14 14:17:56 +0800'>2004-03-14</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>