_libre_RSA_meth_get_verify
_libre_RSA_meth_set_verify
_libre_ERR_load_RSA_strings
+_libre_OBJ_NAME_init
+_libre_OBJ_NAME_new_index
+_libre_OBJ_NAME_get
+_libre_OBJ_NAME_add
+_libre_OBJ_NAME_remove
+_libre_OBJ_NAME_cleanup
+_libre_OBJ_NAME_do_all
+_libre_OBJ_NAME_do_all_sorted
+_libre_OBJ_dup
+_libre_OBJ_nid2obj
+_libre_OBJ_nid2ln
+_libre_OBJ_nid2sn
+_libre_OBJ_obj2nid
+_libre_OBJ_txt2obj
+_libre_OBJ_obj2txt
+_libre_OBJ_txt2nid
+_libre_OBJ_ln2nid
+_libre_OBJ_sn2nid
+_libre_OBJ_cmp
+_libre_OBJ_bsearch_
+_libre_OBJ_new_nid
+_libre_OBJ_add_object
+_libre_OBJ_create
+_libre_OBJ_cleanup
+_libre_OBJ_create_objects
+_libre_OBJ_length
+_libre_OBJ_get0_data
+_libre_OBJ_find_sigid_algs
+_libre_OBJ_find_sigid_by_algs
+_libre_OBJ_add_sigid
+_libre_OBJ_sigid_free
+_libre_ERR_load_OBJ_strings
--- /dev/null
+/* $OpenBSD: objects.h,v 1.1 2023/07/08 12:27:51 beck Exp $ */
+/*
+ * Copyright (c) 2023 Bob Beck <beck@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _LIBCRYPTO_OBJECTS_H
+#define _LIBCRYPTO_OBJECTS_H
+
+#ifndef _MSC_VER
+#include_next <openssl/objects.h>
+#else
+#include "../include/openssl/objects.h"
+#endif
+#include "crypto_namespace.h"
+
+LCRYPTO_USED(OBJ_NAME_init);
+LCRYPTO_USED(OBJ_NAME_new_index);
+LCRYPTO_USED(OBJ_NAME_get);
+LCRYPTO_USED(OBJ_NAME_add);
+LCRYPTO_USED(OBJ_NAME_remove);
+LCRYPTO_USED(OBJ_NAME_cleanup);
+LCRYPTO_USED(OBJ_NAME_do_all);
+LCRYPTO_USED(OBJ_NAME_do_all_sorted);
+LCRYPTO_USED(OBJ_dup);
+LCRYPTO_USED(OBJ_nid2obj);
+LCRYPTO_USED(OBJ_nid2ln);
+LCRYPTO_USED(OBJ_nid2sn);
+LCRYPTO_USED(OBJ_obj2nid);
+LCRYPTO_USED(OBJ_txt2obj);
+LCRYPTO_USED(OBJ_obj2txt);
+LCRYPTO_USED(OBJ_txt2nid);
+LCRYPTO_USED(OBJ_ln2nid);
+LCRYPTO_USED(OBJ_sn2nid);
+LCRYPTO_USED(OBJ_cmp);
+LCRYPTO_USED(OBJ_bsearch_);
+LCRYPTO_USED(OBJ_new_nid);
+LCRYPTO_USED(OBJ_add_object);
+LCRYPTO_USED(OBJ_create);
+LCRYPTO_USED(OBJ_cleanup);
+LCRYPTO_USED(OBJ_create_objects);
+LCRYPTO_USED(OBJ_length);
+LCRYPTO_USED(OBJ_get0_data);
+LCRYPTO_USED(OBJ_find_sigid_algs);
+LCRYPTO_USED(OBJ_find_sigid_by_algs);
+LCRYPTO_USED(OBJ_add_sigid);
+LCRYPTO_USED(OBJ_sigid_free);
+LCRYPTO_USED(ERR_load_OBJ_strings);
+
+#endif /* _LIBCRYPTO_OBJECTS_H */
-/* $OpenBSD: o_names.c,v 1.23 2022/11/08 23:19:09 mbuhl Exp $ */
+/* $OpenBSD: o_names.c,v 1.24 2023/07/08 12:27:51 beck Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
names_lh = lh_OBJ_NAME_new();
return (names_lh != NULL);
}
+LCRYPTO_ALIAS(OBJ_NAME_init);
int
OBJ_NAME_new_index(unsigned long (*hash_func)(const char *),
name_funcs->free_func = free_func;
return (ret);
}
+LCRYPTO_ALIAS(OBJ_NAME_new_index);
/* static int obj_name_cmp(OBJ_NAME *a, OBJ_NAME *b) */
static int
}
}
}
+LCRYPTO_ALIAS(OBJ_NAME_get);
int
OBJ_NAME_add(const char *name, int type, const char *data)
}
return (1);
}
+LCRYPTO_ALIAS(OBJ_NAME_add);
int
OBJ_NAME_remove(const char *name, int type)
} else
return (0);
}
+LCRYPTO_ALIAS(OBJ_NAME_remove);
struct doall {
int type;
lh_OBJ_NAME_doall_arg(names_lh, LHASH_DOALL_ARG_FN(do_all_fn),
struct doall, &d);
}
+LCRYPTO_ALIAS(OBJ_NAME_do_all);
struct doall_sorted {
int type;
free(d.names);
}
}
+LCRYPTO_ALIAS(OBJ_NAME_do_all_sorted);
static int free_type;
} else
lh_OBJ_NAME_down_load(names_lh) = down_load;
}
+LCRYPTO_ALIAS(OBJ_NAME_cleanup);
-/* $OpenBSD: obj_dat.c,v 1.53 2023/05/23 11:51:12 tb Exp $ */
+/* $OpenBSD: obj_dat.c,v 1.54 2023/07/08 12:27:51 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
lh_ADDED_OBJ_free(added);
added = NULL;
}
+LCRYPTO_ALIAS(OBJ_cleanup);
int
OBJ_new_nid(int num)
new_nid += num;
return (i);
}
+LCRYPTO_ALIAS(OBJ_new_nid);
int
OBJ_add_object(const ASN1_OBJECT *obj)
ASN1_OBJECT_free(o);
return (NID_undef);
}
+LCRYPTO_ALIAS(OBJ_add_object);
ASN1_OBJECT *
OBJ_nid2obj(int n)
}
}
}
+LCRYPTO_ALIAS(OBJ_nid2obj);
const char *
OBJ_nid2sn(int n)
}
}
}
+LCRYPTO_ALIAS(OBJ_nid2sn);
const char *
OBJ_nid2ln(int n)
}
}
}
+LCRYPTO_ALIAS(OBJ_nid2ln);
static int
obj_cmp(const ASN1_OBJECT * const *ap, const unsigned int *bp)
return (NID_undef);
return (nid_objs[*op].nid);
}
+LCRYPTO_ALIAS(OBJ_obj2nid);
/* Convert an object name into an ASN1_OBJECT
* if "noname" is not set then search for short and long names first.
return t2i_ASN1_OBJECT_internal(s);
}
+LCRYPTO_ALIAS(OBJ_txt2obj);
int
OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *aobj, int no_name)
{
return i2t_ASN1_OBJECT_internal(aobj, buf, buf_len, no_name);
}
+LCRYPTO_ALIAS(OBJ_obj2txt);
int
OBJ_txt2nid(const char *s)
ASN1_OBJECT_free(obj);
return nid;
}
+LCRYPTO_ALIAS(OBJ_txt2nid);
int
OBJ_ln2nid(const char *s)
return (NID_undef);
return (nid_objs[*op].nid);
}
+LCRYPTO_ALIAS(OBJ_ln2nid);
int
OBJ_sn2nid(const char *s)
return (NID_undef);
return (nid_objs[*op].nid);
}
+LCRYPTO_ALIAS(OBJ_sn2nid);
const void *
OBJ_bsearch_(const void *key, const void *base, int num, int size,
{
return OBJ_bsearch_ex_(key, base, num, size, cmp, 0);
}
+LCRYPTO_ALIAS(OBJ_bsearch_);
const void *
OBJ_bsearch_ex_(const void *key, const void *base_, int num, int size,
}
/* return(num); */
}
+LCRYPTO_ALIAS(OBJ_create_objects);
int
OBJ_create(const char *oid, const char *sn, const char *ln)
free(buf);
return (ok);
}
+LCRYPTO_ALIAS(OBJ_create);
size_t
OBJ_length(const ASN1_OBJECT *obj)
return obj->length;
}
+LCRYPTO_ALIAS(OBJ_length);
const unsigned char *
OBJ_get0_data(const ASN1_OBJECT *obj)
return obj->data;
}
+LCRYPTO_ALIAS(OBJ_get0_data);
-/* $OpenBSD: obj_err.c,v 1.13 2022/07/12 14:42:49 kn Exp $ */
+/* $OpenBSD: obj_err.c,v 1.14 2023/07/08 12:27:51 beck Exp $ */
/* ====================================================================
* Copyright (c) 1999-2006 The OpenSSL Project. All rights reserved.
*
}
#endif
}
+LCRYPTO_ALIAS(ERR_load_OBJ_strings);
-/* $OpenBSD: obj_lib.c,v 1.17 2022/11/26 16:08:53 tb Exp $ */
+/* $OpenBSD: obj_lib.c,v 1.18 2023/07/08 12:27:51 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
free(r);
return (NULL);
}
+LCRYPTO_ALIAS(OBJ_dup);
int
OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b)
return (ret);
return (memcmp(a->data, b->data, a->length));
}
+LCRYPTO_ALIAS(OBJ_cmp);
-/* $OpenBSD: obj_xref.c,v 1.8 2017/01/21 04:44:43 jsing Exp $ */
+/* $OpenBSD: obj_xref.c,v 1.9 2023/07/08 12:27:51 beck Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
*ppkey_nid = rv->pkey_id;
return 1;
}
+LCRYPTO_ALIAS(OBJ_find_sigid_algs);
int
OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid)
*psignid = (*rv)->sign_id;
return 1;
}
+LCRYPTO_ALIAS(OBJ_find_sigid_by_algs);
int
OBJ_add_sigid(int signid, int dig_id, int pkey_id)
return 1;
}
+LCRYPTO_ALIAS(OBJ_add_sigid);
static void
sid_free(nid_triple *tt)
sigx_app = NULL;
}
}
+LCRYPTO_ALIAS(OBJ_sigid_free);