48 |
|
|
49 |
if (get_pubkey (keyid, &k)) |
if (get_pubkey (keyid, &k)) |
50 |
BUG (NULL); |
BUG (NULL); |
51 |
uid = utf8_to_wincp2 (k->uids->name); |
uid = utf8_to_native (k->uids->name); |
52 |
_snprintf (fname, flen-1, "%s_RevocationCert.asc", uid); |
_snprintf (fname, flen-1, "%s_RevocationCert.asc", uid); |
53 |
for (i=0; i < strlen (fname); i++) { |
for (i=0; i < strlen (fname); i++) { |
54 |
if (fname[i] == ' ') |
if (fname[i] == ' ') |
153 |
} |
} |
154 |
|
|
155 |
if (use_desc) |
if (use_desc) |
156 |
p = wincp_to_utf8 (desc, strlen (desc)); |
p = native_to_utf8 (desc); |
157 |
/* we use the keyid to avoid charset problems and UTF8 encodings.*/ |
/* we use the keyid to avoid charset problems and UTF8 encodings.*/ |
158 |
inp_data = generate_revoke_input (idx, use_desc? p : NULL, pwd); |
inp_data = generate_revoke_input (idx, use_desc? p : NULL, pwd); |
159 |
|
|