Remove duplicated typedefs. master
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 17 Jan 2019 02:36:53 +0000 (11:36 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 17 Jan 2019 02:36:53 +0000 (11:36 +0900)
* src/ciphersuites.h (ciphersuite_t): Remove.
* src/context.h (x509_cert_t): Remove.

--

GnuPG-bug-id: 4305
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
src/ciphersuites.h
src/context.h
src/util.h

index 8adae48..e675377 100644 (file)
 #define TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8      0xC0AE  /**< TLS 1.2 */
 #define TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8      0xC0AF  /**< TLS 1.2 */
 
-struct _ntbtls_ciphersuite_s;
-typedef const struct _ntbtls_ciphersuite_s *ciphersuite_t;
-
 #define CIPHERSUITE_FLAG_SHORT_TAG  0x01   /* Short authentication tag.  */
 
 const int *_ntbtls_ciphersuite_list (void);
index 93652b6..66f7356 100644 (file)
@@ -94,13 +94,6 @@ typedef enum
 
 
 /*
- * Object to hold X.509 certificates.
- */
-struct x509_cert_s;
-typedef struct x509_cert_s *x509_cert_t;
-
-
-/*
  * Object to hold an X.509 CRL.
  */
 struct x509_crl_s;
index d9a0ebe..945bb01 100644 (file)
@@ -58,6 +58,9 @@
 #define OID_SIZE(x) (sizeof(x) - 1)
 
 
+/*
+ * Object to hold X.509 certificates.
+ */
 struct x509_cert_s;
 typedef struct x509_cert_s *x509_cert_t;