~yolanda.robla/ubuntu/saucy/freeradius/dep-8-tests

« back to all changes in this revision

Viewing changes to src/include/md5.h

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20091123035737-snauioz5r9tf8sdr
Tags: upstream-2.1.7+dfsg
ImportĀ upstreamĀ versionĀ 2.1.7+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * md5.h        Structures and prototypes for md5.
3
3
 *
4
 
 * Version:     $Id: md5.h,v 1.18 2007/11/23 13:46:55 aland Exp $
 
4
 * Version:     $Id$
5
5
 * License:             LGPL, but largely derived from a public domain source.
6
6
 *
7
7
 */
10
10
#define _FR_MD5_H
11
11
 
12
12
#include <freeradius-devel/ident.h>
13
 
RCSIDH(md5_h, "$Id: md5.h,v 1.18 2007/11/23 13:46:55 aland Exp $")
 
13
RCSIDH(md5_h, "$Id$")
14
14
 
15
15
#ifdef HAVE_INTTYPES_H
16
16
#include <inttypes.h>
26
26
 
27
27
#include <string.h>
28
28
 
 
29
#ifndef WITH_OPENSSL_MD5
29
30
/*  The below was retrieved from
30
31
 *  http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/crypto/md5.h?rev=1.1
31
32
 *  With the following changes: uint64_t => uint32_t[2]
67
68
/*              __attribute__((__bounded__(__minbytes__,2,MD5_BLOCK_LENGTH)))*/;
68
69
/* __END_DECLS */
69
70
 
 
71
#else  /* WITH_OPENSSL_HASH */
 
72
 
 
73
#include <openssl/md5.h>
 
74
 
 
75
#define FR_MD5_CTX      MD5_CTX
 
76
#define fr_MD5Init      MD5_Init
 
77
#define fr_MD5Update    MD5_Update
 
78
#define fr_MD5Final     MD5_Final
 
79
#define fr_MD5Transform MD5_Transform
 
80
#endif
 
81
 
70
82
#endif /* _FR_MD5_H */