Variables removed (see discussion "buildsystem curiosity" on mailing list).
[AROS-Contrib.git] / regina / regutil / regcrypt.c
blobb7ec16a75ea0070cf76045fbccb25253ce40784d
1 /* Decrypt/Encrypt functions for regutil
3 * The contents of this file are subject to the Mozilla Public License
4 * Version 1.0 (the "License"); you may not use this file except in
5 * compliance with the License. You may obtain a copy of the License at
6 * http://www.mozilla.org/MPL/
8 * Software distributed under the License is distributed on an "AS IS"
9 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
10 * License for the specific language governing rights and limitations
11 * under the License.
13 * The Original Code is regutil.
15 * The Initial Developer of the Original Code is Patrick TJ McPhee.
16 * Portions created by Patrick McPhee are Copyright © 2003
17 * Patrick TJ McPhee. All Rights Reserved.
19 * Contributors:
21 * $Header: /opt/cvs/Regina/regutil/regcrypt.c,v 1.1 2009/10/07 07:51:45 mark Exp $
23 #include "rxproto.h"
25 /* Currently, this is implemented as a stub. I'm going to think about it a
26 * bit more before I decide whether to proceed with an implementation.
27 * I have issues because
28 * 1. the interface implies purely trivial encryption of some sort;
29 * 2. which nonetheless could result in the original data being destroyed;
30 * 3. and likely wouldn't be portable between systems.
33 static const char failure[] = "82";
36 /* rc = SysWinEncryptFile(filename) */
37 rxfunc(syswinencryptfile)
39 checkparam(1, 1);
41 memcpy(result->strptr, failure, sizeof(failure)-1);
42 result->strlength = sizeof(failure)-1;
44 return 0;
47 rxfunc(syswindecryptfile)
49 checkparam(1, 1);
51 memcpy(result->strptr, failure, sizeof(failure)-1);
52 result->strlength = sizeof(failure)-1;
54 return 0;