-/* $OpenBSD: ca.c,v 1.93 2023/06/17 22:33:34 tobhe Exp $ */
+/* $OpenBSD: ca.c,v 1.94 2023/06/25 08:07:04 op Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
#include <openssl/bio.h>
#include <openssl/err.h>
-#include <openssl/engine.h>
#include <openssl/ssl.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
return ca_x509_subjectaltname_do(cert, MODE_ALT_GET, NULL, NULL, retid);
}
-void
-ca_sslinit(void)
-{
- OpenSSL_add_all_algorithms();
- ERR_load_crypto_strings();
-
- /* Init hardware crypto engines. */
- ENGINE_load_builtin_engines();
- ENGINE_register_all_complete();
-}
-
void
ca_sslerror(const char *caller)
{
-/* $OpenBSD: iked.c,v 1.64 2023/03/05 22:17:22 tobhe Exp $ */
+/* $OpenBSD: iked.c,v 1.65 2023/06/25 08:07:04 op Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
if (strlcpy(env->sc_conffile, conffile, PATH_MAX) >= PATH_MAX)
errx(1, "config file exceeds PATH_MAX");
- ca_sslinit();
group_init();
policy_init(env);
-/* $OpenBSD: iked.h,v 1.218 2023/06/19 17:19:50 claudio Exp $ */
+/* $OpenBSD: iked.h,v 1.219 2023/06/25 08:07:04 op Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
void ca_getkey(struct privsep *, struct iked_id *, enum imsg_type);
int ca_privkey_serialize(EVP_PKEY *, struct iked_id *);
int ca_pubkey_serialize(EVP_PKEY *, struct iked_id *);
-void ca_sslinit(void);
void ca_sslerror(const char *);
char *ca_asn1_name(uint8_t *, size_t);
void *ca_x509_name_parse(char *);