17d004720Schristos /* 27d004720Schristos * Generated by util/mkerr.pl DO NOT EDIT 3*b0d17251Schristos * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 47d004720Schristos * 5*b0d17251Schristos * Licensed under the Apache License 2.0 (the "License"). You may not use 67d004720Schristos * this file except in compliance with the License. You can obtain a copy 77d004720Schristos * in the file LICENSE in the source distribution or at 87d004720Schristos * https://www.openssl.org/source/license.html 97d004720Schristos */ 107d004720Schristos 117d004720Schristos #ifndef OSSL_CRYPTO_SM2ERR_H 127d004720Schristos # define OSSL_CRYPTO_SM2ERR_H 13*b0d17251Schristos # pragma once 147d004720Schristos 157d004720Schristos # include <openssl/opensslconf.h> 16*b0d17251Schristos # include <openssl/symhacks.h> 17*b0d17251Schristos 18*b0d17251Schristos # ifdef __cplusplus 19*b0d17251Schristos extern "C" { 20*b0d17251Schristos # endif 217d004720Schristos 227d004720Schristos # ifndef OPENSSL_NO_SM2 237d004720Schristos 24*b0d17251Schristos int ossl_err_load_SM2_strings(void); 257d004720Schristos 267d004720Schristos /* 277d004720Schristos * SM2 reason codes. 287d004720Schristos */ 297d004720Schristos # define SM2_R_ASN1_ERROR 100 307d004720Schristos # define SM2_R_BAD_SIGNATURE 101 317d004720Schristos # define SM2_R_BUFFER_TOO_SMALL 107 327d004720Schristos # define SM2_R_DIST_ID_TOO_LARGE 110 337d004720Schristos # define SM2_R_ID_NOT_SET 112 347d004720Schristos # define SM2_R_ID_TOO_LARGE 111 357d004720Schristos # define SM2_R_INVALID_CURVE 108 367d004720Schristos # define SM2_R_INVALID_DIGEST 102 377d004720Schristos # define SM2_R_INVALID_DIGEST_TYPE 103 387d004720Schristos # define SM2_R_INVALID_ENCODING 104 397d004720Schristos # define SM2_R_INVALID_FIELD 105 40*b0d17251Schristos # define SM2_R_INVALID_PRIVATE_KEY 113 417d004720Schristos # define SM2_R_NO_PARAMETERS_SET 109 427d004720Schristos # define SM2_R_USER_ID_TOO_LARGE 106 437d004720Schristos 447d004720Schristos # endif 45*b0d17251Schristos 46*b0d17251Schristos # ifdef __cplusplus 47*b0d17251Schristos } 48*b0d17251Schristos # endif 497d004720Schristos #endif 50