X-Git-Url: https://git.svenne.dk/?p=public%2Fdnssec-swede-utility.git;a=blobdiff_plain;f=swede;h=2490cb8e29dabe2ffd51b831e39a68653eabcc14;hp=ca204f7a6ee9ff54bcd44ac1deedbc70519b8b88;hb=ff6da5639f07be7c5db1ffd264256258b83ad525;hpb=2326b81ea2f80e67436f93b1a5a95f6438399708 diff --git a/swede b/swede index ca204f7..2490cb8 100755 --- a/swede +++ b/swede @@ -588,14 +588,14 @@ if __name__ == '__main__': break if cert: # Print the requested records based on the retrieved certificates - if args.output == 'b': + if args.output == 'both': print genTLSA(args.host, args.protocol, args.port, cert, 'draft', args.usage, args.selector, args.mtype) print genTLSA(args.host, args.protocol, args.port, cert, 'rfc', args.usage, args.selector, args.mtype) else: print genTLSA(args.host, args.protocol, args.port, cert, args.output, args.usage, args.selector, args.mtype) else: # Pass the path to the certificate to the genTLSA function - if args.output == 'b': + if args.output == 'both': print genTLSA(args.host, args.protocol, args.port, args.certificate, 'draft', args.usage, args.selector, args.mtype) print genTLSA(args.host, args.protocol, args.port, args.certificate, 'rfc', args.usage, args.selector, args.mtype) else: