1 /* Copyright (C) 2001-2006 Artifex Software, Inc.
2    All Rights Reserved.
3 
4    This software is provided AS-IS with no warranty, either express or
5    implied.
6 
7    This software is distributed under license and may not be copied, modified
8    or distributed except as expressly authorized under the terms of that
9    license.  Refer to licensing information at http://www.artifex.com/
10    or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
11    San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12 */
13 
14 /* $Id: zfmd5.c 9043 2008-08-28 22:48:19Z giles $ */
15 /* MD5Encode filter creation */
16 #include "memory_.h"
17 #include "ghost.h"
18 #include "oper.h"
19 #include "gsstruct.h"
20 #include "ialloc.h"
21 #include "stream.h"
22 #include "strimpl.h"
23 #include "smd5.h"
24 #include "ifilter.h"
25 
26 /* <source> MD5Encode/filter <file> */
27 /* <source> <dict> MD5Encode/filter <file> */
28 static int
zMD5E(i_ctx_t * i_ctx_p)29 zMD5E(i_ctx_t *i_ctx_p)
30 {
31     return filter_write_simple(i_ctx_p, &s_MD5E_template);
32 }
33 
34 /* ------ Initialization procedure ------ */
35 
36 const op_def zfmd5_op_defs[] =
37 {
38     op_def_begin_filter(),
39     {"1MD5Encode", zMD5E},
40     op_def_end(0)
41 };
42