rpm  4.18.0
About: RPM - The Red Hat Package Manager (rpm.org). See also the rpm 5 releases for Unix (not only Linux).
  Fossies Dox: rpm-4.18.0.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Loading...
Searching...
No Matches

How to add or remove a signature from a package header. More...

Collaboration diagram for Signature API.:

Functions

int rpmPkgSign (const char *path, const struct rpmSignArgs *args)
 Sign a package. More...
 
int rpmPkgDelSign (const char *path, const struct rpmSignArgs *args)
 Delete signature(s) from a package. More...
 
int rpmPkgDelFileSign (const char *path, const struct rpmSignArgs *args)
 Delete file signature(s) from a package. More...
 

Detailed Description

How to add or remove a signature from a package header.

Function Documentation

◆ rpmPkgDelFileSign()

int rpmPkgDelFileSign ( const char *  path,
const struct rpmSignArgs args 
)

Delete file signature(s) from a package.

Parameters
pathpath to package
argssigning parameters (or NULL for defaults)
Returns
0 on success

Definition at line 764 of file rpmgensig.c.

References rpmSign().

Referenced by main().

◆ rpmPkgDelSign()

int rpmPkgDelSign ( const char *  path,
const struct rpmSignArgs args 
)

Delete signature(s) from a package.

Parameters
pathpath to package
argssigning parameters (or NULL for defaults)
Returns
0 on success

Definition at line 759 of file rpmgensig.c.

References rpmSign().

Referenced by delSign(), and main().

◆ rpmPkgSign()

int rpmPkgSign ( const char *  path,
const struct rpmSignArgs args 
)

Sign a package.

Parameters
pathpath to package
argssigning parameters (or NULL for defaults)
Returns
0 on success

Definition at line 729 of file rpmgensig.c.

References rpmSignArgs::hashalgo, rpmSignArgs::keyid, rasprintf(), RMIL_GLOBAL, rpmPopMacro(), rpmPushMacro(), rpmSign(), and rpmSignArgs::signflags.

Referenced by addSign(), and doSign().