{-------------------------------------------------------------------------------
Translated form headers/x509.h

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      THIS ISN'T COMPLETE TRANSLATION OF C++ HEADERS AND NEVER WILL BE.

  FOR COPYRIGHT OF ORIGINAL ERIC YOUNG SOFTWARE LOOK AT FILES IN HEADER FOLDER.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

      Copyright (C) 1998 by Jan Tomasek <xtomasej@fel.cvut.cz>
      All rights reserved.

      This library is free for commercial and non-commercial use as long as
      the following conditions are aheared to.  The following conditions
      apply to all code found in this distribution.  The documentation
      included with this distribution is covered by the same copyright terms.

      Copyright remains Jan Tomasek's, and as such any Copyright notices in
      the code are not to be removed.
      If this package is used in a product, Jan Tomasek should be given
      attribution as the author of the parts of the library used.
      This can be in the form of a textual message at program startup or
      in documentation (online or textual) provided with the package.

      Redistribution and use in source and binary forms, with or without
      modification, are permitted provided that the following conditions
      are met:
      1. Redistributions of source code must retain the copyright
         notice, this list of conditions and the following disclaimer.
      2. Redistributions in binary form must reproduce the above copyright
         notice, this list of conditions and the following disclaimer in the
         documentation and/or other materials provided with the distribution.
      3. All advertising materials mentioning features or use of this software
         must display the following acknowledgement:
             "This product includes software written by
              Jan Tomasek <xtomasej@fel.cvut.cz>"

      THIS SOFTWARE IS PROVIDED BY JAN TOMASEK ``AS IS'' AND
      ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
      IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
      ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
      FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
      DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
      OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
      HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
      LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
      OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
      SUCH DAMAGE.

      The licence and distribution terms for any publically available version or
      derivative of this code cannot be changed.  i.e. this code cannot simply
      be copied and put under another distribution licence
      [including the GNU Public Licence.]
-------------------------------------------------------------------------------}
procedure x509_p2(var Result:Boolean);
begin
 @X509_verify                       := LoadFunction(Result, 'X509_verify');
 @X509_verify_cert_error_string     := LoadFunction(Result, 'X509_verify_cert_error_string');

 @X509_REQ_verify                   := LoadFunction(Result, 'X509_REQ_verify');
 @X509_CRL_verify                   := LoadFunction(Result, 'X509_CRL_verify');
 @NETSCAPE_SPKI_verify              := LoadFunction(Result, 'NETSCAPE_SPKI_verify');

 @X509_sign                         := LoadFunction(Result, 'X509_sign');
 @X509_REQ_sign                     := LoadFunction(Result, 'X509_REQ_sign');
 @X509_CRL_sign                     := LoadFunction(Result, 'X509_CRL_sign');
 @NETSCAPE_SPKI_sign                := LoadFunction(Result, 'NETSCAPE_SPKI_sign');

 @X509_digest                       := LoadFunction(Result, 'X509_digest');
 @X509_NAME_digest                  := LoadFunction(Result, 'X509_NAME_digest');

 @X509_new                          := LoadFunction(Result, 'X509_new');
 @X509_free                         := LoadFunction(Result, 'X509_free');

 @X509_set_version                  := LoadFunction(Result, 'X509_set_version');
 @X509_set_serialNumber             := LoadFunction(Result, 'X509_set_serialNumber');
 @X509_get_serialNumber             := LoadFunction(Result, 'X509_get_serialNumber');
 @X509_set_issuer_name              := LoadFunction(Result, 'X509_set_issuer_name');
 @X509_get_issuer_name              := LoadFunction(Result, 'X509_get_issuer_name');
 @X509_set_subject_name             := LoadFunction(Result, 'X509_set_subject_name');
 @X509_get_subject_name             := LoadFunction(Result, 'X509_get_subject_name');
 @X509_set_notBefore                := LoadFunction(Result, 'X509_set_notBefore');
 @X509_set_notAfter                 := LoadFunction(Result, 'X509_set_notAfter');
 @X509_set_pubkey                   := LoadFunction(Result, 'X509_set_pubkey');
 @X509_get_pubkey                   := LoadFunction(Result, 'X509_get_pubkey');
 @X509_certificate_type             := LoadFunction(Result, 'X509_certificate_type');

 @X509_INFO_new                     := LoadFunction(Result, 'X509_INFO_new');
 @X509_INFO_free                    := LoadFunction(Result, 'X509_INFO_free');
 @X509_NAME_oneline                 := LoadFunction(Result, 'X509_NAME_oneline');

 @X509_REQ_set_version              := LoadFunction(Result, 'X509_REQ_set_version');
 @X509_REQ_set_subject_name         := LoadFunction(Result, 'X509_REQ_set_subject_name');
 @X509_REQ_set_pubkey               := LoadFunction(Result, 'X509_REQ_set_pubkey');
 @X509_REQ_get_pubkey               := LoadFunction(Result, 'X509_REQ_get_pubkey');

 @X509_check_private_key            := LoadFunction(Result, 'X509_check_private_key');

 @X509_issuer_and_serial_cmp        := LoadFunction(Result, 'X509_issuer_and_serial_cmp');
 @X509_issuer_and_serial_hash       := LoadFunction(Result, 'X509_issuer_and_serial_hash');

 @X509_issuer_name_cmp              := LoadFunction(Result, 'X509_issuer_name_cmp');
 @X509_issuer_name_hash             := LoadFunction(Result, 'X509_issuer_name_hash');

 @X509_subject_name_cmp             := LoadFunction(Result, 'X509_subject_name_cmp');
 @X509_subject_name_hash            := LoadFunction(Result, 'X509_subject_name_hash');

 @X509_NAME_cmp                     := LoadFunction(Result, 'X509_NAME_cmp');
 @X509_NAME_hash                    := LoadFunction(Result, 'X509_NAME_hash');

 @X509_CRL_cmp                      := LoadFunction(Result, 'X509_CRL_cmp');
end;
