e_capi_err.h revision 183234
13062Sjlahoda/* ==================================================================== 24250Sjjg * Copyright (c) 2001-2008 The OpenSSL Project. All rights reserved. 33062Sjlahoda * 43062Sjlahoda * Redistribution and use in source and binary forms, with or without 53062Sjlahoda * modification, are permitted provided that the following conditions 63062Sjlahoda * are met: 73062Sjlahoda * 83062Sjlahoda * 1. Redistributions of source code must retain the above copyright 93062Sjlahoda * notice, this list of conditions and the following disclaimer. 103062Sjlahoda * 113062Sjlahoda * 2. Redistributions in binary form must reproduce the above copyright 123062Sjlahoda * notice, this list of conditions and the following disclaimer in 133062Sjlahoda * the documentation and/or other materials provided with the 143062Sjlahoda * distribution. 153062Sjlahoda * 163062Sjlahoda * 3. All advertising materials mentioning features or use of this 173062Sjlahoda * software must display the following acknowledgment: 183062Sjlahoda * "This product includes software developed by the OpenSSL Project 193062Sjlahoda * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 203062Sjlahoda * 213062Sjlahoda * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 223062Sjlahoda * endorse or promote products derived from this software without 233062Sjlahoda * prior written permission. For written permission, please contact 243062Sjlahoda * openssl-core@openssl.org. 253062Sjlahoda * 263062Sjlahoda * 5. Products derived from this software may not be called "OpenSSL" 273062Sjlahoda * nor may "OpenSSL" appear in their names without prior written 283062Sjlahoda * permission of the OpenSSL Project. 293062Sjlahoda * 303062Sjlahoda * 6. Redistributions of any form whatsoever must retain the following 313062Sjlahoda * acknowledgment: 323062Sjlahoda * "This product includes software developed by the OpenSSL Project 333062Sjlahoda * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 344272Sjjg * 353062Sjlahoda * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 363062Sjlahoda * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 373062Sjlahoda * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 383062Sjlahoda * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 393464Srfield * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 403062Sjlahoda * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 413464Srfield * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 423979Srfield * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 433062Sjlahoda * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 443979Srfield * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 453062Sjlahoda * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 463062Sjlahoda * OF THE POSSIBILITY OF SUCH DAMAGE. 473062Sjlahoda * ==================================================================== 483062Sjlahoda * 493062Sjlahoda * This product includes cryptographic software written by Eric Young 503062Sjlahoda * (eay@cryptsoft.com). This product includes software written by Tim 513464Srfield * Hudson (tjh@cryptsoft.com). 523062Sjlahoda * 533464Srfield */ 543062Sjlahoda 554272Sjjg#ifndef HEADER_CAPI_ERR_H 563464Srfield#define HEADER_CAPI_ERR_H 573464Srfield 583464Srfield/* BEGIN ERROR CODES */ 593062Sjlahoda/* The following lines are auto generated by the script mkerr.pl. Any changes 603062Sjlahoda * made after this point may be overwritten when the script is next run. 613062Sjlahoda */ 623062Sjlahodastatic void ERR_load_CAPI_strings(void); 633464Srfieldstatic void ERR_unload_CAPI_strings(void); 643062Sjlahodastatic void ERR_CAPI_error(int function, int reason, char *file, int line); 653464Srfield#define CAPIerr(f,r) ERR_CAPI_error((f),(r),__FILE__,__LINE__) 663062Sjlahoda 673062Sjlahoda/* Error codes for the CAPI functions. */ 683062Sjlahoda 693062Sjlahoda/* Function codes. */ 703062Sjlahoda#define CAPI_F_CAPI_CERT_GET_FNAME 99 713062Sjlahoda#define CAPI_F_CAPI_CTRL 100 723062Sjlahoda#define CAPI_F_CAPI_CTX_NEW 101 733062Sjlahoda#define CAPI_F_CAPI_CTX_SET_PROVNAME 102 743062Sjlahoda#define CAPI_F_CAPI_DSA_DO_SIGN 114 754250Sjjg#define CAPI_F_CAPI_GET_KEY 103 763062Sjlahoda#define CAPI_F_CAPI_GET_PKEY 115 773464Srfield#define CAPI_F_CAPI_GET_PROVNAME 104 783464Srfield#define CAPI_F_CAPI_GET_PROV_INFO 105 793062Sjlahoda#define CAPI_F_CAPI_INIT 106 803062Sjlahoda#define CAPI_F_CAPI_LIST_CONTAINERS 107 813062Sjlahoda#define CAPI_F_CAPI_LOAD_PRIVKEY 108 823062Sjlahoda#define CAPI_F_CAPI_OPEN_STORE 109 833062Sjlahoda#define CAPI_F_CAPI_RSA_PRIV_DEC 110 843062Sjlahoda#define CAPI_F_CAPI_RSA_PRIV_ENC 111 853062Sjlahoda#define CAPI_F_CAPI_RSA_SIGN 112 863062Sjlahoda#define CAPI_F_CERT_SELECT_DIALOG 117 873464Srfield#define CAPI_F_CLIENT_CERT_SELECT 116 883062Sjlahoda#define CAPI_F_WIDE_TO_ASC 113 893062Sjlahoda 903062Sjlahoda/* Reason codes. */ 913062Sjlahoda#define CAPI_R_CANT_CREATE_HASH_OBJECT 99 923062Sjlahoda#define CAPI_R_CANT_FIND_CAPI_CONTEXT 100 934250Sjjg#define CAPI_R_CANT_GET_KEY 101 943062Sjlahoda#define CAPI_R_CANT_SET_HASH_VALUE 102 953464Srfield#define CAPI_R_CRYPTACQUIRECONTEXT_ERROR 103 963464Srfield#define CAPI_R_CRYPTENUMPROVIDERS_ERROR 104 973062Sjlahoda#define CAPI_R_DECRYPT_ERROR 105 983062Sjlahoda#define CAPI_R_ENGINE_NOT_INITIALIZED 106 993062Sjlahoda#define CAPI_R_ENUMCONTAINERS_ERROR 107 1003062Sjlahoda#define CAPI_R_ERROR_ADDING_CERT 125 1013062Sjlahoda#define CAPI_R_ERROR_CREATING_STORE 126 1023062Sjlahoda#define CAPI_R_ERROR_GETTING_FRIENDLY_NAME 108 1034250Sjjg#define CAPI_R_ERROR_GETTING_KEY_PROVIDER_INFO 109 1043062Sjlahoda#define CAPI_R_ERROR_OPENING_STORE 110 1053464Srfield#define CAPI_R_ERROR_SIGNING_HASH 111 1063464Srfield#define CAPI_R_FUNCTION_NOT_SUPPORTED 112 1073062Sjlahoda#define CAPI_R_GETUSERKEY_ERROR 113 1083062Sjlahoda#define CAPI_R_INVALID_DIGEST_LENGTH 124 1093062Sjlahoda#define CAPI_R_INVALID_DSA_PUBLIC_KEY_BLOB_MAGIC_NUMBER 122 1103062Sjlahoda#define CAPI_R_INVALID_LOOKUP_METHOD 114 1113062Sjlahoda#define CAPI_R_INVALID_PUBLIC_KEY_BLOB 115 1123062Sjlahoda#define CAPI_R_INVALID_RSA_PUBLIC_KEY_BLOB_MAGIC_NUMBER 123 1133062Sjlahoda#define CAPI_R_PUBKEY_EXPORT_ERROR 116 1143464Srfield#define CAPI_R_PUBKEY_EXPORT_LENGTH_ERROR 117 1153062Sjlahoda#define CAPI_R_UNKNOWN_COMMAND 118 1163062Sjlahoda#define CAPI_R_UNSUPPORTED_ALGORITHM_NID 119 1173062Sjlahoda#define CAPI_R_UNSUPPORTED_PADDING 120 1184250Sjjg#define CAPI_R_UNSUPPORTED_PUBLIC_KEY_ALGORITHM 121 1193062Sjlahoda 1203464Srfield#ifdef __cplusplus 1213464Srfield} 1223062Sjlahoda#endif 1233062Sjlahoda#endif 1243062Sjlahoda