Differences

This shows you the differences between two versions of the page.

Link to this comparison view

apache_portable_runtime_-_base64 [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Apache Portable Runtime - Base64 ======
 +
 +IBM has ported the Base64 module of the Apache Portable Runtime to the IBM i platform for the Axis client. It can be found exported in the service program ''QSYSDIR/QAXIS10HT''.
 +
 +<sxh>
 +      /if defined(APR_BASE64_H)
 +      /eof
 +      /endif
 +      /define APR_BASE64_H
 +
 +       // APR_B64_H --  Include file with definitions for the Base64 routines
 +       //               included with the Apache Portable Runtime (APR)
 +       //
 +       //               On IBM i, this is shipped in the QSYSDIR/QAXIS10HT
 +       //               service program, which is part of 57xx-SS1 option 3
 +       //               (57xx-SS1, opt3 = Extended Base Directory Support)
 +
 +       //  APU_DECLARE(int) apr_base64_encode_len(int len);
 +       //  APU_DECLARE(int) apr_base64_encode(char * coded_dst, const char *plain_src,
 +       //                                   int len_plain_src);
 +       //  APU_DECLARE(int) apr_base64_encode_binary(char * coded_dst,
 +       //                                          const unsigned char *plain_src,
 +       //                                          int len_plain_src);
 +       //  APU_DECLARE(int) apr_base64_decode_len(const char * coded_src);
 +       //  APU_DECLARE(int) apr_base64_decode(char * plain_dst, const char *coded_src);
 +       //  APU_DECLARE(int) apr_base64_decode_binary(unsigned char * plain_dst,
 +       //                                         const char *coded_src);
 +
 +     D apr_base64_encode_len...
 +                     pr            10i 0 extproc('apr_base64_encode_len')
 +      len                          10i 0 value
 +
 +     D apr_base64_encode...
 +                     pr            10i 0 extproc('apr_base64_encode')
 +      encoded_dst               65535a   options(*varsize)
 +      plain_src                      *   value options(*string)
 +      source_len                   10i 0 value
 +
 +     D apr_base64_encode_binary...
 +                     pr            10i 0 extproc('apr_base64_encode_binary')
 +      coded_dst                 65535a   options(*varsize)
 +      plain_src                 65535a   options(*varsize) const
 +      source_len                   10i 0 value
 +
 +     D apr_base64_encode_binary_ptr...
 +                     pr            10i 0 extproc('apr_base64_encode_binary')
 +      coded_dst                      *
 +      plain_src                      *   const
 +      source_len                   10i 0 value
 +
 +     D apr_base64_decode_len...
 +                     pr            10i 0 extproc('apr_base64_decode_len')
 +      source_plain                     value options(*string)
 +
 +     D apr_base64_decode...
 +                     pr            10i 0 extproc('apr_base64_decode')
 +      plain_dst                 65535a   options(*varsize)
 +      coded_src                      *   value options(*string)
 +
 +     D apr_base64_decode_ptr...
 +                     pr            10i 0 extproc('apr_base64_decode')
 +      plain_dst                      *
 +      coded_src                      *   const
 +
 +     D apr_base64_decode_binary...
 +                     pr            10i 0 extproc('apr_base64_decode_binary')
 +      plain_dst                 65535a   options(*varsize)
 +      coded_src                      *   value options(*string)
 +
 +     D apr_base64_decode_binary_ptr...
 +                     pr            10i 0 extproc('apr_base64_decode_binary')
 +      plain_dst                      *
 +      coded_src                      *   const
 +
 +</sxh>
 +
 +{{tag>ibm}}