diff options
| author | Anton <anton@picapica> | 2018-07-16 02:25:55 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2018-07-16 02:25:55 +0400 |
| commit | a8c8ae099fce79ed787e6a7d2fb51a54b0b660b4 (patch) | |
| tree | feea9589a442efe8eec863f1be99d35ffd1d3a1e /PICA_client.c | |
| parent | b9080e2684c2bd1b2517d140ef58e16ea39bb8ea (diff) | |
| download | pica-pica-a8c8ae099fce79ed787e6a7d2fb51a54b0b660b4.tar.gz pica-pica-a8c8ae099fce79ed787e6a7d2fb51a54b0b660b4.zip | |
handle unaccessible DH params file
Diffstat (limited to 'PICA_client.c')
| -rw-r--r-- | PICA_client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/PICA_client.c b/PICA_client.c index 7e8b575..7f76e3f 100644 --- a/PICA_client.c +++ b/PICA_client.c @@ -1425,6 +1425,8 @@ int PICA_open_acc(const char *cert_file, dh = PEM_read_DHparams(dh_file, NULL, NULL, NULL); fclose(dh_file); } + else + return PICA_ERRINVARG; if (1 != SSL_CTX_set_tmp_dh(a->ctx, dh)) { |
