|
OpenDNSSEC-libhsm
1.3.9
|
#include "config.h"#include <stdio.h>#include <string.h>#include <stdlib.h>#include <unistd.h>#include <pthread.h>#include <libhsm.h>#include <libhsmdns.h>
Go to the source code of this file.
Data Structures | |
| struct | sign_arg_t |
Macros | |
| #define | PTHREAD_THREADS_MAX 2048 |
Functions | |
| void | usage () |
| void * | sign (void *arg) |
| int | main (int argc, char *argv[]) |
Variables | |
| ldns_algorithm | algorithm = LDNS_RSASHA1 |
| const char * | algoname = "RSA/SHA1" |
| char * | optarg |
| char * | progname = NULL |
| #define PTHREAD_THREADS_MAX 2048 |
Definition at line 40 of file hsmspeed.c.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 126 of file hsmspeed.c.
References algoname, sign_arg_t::ctx, hsm_close(), hsm_create_context(), hsm_destroy_context(), hsm_generate_rsa_key(), hsm_get_key_id(), hsm_open(), hsm_prompt_pin(), hsm_remove_key(), sign_arg_t::id, sign_arg_t::iterations, sign_arg_t::key, optarg, progname, PTHREAD_THREADS_MAX, sign(), and usage().
| void* sign | ( | void * | arg | ) |
Definition at line 66 of file hsmspeed.c.
References hsm_sign_params_t::algorithm, algorithm, sign_arg_t::ctx, hsm_ctx_t::error_action, hsm_ctx_t::error_message, hsm_destroy_context(), hsm_get_dnskey(), hsm_sign_params_free(), hsm_sign_params_new(), hsm_sign_rrset(), sign_arg_t::id, sign_arg_t::iterations, sign_arg_t::key, hsm_sign_params_t::keytag, and hsm_sign_params_t::owner.
Referenced by main().
| void usage | ( | ) |
Definition at line 57 of file hsmspeed.c.
References progname.
| const char* algoname = "RSA/SHA1" |
Definition at line 44 of file hsmspeed.c.
Referenced by main().
| ldns_algorithm algorithm = LDNS_RSASHA1 |
Definition at line 43 of file hsmspeed.c.
Referenced by cmd_generate(), and sign().
| char* optarg |
| char* progname = NULL |
Definition at line 47 of file hsmspeed.c.
1.8.1.2