From 7affbbaf7b6619e5d81c40fa76d2c3644f08bb26 Mon Sep 17 00:00:00 2001 From: guenther Date: Thu, 22 May 2014 03:34:26 +0000 Subject: [PATCH] No uses of UTF8_{getc,putc}() in ports, so remove them from the public header. ok miod@ --- lib/libcrypto/asn1/asn1.h | 3 --- lib/libcrypto/asn1/asn1_locl.h | 14 ++++++++------ lib/libssl/src/crypto/asn1/asn1.h | 3 --- lib/libssl/src/crypto/asn1/asn1_locl.h | 14 ++++++++------ 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/lib/libcrypto/asn1/asn1.h b/lib/libcrypto/asn1/asn1.h index 78705da9099..7e0ee8eab08 100644 --- a/lib/libcrypto/asn1/asn1.h +++ b/lib/libcrypto/asn1/asn1.h @@ -856,9 +856,6 @@ DECLARE_ASN1_FUNCTIONS(ASN1_UTF8STRING) DECLARE_ASN1_FUNCTIONS(ASN1_NULL) DECLARE_ASN1_FUNCTIONS(ASN1_BMPSTRING) -int UTF8_getc(const unsigned char *str, int len, unsigned long *val); -int UTF8_putc(unsigned char *str, int len, unsigned long value); - DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE) DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DIRECTORYSTRING) diff --git a/lib/libcrypto/asn1/asn1_locl.h b/lib/libcrypto/asn1/asn1_locl.h index 2c6087bf026..64bf8ec2faa 100644 --- a/lib/libcrypto/asn1/asn1_locl.h +++ b/lib/libcrypto/asn1/asn1_locl.h @@ -61,18 +61,18 @@ /* ASN1 print context structure */ struct asn1_pctx_st - { +{ unsigned long flags; unsigned long nm_flags; unsigned long cert_flags; unsigned long oid_flags; unsigned long str_flags; - } /* ASN1_PCTX */; +} /* ASN1_PCTX */; /* ASN1 public key method structure */ struct evp_pkey_asn1_method_st - { +{ int pkey_id; int pkey_base_id; unsigned long pkey_flags; @@ -123,7 +123,7 @@ struct evp_pkey_asn1_method_st X509_ALGOR *alg1, X509_ALGOR *alg2, ASN1_BIT_STRING *sig); - } /* EVP_PKEY_ASN1_METHOD */; +} /* EVP_PKEY_ASN1_METHOD */; /* Method to handle CRL access. * In general a CRL could be very large (several Mb) and can consume large @@ -135,14 +135,14 @@ struct evp_pkey_asn1_method_st #define X509_CRL_METHOD_DYNAMIC 1 struct x509_crl_method_st - { +{ int flags; int (*crl_init)(X509_CRL *crl); int (*crl_free)(X509_CRL *crl); int (*crl_lookup)(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *ser, X509_NAME *issuer); int (*crl_verify)(X509_CRL *crl, EVP_PKEY *pk); - }; +}; /* * Unicode codepoint constants @@ -154,3 +154,5 @@ struct x509_crl_method_st #define UNICODE_IS_SURROGATE(x) \ ((x) >= UNICODE_SURROGATE_MIN && (x) <= UNICODE_SURROGATE_MAX) +int UTF8_getc(const unsigned char *str, int len, unsigned long *val); +int UTF8_putc(unsigned char *str, int len, unsigned long value); diff --git a/lib/libssl/src/crypto/asn1/asn1.h b/lib/libssl/src/crypto/asn1/asn1.h index 78705da9099..7e0ee8eab08 100644 --- a/lib/libssl/src/crypto/asn1/asn1.h +++ b/lib/libssl/src/crypto/asn1/asn1.h @@ -856,9 +856,6 @@ DECLARE_ASN1_FUNCTIONS(ASN1_UTF8STRING) DECLARE_ASN1_FUNCTIONS(ASN1_NULL) DECLARE_ASN1_FUNCTIONS(ASN1_BMPSTRING) -int UTF8_getc(const unsigned char *str, int len, unsigned long *val); -int UTF8_putc(unsigned char *str, int len, unsigned long value); - DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE) DECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DIRECTORYSTRING) diff --git a/lib/libssl/src/crypto/asn1/asn1_locl.h b/lib/libssl/src/crypto/asn1/asn1_locl.h index 2c6087bf026..64bf8ec2faa 100644 --- a/lib/libssl/src/crypto/asn1/asn1_locl.h +++ b/lib/libssl/src/crypto/asn1/asn1_locl.h @@ -61,18 +61,18 @@ /* ASN1 print context structure */ struct asn1_pctx_st - { +{ unsigned long flags; unsigned long nm_flags; unsigned long cert_flags; unsigned long oid_flags; unsigned long str_flags; - } /* ASN1_PCTX */; +} /* ASN1_PCTX */; /* ASN1 public key method structure */ struct evp_pkey_asn1_method_st - { +{ int pkey_id; int pkey_base_id; unsigned long pkey_flags; @@ -123,7 +123,7 @@ struct evp_pkey_asn1_method_st X509_ALGOR *alg1, X509_ALGOR *alg2, ASN1_BIT_STRING *sig); - } /* EVP_PKEY_ASN1_METHOD */; +} /* EVP_PKEY_ASN1_METHOD */; /* Method to handle CRL access. * In general a CRL could be very large (several Mb) and can consume large @@ -135,14 +135,14 @@ struct evp_pkey_asn1_method_st #define X509_CRL_METHOD_DYNAMIC 1 struct x509_crl_method_st - { +{ int flags; int (*crl_init)(X509_CRL *crl); int (*crl_free)(X509_CRL *crl); int (*crl_lookup)(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *ser, X509_NAME *issuer); int (*crl_verify)(X509_CRL *crl, EVP_PKEY *pk); - }; +}; /* * Unicode codepoint constants @@ -154,3 +154,5 @@ struct x509_crl_method_st #define UNICODE_IS_SURROGATE(x) \ ((x) >= UNICODE_SURROGATE_MIN && (x) <= UNICODE_SURROGATE_MAX) +int UTF8_getc(const unsigned char *str, int len, unsigned long *val); +int UTF8_putc(unsigned char *str, int len, unsigned long value); -- 2.20.1