asn1: Fix OS X build
We can't use VIS_DQ on when the OS has a vis implementation but lacks VIS_DQ.
This commit is contained in:
@@ -99,7 +99,7 @@ print_heim_any(const heim_any *data)
|
||||
int r = -1;
|
||||
|
||||
if (s)
|
||||
r = rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL|VIS_DQ, "");
|
||||
r = rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL, "\"");
|
||||
free(s);
|
||||
s = NULL;
|
||||
if (r > -1)
|
||||
@@ -148,7 +148,7 @@ print_HEIM_ANY(const heim_any *data)
|
||||
int r = -1;
|
||||
|
||||
if (s)
|
||||
r = rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL|VIS_DQ, "");
|
||||
r = rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL, "\"");
|
||||
free(s);
|
||||
s = NULL;
|
||||
if (r > -1)
|
||||
@@ -197,7 +197,7 @@ print_heim_any_set(const heim_any_set *data)
|
||||
int r = -1;
|
||||
|
||||
if (s)
|
||||
r = rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL|VIS_DQ, "");
|
||||
r = rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL, "\"");
|
||||
free(s);
|
||||
s = NULL;
|
||||
if (r > -1)
|
||||
@@ -252,7 +252,7 @@ print_HEIM_ANY_SET(const heim_any_set *data)
|
||||
int r = -1;
|
||||
|
||||
if (s)
|
||||
r = rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL|VIS_DQ, "");
|
||||
r = rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL, "\"");
|
||||
free(s);
|
||||
s = NULL;
|
||||
if (r > -1)
|
||||
|
@@ -592,7 +592,7 @@ defval(struct templatehead *temp, Member *m)
|
||||
char *quoted;
|
||||
|
||||
if (rk_strasvis("ed, m->defval->u.stringvalue,
|
||||
VIS_CSTYLE | VIS_DQ | VIS_NL, "") < 0)
|
||||
VIS_CSTYLE | VIS_NL, "\"") < 0)
|
||||
err(1, "Could not quote a string");
|
||||
add_line(temp, "{ A1_OP_DEFVAL|A1_DV_UTF8STRING, ~0, (void *)\"%s\" }",
|
||||
quoted);
|
||||
|
@@ -2625,7 +2625,7 @@ _asn1_print(const struct asn1_template *t,
|
||||
char *s2 = NULL;
|
||||
|
||||
if (s)
|
||||
(void) rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL|VIS_DQ, "");
|
||||
(void) rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL, "\"");
|
||||
free(s);
|
||||
s = s2;
|
||||
if (s)
|
||||
|
Reference in New Issue
Block a user