*
*/
+#ifndef GNUTLS_LIB_X509_ATTRIBUTES_H
+#define GNUTLS_LIB_X509_ATTRIBUTES_H
+
int
_x509_parse_attribute(ASN1_TYPE asn1_struct,
const char *attr_name, const char *given_oid, unsigned indx,
int
_x509_set_attribute(ASN1_TYPE asn, const char *root,
const char *ext_id, const gnutls_datum_t * ext_data);
+
+#endif /* GNUTLS_LIB_X509_ATTRIBUTES_H */
*
*/
-#ifndef COMMON_H
-#define COMMON_H
+#ifndef GNUTLS_LIB_X509_COMMON_H
+#define GNUTLS_LIB_X509_COMMON_H
#include <algorithms.h>
#include <abstract_int.h>
return asn1_der_decoding2(element, ider, &len, _ASN1_DER_FLAGS, errorDescription);
}
-#endif
+#endif /* GNUTLS_LIB_X509_COMMON_H */
*
*/
+#ifndef GNUTLS_LIB_X509_IP_IN_CIDR_H
+#define GNUTLS_LIB_X509_IP_IN_CIDR_H
+
/*-
* ip_in_cidr:
* @ip: IP datum (IPv4 or IPv6)
return 1; /* match */
}
+
+#endif /* GNUTLS_LIB_X509_IP_IN_CIDR_H */
*
*/
-#ifndef IP_H
-#define IP_H
+#ifndef GNUTLS_LIB_X509_IP_H
+#define GNUTLS_LIB_X509_IP_H
// for documentation, see the definition
int _gnutls_mask_to_prefix(const unsigned char *mask, unsigned mask_size);
// for documentation, see the definition
int _gnutls_mask_ip(unsigned char *ip, const unsigned char *mask, unsigned ipsize);
-#endif // IP_H
+#endif /* GNUTLS_LIB_X509_IP_H */
* <https://www.gnu.org/licenses/>.
*/
+#ifndef GNUTLS_LIB_X509_KRB5_H
+#define GNUTLS_LIB_X509_KRB5_H
+
int _gnutls_krb5_principal_to_der(const char *name, gnutls_datum_t * der);
int _gnutls_krb5_der_to_principal(const gnutls_datum_t * der, gnutls_datum_t *name);
+
+#endif /* GNUTLS_LIB_X509_KRB5_H */
*
*/
+#ifndef GNUTLS_LIB_X509_OCSP_H
+#define GNUTLS_LIB_X509_OCSP_H
+
/* Online Certificate Status Protocol - RFC 2560
*/
#include <gnutls/ocsp.h>
time_t _gnutls_ocsp_get_validity(gnutls_ocsp_resp_t resp);
#define MAX_OCSP_MSG_SIZE 128
const char *_gnutls_ocsp_verify_status_to_str(gnutls_ocsp_verify_reason_t r, char out[MAX_OCSP_MSG_SIZE]);
+
+#endif /* GNUTLS_LIB_X509_OCSP_H */
*
*/
-#ifndef PKCS7_INT_H
-#define PKCS7_INT_H
+#ifndef GNUTLS_LIB_X509_PKCS7_INT_H
+#define GNUTLS_LIB_X509_PKCS7_INT_H
#include <gnutls/x509.h>
_gnutls_pkcs7_data_enc_info(const gnutls_datum_t * data, const struct pkcs_cipher_schema_st **p,
struct pbkdf2_params *kdf_params, char **oid);
-#endif
+#endif /* GNUTLS_LIB_X509_PKCS7_INT_H */
*
*/
+#ifndef GNUTLS_LIB_X509_PROV_SEED_H
+#define GNUTLS_LIB_X509_PROV_SEED_H
+
int _x509_encode_provable_seed(gnutls_x509_privkey_t pkey, gnutls_datum_t *der);
int _x509_decode_provable_seed(gnutls_x509_privkey_t pkey, const gnutls_datum_t *der);
+
+#endif /* GNUTLS_LIB_X509_PROV_SEED_H */
*
*/
-#ifndef VERIFY_HIGH_H
-# define VERIFY_HIGH_H
+#ifndef GNUTLS_LIB_X509_VERIFY_HIGH_H
+#define GNUTLS_LIB_X509_VERIFY_HIGH_H
struct gnutls_x509_trust_list_st {
unsigned int size;
int _gnutls_trustlist_inlist(gnutls_x509_trust_list_t list,
gnutls_x509_crt_t cert);
-#endif
+#endif /* GNUTLS_LIB_X509_VERIFY_HIGH_H */
*
*/
-#ifndef VIRT_SAN_H
-# define VIRT_SAN_H
+#ifndef GNUTLS_LIB_X509_VIRT_SAN_H
+#define GNUTLS_LIB_X509_VIRT_SAN_H
#include "x509_ext_int.h"
int _gnutls_alt_name_assign_virt_type(struct name_st *name, unsigned type, gnutls_datum_t *san, const char *othername_oid, unsigned raw);
-#endif
+#endif /* GNUTLS_LIB_X509_VIRT_SAN_H */
*
*/
-#ifndef X509_EXT_INT_H
-#define X509_EXT_INT_H
+#ifndef GNUTLS_LIB_X509_X509_EXT_INT_H
+#define GNUTLS_LIB_X509_X509_EXT_INT_H
#include "gnutls_int.h"
struct name_st {
int _gnutls_alt_name_process(gnutls_datum_t *out, unsigned type, const gnutls_datum_t *san, unsigned raw);
-#endif
+#endif /* GNUTLS_LIB_X509_X509_EXT_INT_H */
*
*/
-#ifndef X509_H
-#define X509_H
+#ifndef GNUTLS_LIB_X509_X509_INT_H
+#define GNUTLS_LIB_X509_X509_INT_H
#include <gnutls/x509.h>
#include <gnutls/x509-ext.h>
unsigned _gnutls_is_broken_sig_allowed(const gnutls_sign_entry_st *se, unsigned int flags);
-#endif
+#endif /* GNUTLS_LIB_X509_X509_INT_H */