Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
commands.h
Go to the documentation of this file.
1/*
2 * Copyright 2015-2018 Yubico AB
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef COMMANDS_H
18#define COMMANDS_H
19
20#include <stdint.h>
21#include "yubihsm.h"
22#include "yubihsm-shell.h"
23
24typedef struct {
25 union {
29 const char *s;
30 const uint8_t *u;
36 };
37 unsigned char *x;
38 size_t len;
39} Argument;
40
42 cmd_format fmt);
43
52 cmd_format fmt);
57 cmd_format fmt);
65 cmd_format fmt);
69 cmd_format fmt);
76 cmd_format fmt);
79 cmd_format fmt);
82 cmd_format fmt);
84 cmd_format fmt);
87 cmd_format fmt);
94 cmd_format fmt);
102 cmd_format fmt);
111 cmd_format fmt);
114 cmd_format fmt);
116 cmd_format fmt);
119 cmd_format fmt);
122
127
129 cmd_format fmt);
130
131#endif
int yh_com_sign_ssh_certificate(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1995
int yh_com_change_authentication_key(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2767
int yh_com_put_asymmetric(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1396
int yh_com_derive_ecdh(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:444
int yh_com_encrypt_aesccm(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:527
int yh_com_generate_otp_aead_key(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2648
int yh_com_blink(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:159
int yh_com_sign_pss(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1816
int yh_com_open_session(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1208
int yh_com_set_proxy(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2750
int yh_com_list_objects(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1146
int yh_com_generate_hmac(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:685
int yh_com_put_opaque(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1495
int yh_com_list_connectors(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
int yh_com_decrypt_oaep(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2676
int yh_com_noop(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1050
int yh_com_put_authentication(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1463
int yh_com_audit(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:59
int yh_com_get_storage(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:823
int yh_com_generate_wrap(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:719
int yh_com_decrypt_aesccm(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:501
int yh_com_otp_aead_random(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2498
int yh_com_keepalive_on(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition main.c:763
int yh_com_reset(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1953
int yh_com_list_types(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1096
int yh_com_put_wrapped(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1613
int yh_com_debug_info(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:307
int yh_com_put_otp_aead_key(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2612
int yh_com_hmac(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1929
int yh_com_connect(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:206
int yh_com_keepalive_off(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition main.c:774
int yh_com_pecho(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1330
int yh_com_sign_ecdsa(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1670
int yh_com_sign_pkcs1v1_5(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1757
int yh_com_generate_asymmetric(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:644
int yh_com_get_pubkey(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:850
int yh_com_get_option(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:767
int yh_com_close_session(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:176
int yh_com_put_wrapkey(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1577
int yh_com_list_capabilities(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1061
int yh_com_list_sessions(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1111
int yh_com_get_wrapped(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1007
int yh_com_disconnect(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:550
int yh_com_debug_raw(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:368
int yh_com_debug_none(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:354
int yh_com_sign_eddsa(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1727
int yh_com_get_template(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1031
int yh_com_list_algorithms(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1079
int yh_com_get_device_info(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1876
int yh_com_put_template(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1645
int yh_com_delete(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1975
int yh_com_debug_intermediate(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:330
int yh_com_otp_decrypt(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2526
int yh_com_get_opaque(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:743
int yh_com_debug_all(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:270
int yh_com_set_cacert(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2735
int CommandFunction(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.h:41
int yh_com_benchmark(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2111
int yh_com_put_option(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1519
int yh_com_otp_aead_create(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2461
int yh_com_decrypt_pkcs1v1_5(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:417
int yh_com_set_log_index(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:141
int yh_com_put_hmac(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:1544
int yh_com_debug_error(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:284
int yh_com_sign_attestation_certificate(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:2567
int yh_com_get_random(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:797
int yh_com_debug_crypto(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:391
int yh_com_echo(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:582
int yh_com_get_object_info(yubihsm_context *ctx, Argument *argv, cmd_format fmt)
Definition commands.c:924
char ** argv
unsigned short uint16_t
Definition stdint.h:125
unsigned int uint32_t
Definition stdint.h:126
unsigned char uint8_t
Definition stdint.h:124
yh_option o
Definition commands.h:35
yh_capabilities c
Definition commands.h:32
const char * s
Definition commands.h:29
unsigned char * x
Definition commands.h:37
yh_object_type t
Definition commands.h:34
uint8_t b
Definition commands.h:26
size_t len
Definition commands.h:38
const uint8_t * u
Definition commands.h:30
yh_algorithm a
Definition commands.h:33
uint16_t w
Definition commands.h:27
uint32_t d
Definition commands.h:28
yh_session * e
Definition commands.h:31
Capabilities representation.
Definition yubihsm.h:162
cmd_format
yh_object_type
Definition yubihsm.h:359
yh_algorithm
Definition yubihsm.h:390
yh_option
Definition yubihsm.h:490