~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcsrc/packages/base/httpd/httpd-2.2/util_md5.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{ Licensed to the Apache Software Foundation (ASF) under one or more
 
2
 * contributor license agreements.  See the NOTICE file distributed with
 
3
 * this work for additional information regarding copyright ownership.
 
4
 * The ASF licenses this file to You under the Apache License, Version 2.0
 
5
 * (the "License"); you may not use this file except in compliance with
 
6
 * the License.  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