xref: /freebsd/crypto/openssl/engines/e_capi.txt (revision 3e5d0784b9b5296bda801add034b057ad68237f7)
1# Copyright 1999-2017 The OpenSSL Project Authors. All Rights Reserved.
2#
3# Licensed under the OpenSSL license (the "License").  You may not use
4# this file except in compliance with the License.  You can obtain a copy
5# in the file LICENSE in the source distribution or at
6# https://www.openssl.org/source/license.html
7
8# Function codes
9CAPI_F_CAPI_CERT_GET_FNAME:99:capi_cert_get_fname
10CAPI_F_CAPI_CTRL:100:capi_ctrl
11CAPI_F_CAPI_CTX_NEW:101:capi_ctx_new
12CAPI_F_CAPI_CTX_SET_PROVNAME:102:capi_ctx_set_provname
13CAPI_F_CAPI_DSA_DO_SIGN:114:capi_dsa_do_sign
14CAPI_F_CAPI_GET_KEY:103:capi_get_key
15CAPI_F_CAPI_GET_PKEY:115:capi_get_pkey
16CAPI_F_CAPI_GET_PROVNAME:104:capi_get_provname
17CAPI_F_CAPI_GET_PROV_INFO:105:capi_get_prov_info
18CAPI_F_CAPI_INIT:106:capi_init
19CAPI_F_CAPI_LIST_CONTAINERS:107:capi_list_containers
20CAPI_F_CAPI_LOAD_PRIVKEY:108:capi_load_privkey
21CAPI_F_CAPI_OPEN_STORE:109:capi_open_store
22CAPI_F_CAPI_RSA_PRIV_DEC:110:capi_rsa_priv_dec
23CAPI_F_CAPI_RSA_PRIV_ENC:111:capi_rsa_priv_enc
24CAPI_F_CAPI_RSA_SIGN:112:capi_rsa_sign
25CAPI_F_CAPI_VTRACE:118:capi_vtrace
26CAPI_F_CERT_SELECT_DIALOG:117:cert_select_dialog
27CAPI_F_CLIENT_CERT_SELECT:116:*
28CAPI_F_WIDE_TO_ASC:113:wide_to_asc
29
30#Reason codes
31CAPI_R_CANT_CREATE_HASH_OBJECT:100:cant create hash object
32CAPI_R_CANT_FIND_CAPI_CONTEXT:101:cant find capi context
33CAPI_R_CANT_GET_KEY:102:cant get key
34CAPI_R_CANT_SET_HASH_VALUE:103:cant set hash value
35CAPI_R_CRYPTACQUIRECONTEXT_ERROR:104:cryptacquirecontext error
36CAPI_R_CRYPTENUMPROVIDERS_ERROR:105:cryptenumproviders error
37CAPI_R_DECRYPT_ERROR:106:decrypt error
38CAPI_R_ENGINE_NOT_INITIALIZED:107:engine not initialized
39CAPI_R_ENUMCONTAINERS_ERROR:108:enumcontainers error
40CAPI_R_ERROR_ADDING_CERT:109:error adding cert
41CAPI_R_ERROR_CREATING_STORE:110:error creating store
42CAPI_R_ERROR_GETTING_FRIENDLY_NAME:111:error getting friendly name
43CAPI_R_ERROR_GETTING_KEY_PROVIDER_INFO:112:error getting key provider info
44CAPI_R_ERROR_OPENING_STORE:113:error opening store
45CAPI_R_ERROR_SIGNING_HASH:114:error signing hash
46CAPI_R_FILE_OPEN_ERROR:115:file open error
47CAPI_R_FUNCTION_NOT_SUPPORTED:116:function not supported
48CAPI_R_GETUSERKEY_ERROR:117:getuserkey error
49CAPI_R_INVALID_DIGEST_LENGTH:118:invalid digest length
50CAPI_R_INVALID_DSA_PUBLIC_KEY_BLOB_MAGIC_NUMBER:119:\
51	invalid dsa public key blob magic number
52CAPI_R_INVALID_LOOKUP_METHOD:120:invalid lookup method
53CAPI_R_INVALID_PUBLIC_KEY_BLOB:121:invalid public key blob
54CAPI_R_INVALID_RSA_PUBLIC_KEY_BLOB_MAGIC_NUMBER:122:\
55	invalid rsa public key blob magic number
56CAPI_R_PUBKEY_EXPORT_ERROR:123:pubkey export error
57CAPI_R_PUBKEY_EXPORT_LENGTH_ERROR:124:pubkey export length error
58CAPI_R_UNKNOWN_COMMAND:125:unknown command
59CAPI_R_UNSUPPORTED_ALGORITHM_NID:126:unsupported algorithm nid
60CAPI_R_UNSUPPORTED_PADDING:127:unsupported padding
61CAPI_R_UNSUPPORTED_PUBLIC_KEY_ALGORITHM:128:unsupported public key algorithm
62CAPI_R_WIN32_ERROR:129:win32 error
63