pki: Enable PSS padding if enabled in strongswan.conf
This commit is contained in:
@@ -45,7 +45,8 @@ static int acert()
|
|||||||
char *datenb = NULL, *datena = NULL, *dateform = NULL;
|
char *datenb = NULL, *datena = NULL, *dateform = NULL;
|
||||||
rng_t *rng;
|
rng_t *rng;
|
||||||
char *arg;
|
char *arg;
|
||||||
bool pss = FALSE;
|
bool pss = lib->settings->get_bool(lib->settings, "%s.rsa_pss", FALSE,
|
||||||
|
lib->ns);
|
||||||
|
|
||||||
groups = linked_list_create();
|
groups = linked_list_create();
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ static int issue()
|
|||||||
public_key_t *public = NULL;
|
public_key_t *public = NULL;
|
||||||
credential_type_t type = CRED_PUBLIC_KEY;
|
credential_type_t type = CRED_PUBLIC_KEY;
|
||||||
key_type_t subtype = KEY_ANY;
|
key_type_t subtype = KEY_ANY;
|
||||||
bool pkcs10 = FALSE, pss = FALSE;
|
bool pkcs10 = FALSE;
|
||||||
char *file = NULL, *dn = NULL, *hex = NULL, *cacert = NULL, *cakey = NULL;
|
char *file = NULL, *dn = NULL, *hex = NULL, *cacert = NULL, *cakey = NULL;
|
||||||
char *error = NULL, *keyid = NULL;
|
char *error = NULL, *keyid = NULL;
|
||||||
identification_t *id = NULL;
|
identification_t *id = NULL;
|
||||||
@@ -85,6 +85,8 @@ static int issue()
|
|||||||
x509_cert_policy_t *policy = NULL;
|
x509_cert_policy_t *policy = NULL;
|
||||||
traffic_selector_t *ts;
|
traffic_selector_t *ts;
|
||||||
char *arg;
|
char *arg;
|
||||||
|
bool pss = lib->settings->get_bool(lib->settings, "%s.rsa_pss", FALSE,
|
||||||
|
lib->ns);
|
||||||
|
|
||||||
san = linked_list_create();
|
san = linked_list_create();
|
||||||
cdps = linked_list_create();
|
cdps = linked_list_create();
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ static int req()
|
|||||||
chunk_t encoding = chunk_empty;
|
chunk_t encoding = chunk_empty;
|
||||||
chunk_t challenge_password = chunk_empty;
|
chunk_t challenge_password = chunk_empty;
|
||||||
char *arg;
|
char *arg;
|
||||||
bool pss = FALSE;
|
bool pss = lib->settings->get_bool(lib->settings, "%s.rsa_pss", FALSE,
|
||||||
|
lib->ns);
|
||||||
|
|
||||||
san = linked_list_create();
|
san = linked_list_create();
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,8 @@ static int self()
|
|||||||
x509_cert_policy_t *policy = NULL;
|
x509_cert_policy_t *policy = NULL;
|
||||||
traffic_selector_t *ts;
|
traffic_selector_t *ts;
|
||||||
char *arg;
|
char *arg;
|
||||||
bool pss = FALSE;
|
bool pss = lib->settings->get_bool(lib->settings, "%s.rsa_pss", FALSE,
|
||||||
|
lib->ns);
|
||||||
|
|
||||||
san = linked_list_create();
|
san = linked_list_create();
|
||||||
ocsp = linked_list_create();
|
ocsp = linked_list_create();
|
||||||
|
|||||||
@@ -134,7 +134,8 @@ static int sign_crl()
|
|||||||
x509_cdp_t *cdp;
|
x509_cdp_t *cdp;
|
||||||
chunk_t crl_serial = chunk_empty, baseCrlNumber = chunk_empty;
|
chunk_t crl_serial = chunk_empty, baseCrlNumber = chunk_empty;
|
||||||
chunk_t encoding = chunk_empty;
|
chunk_t encoding = chunk_empty;
|
||||||
bool pss = FALSE;
|
bool pss = lib->settings->get_bool(lib->settings, "%s.rsa_pss", FALSE,
|
||||||
|
lib->ns);
|
||||||
|
|
||||||
list = linked_list_create();
|
list = linked_list_create();
|
||||||
cdps = linked_list_create();
|
cdps = linked_list_create();
|
||||||
|
|||||||
Reference in New Issue
Block a user