Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

lib/md5.h File Reference

More...

#include <sys/types.h>

Go to the source code of this file.

Compounds

struct  MD5Context

Typedefs

typedef unsigned int uint32
typedef struct MD5Context MD5_CTX

Functions

int mdfile (const char *fn, unsigned char *digest)
 Return MD5 sum of file as ASCII string. More...

int mdbinfile (const char *fn, unsigned char *bindigest)
 Return MD5 sum of file as binary data. More...

int mdfileBroken (const char *fn, unsigned char *digest)
 Return (broken!) MD5 sum of file as ASCII string. More...

int mdbinfileBroken (const char *fn, unsigned char *bindigest)
 Return (broken!) MD5 sum of file as binary data. More...


Detailed Description

Todo:
Eliminate, use rpmio version instead.

Definition in file md5.h.


Typedef Documentation

typedef struct MD5Context MD5_CTX
 

Definition at line 25 of file md5.h.

typedef unsigned int uint32
 

Definition at line 10 of file md5.h.


Function Documentation

int mdbinfile ( const char * fn,
unsigned char * bindigest )
 

Return MD5 sum of file as binary data.

Parameters:
fn   file name
Return values:
bindigest   MD5 digest
Returns:
0 on success, 1 on error

Definition at line 110 of file md5sum.c.

Referenced by rpmAddSignature().

int mdbinfileBroken ( const char * fn,
unsigned char * bindigest )
 

Return (broken!) MD5 sum of file as binary data.

Deprecated:
Here for compatibility with old (broken) versions of RPM.
Parameters:
fn   file name
Return values:
bindigest   MD5 digest
Returns:
0 on success, 1 on error

Definition at line 114 of file md5sum.c.

int mdfile ( const char * fn,
unsigned char * digest )
 

Return MD5 sum of file as ASCII string.

Parameters:
fn   file name
Return values:
digest   MD5 digest
Returns:
0 on success, 1 on error

Definition at line 118 of file md5sum.c.

Referenced by decideFileFate(), genCpioListAndHeader(), handleOverlappedFiles(), hdrVerifyFile(), and rpmVerifyFile().

int mdfileBroken ( const char * fn,
unsigned char * digest )
 

Return (broken!) MD5 sum of file as ASCII string.

Deprecated:
Here for compatibility with old (broken) versions of RPM.
Parameters:
fn   file name
Return values:
digest   MD5 digest
Returns:
0 on success, 1 on error

Definition at line 122 of file md5sum.c.

Referenced by decideFileFate(), and rpmVerifyFile().


Generated at Sun Apr 8 18:43:04 2001 for rpm by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000