~ubuntu-branches/ubuntu/hardy/aide/hardy-proposed

« back to all changes in this revision

Viewing changes to include/base64.h

  • Committer: Bazaar Package Importer
  • Author(s): Mike Markley
  • Date: 2002-03-15 20:20:06 UTC
  • Revision ID: james.westby@ubuntu.com-20020315202006-fywvbk2rzaqe5ku2
Tags: upstream-0.8
ImportĀ upstreamĀ versionĀ 0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
**
 
3
** Copyright (C) 1994 Swedish University Network (SUNET)
 
4
** Modified by Rami Lehti (C) 1999
 
5
** $Header: /cvs-root-aide/aide/include/base64.h,v 1.5 2000/04/20 12:44:49 rammer Exp $
 
6
**
 
7
**
 
8
** This program is free software; you can redistribute it and/or modify
 
9
** it under the terms of the GNU General Public License as published by
 
10
** the Free Software Foundation; either version 2 of the License, or
 
11
** (at your option) any later version.
 
12
**
 
13
** This program is distributed in the hope that it will be useful,
 
14
** but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
** MERCHANTABILITY or FITTNESS FOR A PARTICULAR PURPOSE. See the
 
16
** GNU General Public License for more details.
 
17
** 
 
18
** You should have received a copy of the GNU General Public License
 
19
** along with this program; if not, write to the Free Software
 
20
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
21
**
 
22
**
 
23
**                                        Martin.Wendel@udac.uu.se
 
24
**                                        Torbjorn.Wictorin@udac.uu.se
 
25
**
 
26
**                                        UDAC  
 
27
**                                        P.O. Box 174
 
28
**                                        S-751 04 Uppsala
 
29
**                                        Sweden
 
30
**
 
31
*/
 
32
 
 
33
#ifndef _BASE64_H_INCLUDED
 
34
#define _BASE64_H_INCLUDED
 
35
#include <sys/types.h>
 
36
#include <assert.h>
 
37
#include "types.h"
 
38
 
 
39
#define B64_BUF 16384
 
40
#define FAIL -1
 
41
#define SKIP -2
 
42
 
 
43
 
 
44
char* encode_base64(byte* src,size_t ssize);
 
45
 
 
46
byte* decode_base64(char* src,size_t ssize);
 
47
 
 
48
 
 
49
#endif /* _BASE64_H_INCLUDED */