require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__KEYNOTE_H__)) {
    eval 'sub __KEYNOTE_H__ () {1;}' unless defined(&__KEYNOTE_H__);
    eval 'sub SIG_DSA_SHA1_HEX () {"sig-dsa-sha1-hex:";}' unless defined(&SIG_DSA_SHA1_HEX);
    eval 'sub SIG_DSA_SHA1_HEX_LEN () { &strlen( &SIG_DSA_SHA1_HEX);}' unless defined(&SIG_DSA_SHA1_HEX_LEN);
    eval 'sub SIG_DSA_SHA1_BASE64 () {"sig-dsa-sha1-base64:";}' unless defined(&SIG_DSA_SHA1_BASE64);
    eval 'sub SIG_DSA_SHA1_BASE64_LEN () { &strlen( &SIG_DSA_SHA1_BASE64);}' unless defined(&SIG_DSA_SHA1_BASE64_LEN);
    eval 'sub SIG_RSA_SHA1_PKCS1_HEX () {"sig-rsa-sha1-hex:";}' unless defined(&SIG_RSA_SHA1_PKCS1_HEX);
    eval 'sub SIG_RSA_SHA1_PKCS1_HEX_LEN () { &strlen( &SIG_RSA_SHA1_PKCS1_HEX);}' unless defined(&SIG_RSA_SHA1_PKCS1_HEX_LEN);
    eval 'sub SIG_RSA_SHA1_PKCS1_BASE64 () {"sig-rsa-sha1-base64:";}' unless defined(&SIG_RSA_SHA1_PKCS1_BASE64);
    eval 'sub SIG_RSA_SHA1_PKCS1_BASE64_LEN () { &strlen( &SIG_RSA_SHA1_PKCS1_BASE64);}' unless defined(&SIG_RSA_SHA1_PKCS1_BASE64_LEN);
    eval 'sub SIG_RSA_MD5_PKCS1_HEX () {"sig-rsa-md5-hex:";}' unless defined(&SIG_RSA_MD5_PKCS1_HEX);
    eval 'sub SIG_RSA_MD5_PKCS1_HEX_LEN () { &strlen( &SIG_RSA_MD5_PKCS1_HEX);}' unless defined(&SIG_RSA_MD5_PKCS1_HEX_LEN);
    eval 'sub SIG_RSA_MD5_PKCS1_BASE64 () {"sig-rsa-md5-base64:";}' unless defined(&SIG_RSA_MD5_PKCS1_BASE64);
    eval 'sub SIG_RSA_MD5_PKCS1_BASE64_LEN () { &strlen( &SIG_RSA_MD5_PKCS1_BASE64);}' unless defined(&SIG_RSA_MD5_PKCS1_BASE64_LEN);
    eval 'sub SIG_ELGAMAL_SHA1_HEX () {"sig-elgamal-sha1-hex:";}' unless defined(&SIG_ELGAMAL_SHA1_HEX);
    eval 'sub SIG_ELGAMAL_SHA1_HEX_LEN () { &strlen( &SIG_ELGAMAL_SHA1_HEX);}' unless defined(&SIG_ELGAMAL_SHA1_HEX_LEN);
    eval 'sub SIG_ELGAMAL_SHA1_BASE64 () {"sig-elgamal-sha1-base64:";}' unless defined(&SIG_ELGAMAL_SHA1_BASE64);
    eval 'sub SIG_ELGAMAL_SHA1_BASE64_LEN () { &strlen( &SIG_ELGAMAL_SHA1_BASE64);}' unless defined(&SIG_ELGAMAL_SHA1_BASE64_LEN);
    eval 'sub SIG_PGP_NATIVE () {"sig-pgp:";}' unless defined(&SIG_PGP_NATIVE);
    eval 'sub SIG_PGP_NATIVE_LEN () { &strlen( &SIG_PGP_NATIVE);}' unless defined(&SIG_PGP_NATIVE_LEN);
    eval 'sub SIG_X509_SHA1_BASE64 () {"sig-x509-sha1-base64:";}' unless defined(&SIG_X509_SHA1_BASE64);
    eval 'sub SIG_X509_SHA1_BASE64_LEN () { &strlen( &SIG_X509_SHA1_BASE64);}' unless defined(&SIG_X509_SHA1_BASE64_LEN);
    eval 'sub SIG_X509_SHA1_HEX () {"sig-x509-sha1-hex:";}' unless defined(&SIG_X509_SHA1_HEX);
    eval 'sub SIG_X509_SHA1_HEX_LEN () { &strlen( &SIG_X509_SHA1_HEX);}' unless defined(&SIG_X509_SHA1_HEX_LEN);
    eval 'sub SIGRESULT_UNTOUCHED () {0;}' unless defined(&SIGRESULT_UNTOUCHED);
    eval 'sub SIGRESULT_FALSE () {1;}' unless defined(&SIGRESULT_FALSE);
    eval 'sub SIGRESULT_TRUE () {2;}' unless defined(&SIGRESULT_TRUE);
    eval 'sub ENVIRONMENT_FLAG_FUNC () {0x1;}' unless defined(&ENVIRONMENT_FLAG_FUNC);
    eval 'sub ENVIRONMENT_FLAG_REGEX () {0x2;}' unless defined(&ENVIRONMENT_FLAG_REGEX);
    eval 'sub ASSERT_FLAG_LOCAL () {0x1;}' unless defined(&ASSERT_FLAG_LOCAL);
    eval 'sub ASSERT_FLAG_SIGGEN () {0x2;}' unless defined(&ASSERT_FLAG_SIGGEN);
    eval 'sub ASSERT_FLAG_SIGVER () {0x4;}' unless defined(&ASSERT_FLAG_SIGVER);
    eval 'sub RESULT_FALSE () {0;}' unless defined(&RESULT_FALSE);
    eval 'sub RESULT_TRUE () {1;}' unless defined(&RESULT_TRUE);
    eval 'sub KEYNOTE_CALLBACK_INITIALIZE () {"_KEYNOTE_CALLBACK_INITIALIZE";}' unless defined(&KEYNOTE_CALLBACK_INITIALIZE);
    eval 'sub KEYNOTE_CALLBACK_CLEANUP () {"_KEYNOTE_CALLBACK_CLEANUP";}' unless defined(&KEYNOTE_CALLBACK_CLEANUP);
    eval 'sub KEYNOTE_VERSION_STRING () {"2";}' unless defined(&KEYNOTE_VERSION_STRING);
    eval 'sub ERROR_MEMORY () {-1;}' unless defined(&ERROR_MEMORY);
    eval 'sub ERROR_SYNTAX () {-2;}' unless defined(&ERROR_SYNTAX);
    eval 'sub ERROR_NOTFOUND () {-3;}' unless defined(&ERROR_NOTFOUND);
    eval 'sub ERROR_SIGN_FAILURE () {-4;}' unless defined(&ERROR_SIGN_FAILURE);
    eval 'sub KEYNOTE_ALGORITHM_UNSPEC () {-1;}' unless defined(&KEYNOTE_ALGORITHM_UNSPEC);
    eval 'sub KEYNOTE_ALGORITHM_NONE () {0;}' unless defined(&KEYNOTE_ALGORITHM_NONE);
    eval 'sub KEYNOTE_ALGORITHM_DSA () {1;}' unless defined(&KEYNOTE_ALGORITHM_DSA);
    eval 'sub KEYNOTE_ALGORITHM_ELGAMAL () {2;}' unless defined(&KEYNOTE_ALGORITHM_ELGAMAL);
    eval 'sub KEYNOTE_ALGORITHM_PGP () {3;}' unless defined(&KEYNOTE_ALGORITHM_PGP);
    eval 'sub KEYNOTE_ALGORITHM_BINARY () {4;}' unless defined(&KEYNOTE_ALGORITHM_BINARY);
    eval 'sub KEYNOTE_ALGORITHM_X509 () {5;}' unless defined(&KEYNOTE_ALGORITHM_X509);
    eval 'sub KEYNOTE_ALGORITHM_RSA () {6;}' unless defined(&KEYNOTE_ALGORITHM_RSA);
    eval 'sub KEYNOTE_ERROR_ANY () {0;}' unless defined(&KEYNOTE_ERROR_ANY);
    eval 'sub KEYNOTE_ERROR_SYNTAX () {1;}' unless defined(&KEYNOTE_ERROR_SYNTAX);
    eval 'sub KEYNOTE_ERROR_MEMORY () {2;}' unless defined(&KEYNOTE_ERROR_MEMORY);
    eval 'sub KEYNOTE_ERROR_SIGNATURE () {3;}' unless defined(&KEYNOTE_ERROR_SIGNATURE);
    eval 'sub ENCODING_NONE () {0;}' unless defined(&ENCODING_NONE);
    eval 'sub ENCODING_HEX () {1;}' unless defined(&ENCODING_HEX);
    eval 'sub ENCODING_BASE64 () {2;}' unless defined(&ENCODING_BASE64);
    eval 'sub ENCODING_NATIVE () {3;}' unless defined(&ENCODING_NATIVE);
    eval 'sub INTERNAL_ENC_NONE () {0;}' unless defined(&INTERNAL_ENC_NONE);
    eval 'sub INTERNAL_ENC_PKCS1 () {1;}' unless defined(&INTERNAL_ENC_PKCS1);
    eval 'sub INTERNAL_ENC_ASN1 () {2;}' unless defined(&INTERNAL_ENC_ASN1);
    eval 'sub INTERNAL_ENC_NATIVE () {3;}' unless defined(&INTERNAL_ENC_NATIVE);
    eval 'sub KEYNOTE_PUBLIC_KEY () {0;}' unless defined(&KEYNOTE_PUBLIC_KEY);
    eval 'sub KEYNOTE_PRIVATE_KEY () {1;}' unless defined(&KEYNOTE_PRIVATE_KEY);
}
1;
