more porting tweaks: do not rely on the -w arg to base64, so we can use fourmilab...
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 5 Sep 2008 04:09:05 +0000 (00:09 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 5 Sep 2008 04:09:05 +0000 (00:09 -0400)
src/keytrans/openpgp2ssh.c

index 427adc8f27ea5994652deda6fd88cb2ef6779ef1..f16eac5c3ea85236942b33b8021b2b599dac5107 100644 (file)
@@ -208,7 +208,7 @@ int emit_public_openssh_from_pgp(const gnutls_openpgp_crt_t* pgp_crt, const unsi
   /* variables for the output conversion: */
   int pipestatus;
   int pipefd, child_pid;
-  char* const b64args[] = {"base64", "--wrap=0", NULL};
+  char* const b64args[] = {"sh", "-c", "base64 | tr -c -d '[A-Za-z0-9=+/]'", NULL};
 
   init_datum(&m);
   init_datum(&e);