/[Apache-SVN]
ViewVC logotype

Revision 1605159


Jump to revision: Previous Next
Author: stsp
Date: Tue Jun 24 19:13:14 2014 UTC (10 years, 6 months ago)
Changed paths: 4
Log Message:
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.


Changed paths

Path Details
Directorysubversion/branches/svn-auth-x509/subversion/include/svn_error_codes.h modified , text changed
Directorysubversion/branches/svn-auth-x509/subversion/libsvn_subr/x509.h modified , text changed
Directorysubversion/branches/svn-auth-x509/subversion/libsvn_subr/x509parse.c modified , text changed
Directorysubversion/branches/svn-auth-x509/subversion/svn/auth-cmd.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26