32 lines
864 B
Diff
32 lines
864 B
Diff
diff --git a/lib/priority.c b/lib/priority.c
|
|
index 767312c..0657940 100644
|
|
--- a/lib/priority.c
|
|
+++ b/lib/priority.c
|
|
@@ -1215,6 +1215,7 @@ gnutls_priority_init(gnutls_priority_t * priority_cache,
|
|
bulk_rmadd_func *bulk_fn;
|
|
bulk_rmadd_func *bulk_given_fn;
|
|
const cipher_entry_st *centry;
|
|
+ unsigned dset;
|
|
|
|
if (err_pos)
|
|
*err_pos = priorities;
|
|
@@ -1232,10 +1233,16 @@ gnutls_priority_init(gnutls_priority_t * priority_cache,
|
|
(*priority_cache)->sr = SR_PARTIAL;
|
|
(*priority_cache)->min_record_version = 1;
|
|
|
|
- if (priorities == NULL)
|
|
- priorities = "NORMAL";
|
|
+ if (priorities == NULL) {
|
|
+ priorities = "@SYSTEM";
|
|
+ dset = 1;
|
|
+ }
|
|
|
|
darg = _gnutls_resolve_priorities(priorities);
|
|
+ if (darg == NULL && dset == 1) {
|
|
+ priorities = "NORMAL";
|
|
+ darg = _gnutls_resolve_priorities(priorities);
|
|
+ }
|
|
if (darg == NULL) {
|
|
gnutls_assert();
|
|
goto error;
|