Blame doc/librpm/html/rpmbase64_8h_source.html

2ff057
2ff057
<html xmlns="http://www.w3.org/1999/xhtml">
2ff057
<head>
2ff057
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
2ff057
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2ff057
<meta name="generator" content="Doxygen 1.8.14"/>
2ff057
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2ff057
<title>rpm: rpmbase64.h Source File</title>
2ff057
<link href="tabs.css" rel="stylesheet" type="text/css"/>
2ff057
<script type="text/javascript" src="jquery.js"></script>
2ff057
<script type="text/javascript" src="dynsections.js"></script>
2ff057
<link href="doxygen.css" rel="stylesheet" type="text/css" />
2ff057
</head>
2ff057
<body>
2ff057
2ff057
2ff057
2ff057
 
2ff057
 
2ff057
  
2ff057
   
rpm
2ff057
    4.14.2
2ff057
   
2ff057
  
2ff057
 
2ff057
 
2ff057
2ff057
2ff057
2ff057
2ff057
<script type="text/javascript" src="menudata.js"></script>
2ff057
<script type="text/javascript" src="menu.js"></script>
2ff057
<script type="text/javascript">
2ff057
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
2ff057
$(function() {
2ff057
  initMenu('',false,false,'search.php','Search');
2ff057
});
2ff057
/* @license-end */</script>
2ff057
2ff057
2ff057
  
    2ff057
  • rpmio
  • 2ff057
    2ff057
    2ff057
    2ff057
      
    2ff057
    rpmbase64.h
    2ff057
    2ff057
    2ff057
    Go to the documentation of this file.
    1 /* base64 encoder/decoder based on public domain implementation
    2  * by Chris Venter */
    3 
    10 #include <sys/types.h>
    11 
    12 #ifdef __cplusplus
    13 extern "C" {
    14 #endif
    15 
    16 /* returns malloced base64 encoded string
    17  * lines are split with \n characters to be nearest lower multiple of linelen
    18  * if linelen/4 == 0 lines are not split
    19  * if linelen < 0 default line length (64) is used
    20  * the returned string is empty when len == 0
    21  * returns NULL on failures
    22  */
    23 char *rpmBase64Encode(const void *data, size_t len, int linelen);
    24 
    25 /* decodes from zero terminated base64 encoded string to a newly malloced buffer
    26  * ignores whitespace characters in the input string
    27  * return values:
    28  * 0 - OK
    29  * 1 - input is NULL
    30  * 2 - invalid length
    31  * 3 - invalid characters on input
    32  * 4 - malloc failed
    33  */
    34 int rpmBase64Decode(const char *in, void **out, size_t *outlen);
    35 
    36 /* counts CRC24 and base64 encodes it in a malloced string
    37  * returns NULL on failures
    38  */
    39 char *rpmBase64CRC(const unsigned char *data, size_t len);
    40 
    41 #ifdef __cplusplus
    42 }
    43 #endif
    char * rpmBase64CRC(const unsigned char *data, size_t len)
    2ff057
    char * rpmBase64Encode(const void *data, size_t len, int linelen)
    2ff057
    int rpmBase64Decode(const char *in, void **out, size_t *outlen)
    2ff057
    2ff057
    2ff057

    <address class="footer"><small>
    2ff057
    Generated by  
    2ff057
    doxygen
    2ff057
     1.8.14
    2ff057
    </small></address>
    2ff057
    </body>
    2ff057
    </html>