~ubuntu-branches/ubuntu/lucid/fpc/lucid-proposed

« back to all changes in this revision

Viewing changes to fpcsrc/packages/httpd20/src/util_md5.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-10-09 23:29:00 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081009232900-553f61m37jkp6upv
Tags: 2.2.2-4
[ Torsten Werner ]
* Update ABI version in fpc-depends automatically.
* Remove empty directories from binary package fpc-source.

[ Mazen Neifer ]
* Removed leading path when calling update-alternatives to remove a Linitian
  error.
* Fixed clean target.
* Improved description of packages. (Closes: #498882)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{ Copyright 1999-2005 The Apache Software Foundation or its licensors, as
 
2
 * applicable.
 
3
 *
 
4
 * Licensed under the Apache License, Version 2.0 (the "License");
 
5
 * you may not use this file except in compliance with the License.
 
6
 * You may obtain a copy of the License at
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
10
 * Unless required by applicable law or agreed to in writing, software
 
11
 * distributed under the License is distributed on an "AS IS" BASIS,
 
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 }
 
16
 
 
17
{
 
18
 * @package Apache MD5 library
 
19
 }
 
20
 
 
21
//#include "apr_md5.h"
 
22
 
 
23
{
 
24
 * Create an MD5 checksum of a given string
 
25
 * @param a Pool to allocate out of
 
26
 * @param string String to get the checksum of
 
27
 * @return The checksum
 
28
 * @deffunc char *ap_md5(apr_pool_t *a, const unsigned char *string)
 
29
 }
 
30
function ap_md5(p: Papr_pool_t; const string_: PChar): PChar;
 
31
 {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
 
32
 external LibHTTPD name LibNamePrefix + 'ap_md5' + LibSuff8;
 
33
 
 
34
{
 
35
 * Create an MD5 checksum of a string of binary data
 
36
 * @param a Pool to allocate out of
 
37
 * @param buf Buffer to generate checksum for
 
38
 * @param len The length of the buffer
 
39
 * @return The checksum
 
40
 * @deffunc char *ap_md5_binary(apr_pool_t *a, const unsigned char *buf, int len)
 
41
 }
 
42
function ap_md5_binary(a: Papr_pool_t; const buf: PChar; len: Integer): PChar;
 
43
 {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
 
44
 external LibHTTPD name LibNamePrefix + 'ap_md5_binary' + LibSuff12;
 
45
 
 
46
{
 
47
 * Convert an MD5 checksum into a base64 encoding
 
48
 * @param p The pool to allocate out of
 
49
 * @param context The context to convert
 
50
 * @return The converted encoding
 
51
 * @deffunc char *ap_md5contextTo64(apr_pool_t *p, apr_md5_ctx_t *context)
 
52
 }
 
53
function ap_md5contextTo64(a: Papr_pool_t; context: Papr_md5_ctx_t): PChar;
 
54
 {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
 
55
 external LibHTTPD name LibNamePrefix + 'ap_md5contextTo64' + LibSuff8;
 
56
 
 
57
{
 
58
 * Create an MD5 Digest for a given file
 
59
 * @param p The pool to allocate out of
 
60
 * @param infile The file to create the digest for
 
61
 * @deffunc char *ap_md5digest(apr_pool_t *p, apr_file_t *infile)
 
62
 }
 
63
function ap_md5digest(p: Papr_pool_t; infile: Papr_file_t): PChar;
 
64
 {$IFDEF WINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
 
65
 external LibHTTPD name LibNamePrefix + 'ap_md5digest' + LibSuff8;
 
66