summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-07-01 09:04:19 +0000
committertb <>2023-07-01 09:04:19 +0000
commita74136f19ed149310b64404ef25b80776e327e13 (patch)
treeb4a38ef2d76d6d02eea520b3b0b7adde8b4662d7 /src/lib
parentbd7bccfb2c9f1e8e7fc579eeada0cd974fc86288 (diff)
downloadopenbsd-a74136f19ed149310b64404ef25b80776e327e13.tar.gz
openbsd-a74136f19ed149310b64404ef25b80776e327e13.tar.bz2
openbsd-a74136f19ed149310b64404ef25b80776e327e13.zip
crypto.h: move the error stuff to the end
The other public headers have function and reason codes at the end because the error header was inlined. This was also the case here, too, until the automatic library initialization was appended.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/crypto.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h
index 0519202037..43950e3afc 100644
--- a/src/lib/libcrypto/crypto.h
+++ b/src/lib/libcrypto/crypto.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: crypto.h,v 1.60 2023/04/30 17:07:46 tb Exp $ */ 1/* $OpenBSD: crypto.h,v 1.61 2023/07/01 09:04:19 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -509,26 +509,6 @@ void OPENSSL_init(void);
509int CRYPTO_memcmp(const void *a, const void *b, size_t len); 509int CRYPTO_memcmp(const void *a, const void *b, size_t len);
510#endif 510#endif
511 511
512void ERR_load_CRYPTO_strings(void);
513
514/* Error codes for the CRYPTO functions. */
515
516/* Function codes. */
517#define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX 100
518#define CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID 103
519#define CRYPTO_F_CRYPTO_GET_NEW_LOCKID 101
520#define CRYPTO_F_CRYPTO_SET_EX_DATA 102
521#define CRYPTO_F_DEF_ADD_INDEX 104
522#define CRYPTO_F_DEF_GET_CLASS 105
523#define CRYPTO_F_FIPS_MODE_SET 109
524#define CRYPTO_F_INT_DUP_EX_DATA 106
525#define CRYPTO_F_INT_FREE_EX_DATA 107
526#define CRYPTO_F_INT_NEW_EX_DATA 108
527
528/* Reason codes. */
529#define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED 101
530#define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK 100
531
532/* 512/*
533 * OpenSSL compatible OPENSSL_INIT options. 513 * OpenSSL compatible OPENSSL_INIT options.
534 */ 514 */
@@ -564,6 +544,26 @@ void ERR_load_CRYPTO_strings(void);
564int OPENSSL_init_crypto(uint64_t opts, const void *settings); 544int OPENSSL_init_crypto(uint64_t opts, const void *settings);
565void OPENSSL_cleanup(void); 545void OPENSSL_cleanup(void);
566 546
547void ERR_load_CRYPTO_strings(void);
548
549/* Error codes for the CRYPTO functions. */
550
551/* Function codes. */
552#define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX 100
553#define CRYPTO_F_CRYPTO_GET_NEW_DYNLOCKID 103
554#define CRYPTO_F_CRYPTO_GET_NEW_LOCKID 101
555#define CRYPTO_F_CRYPTO_SET_EX_DATA 102
556#define CRYPTO_F_DEF_ADD_INDEX 104
557#define CRYPTO_F_DEF_GET_CLASS 105
558#define CRYPTO_F_FIPS_MODE_SET 109
559#define CRYPTO_F_INT_DUP_EX_DATA 106
560#define CRYPTO_F_INT_FREE_EX_DATA 107
561#define CRYPTO_F_INT_NEW_EX_DATA 108
562
563/* Reason codes. */
564#define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED 101
565#define CRYPTO_R_NO_DYNLOCK_CREATE_CALLBACK 100
566
567#ifdef __cplusplus 567#ifdef __cplusplus
568} 568}
569#endif 569#endif