On the svn-auth-x509 branch, make the X509 parser return svn-style errors.

* subversion/include/svn_error_codes.h
  (SVN_ERR_X509_CATEGORY_START): New error category for the X509 parser.
  (SVN_ERR_ASN1_OUT_OF_DATA, SVN_ERR_ASN1_UNEXPECTED_TAG,
   SVN_ERR_ASN1_INVALID_LENGTH, SVN_ERR_ASN1_LENGTH_MISMATCH,
   SVN_ERR_ASN1_INVALID_DATA, SVN_ERR_X509_FEATURE_UNAVAILABLE,
   SVN_ERR_X509_CERT_INVALID_PEM, SVN_ERR_X509_CERT_INVALID_FORMAT,
   SVN_ERR_X509_CERT_INVALID_VERSION, SVN_ERR_X509_CERT_INVALID_SERIAL,
   SVN_ERR_X509_CERT_INVALID_ALG, SVN_ERR_X509_CERT_INVALID_NAME,
   SVN_ERR_X509_CERT_INVALID_DATE, SVN_ERR_X509_CERT_INVALID_PUBKEY,
   SVN_ERR_X509_CERT_INVALID_SIGNATURE, SVN_ERR_X509_CERT_INVALID_EXTENSIONS,
   SVN_ERR_X509_CERT_UNKNOWN_VERSION, SVN_ERR_X509_CERT_UNKNOWN_SIG_ALG,
   SVN_ERR_X509_CERT_UNKNOWN_PK_ALG, SVN_ERR_X509_CERT_SIG_MISMATCH,
   SVN_ERR_X509_CERT_VERIFY_FAILED): New error codes. Mapped from tropicssl.

* subversion/libsvn_subr/x509.h
  (TROPICSSL_ERR_ASN1_OUT_OF_DATA0014,
   TROPICSSL_ERR_ASN1_UNEXPECTED_TAG0016,
   TROPICSSL_ERR_ASN1_INVALID_LENGTH0018,
   TROPICSSL_ERR_ASN1_LENGTH_MISMATCH001A,
   TROPICSSL_ERR_ASN1_INVALID_DATA001C,
   TROPICSSL_ERR_X509_FEATURE_UNAVAILABLE0020,
   TROPICSSL_ERR_X509_CERT_INVALID_PEM0040,
   TROPICSSL_ERR_X509_CERT_INVALID_FORMAT0060,
   TROPICSSL_ERR_X509_CERT_INVALID_VERSION0080,
   TROPICSSL_ERR_X509_CERT_INVALID_SERIAL00A0,
   TROPICSSL_ERR_X509_CERT_INVALID_ALG00C0,
   TROPICSSL_ERR_X509_CERT_INVALID_NAME00E0,
   TROPICSSL_ERR_X509_CERT_INVALID_DATE0100,
   TROPICSSL_ERR_X509_CERT_INVALID_PUBKEY0120,
   TROPICSSL_ERR_X509_CERT_INVALID_SIGNATURE0140,
   TROPICSSL_ERR_X509_CERT_INVALID_EXTENSIONS0160,
   TROPICSSL_ERR_X509_CERT_UNKNOWN_VERSION0180,
   TROPICSSL_ERR_X509_CERT_UNKNOWN_SIG_ALG01A0,
   TROPICSSL_ERR_X509_CERT_UNKNOWN_PK_ALG01C0,
   TROPICSSL_ERR_X509_CERT_SIG_MISMATCH01E0,
   TROPICSSL_ERR_X509_CERT_VERIFY_FAILED0200,
   TROPICSSL_ERR_X509_KEY_INVALID_PEM0220,
   TROPICSSL_ERR_X509_KEY_INVALID_VERSION0240,
   TROPICSSL_ERR_X509_KEY_INVALID_FORMAT0260,
   TROPICSSL_ERR_X509_KEY_INVALID_ENC_IV0280,
   TROPICSSL_ERR_X509_KEY_UNKNOWN_ENC_ALG02A0,
   TROPICSSL_ERR_X509_KEY_PASSWORD_REQUIRED02C0,
   TROPICSSL_ERR_X509_KEY_PASSWORD_MISMATCH02E0,
   TROPICSSL_ERR_X509_POINT_ERROR0300,
   TROPICSSL_ERR_X509_VALUE_TO_LENGTH0320): Remove tropicssl error codes,
    superseded by SVN error codes.
   (svn_x509_parse_cert): Return "svn_error_t *".

* subversion/libsvn_subr/x509parse.c
   (asn1_get_len, asn1_get_tag, asn1_get_int, x509_get_version,
    x509_get_serial, x509_get_alg, x509_get_name, x509_get_dates,
    x509_get_sig, x509_get_uid, svn_x509_parse_cert): Return "svn_error_t *".
    In cases where the original code returned a bitwise OR of tropicssl
    error codes, return an error chain.

* subversion/svn/auth-cmd.c
  (show_cert): Adjust caller.


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/svn-auth-x509@1605159 13f79535-47bb-0310-9956-ffa450edef68