/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to mandos-keygen

  • Committer: Teddy Hogeborn
  • Date: 2008-08-25 01:16:38 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080825011638-zgqej2cafhne05ay
* mandos-keygen: Strip 24-bit checksum of Radix-64 from output to make
                 output strictly base64.

Show diffs side-by-side

added added

removed removed

Lines of Context:
293
293
    
294
294
    cat <<-EOF
295
295
        [$KEYNAME]
 
296
        host = $KEYNAME
296
297
        fingerprint = $FINGERPRINT
297
298
        secret =
298
299
EOF
299
300
    sed -n -e '
300
301
        /^-----BEGIN PGP MESSAGE-----$/,/^-----END PGP MESSAGE-----$/{
301
302
            /^$/,${
 
303
                # Remove 24-bit Radix-64 checksum
 
304
                s/=....$//
302
305
                # Indent four spaces
303
306
                /^[^-]/s/^/    /p
304
307
            }