]> git.pld-linux.org Git - packages/libu2f-host.git/blob - libu2f-host-json-c.patch
- updated to 1.1.10
[packages/libu2f-host.git] / libu2f-host-json-c.patch
1 --- libu2f-host-1.1.10/u2f-host/u2fmisc.c.orig  2019-02-22 12:31:45.000000000 +0100
2 +++ libu2f-host-1.1.10/u2f-host/u2fmisc.c       2020-05-01 20:57:50.617146077 +0200
3 @@ -30,7 +30,7 @@
4  #define u2fh_json_object_object_get(obj, key, value) json_object_object_get_ex(obj, key, &value)
5  #else
6  typedef int json_bool;
7 -#define u2fh_json_object_object_get(obj, key, value) (value = json_object_object_get(obj, key)) == NULL ? (json_bool)FALSE : (json_bool)TRUE
8 +#define u2fh_json_object_object_get(obj, key, value) (value = json_object_object_get(obj, key)) == NULL ? (json_bool)0 : (json_bool)1
9  #endif
10  
11  static void
12 @@ -114,7 +114,7 @@
13    if (debug)
14      fprintf (stderr, "JSON: %s\n", json_object_to_json_string (jo));
15  
16 -  if (u2fh_json_object_object_get (jo, "appId", k) == FALSE)
17 +  if (u2fh_json_object_object_get (jo, "appId", k) == 0)
18      return U2FH_JSON_ERROR;
19  
20    app_id = json_object_get_string (k);
21 @@ -390,7 +390,7 @@
22    if (debug)
23      fprintf (stderr, "JSON: %s\n", json_object_to_json_string (jo));
24  
25 -  if (u2fh_json_object_object_get (jo, key, k) == FALSE)
26 +  if (u2fh_json_object_object_get (jo, key, k) == 0)
27      return U2FH_JSON_ERROR;
28  
29    urlb64 = json_object_get_string (k);
This page took 0.099775 seconds and 3 git commands to generate.