bind/keygen.c

20 lines
335 B
C
Raw Normal View History

auto-import changelog data from bind-9.1.0-10.src.rpm Thu Mar 15 2001 Bernhard Rosenkraenzer <bero@redhat.com> 9.1.0-10 - Merge fixes from 9.1.1rc5 Sun Mar 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 9.1.0-9 - Work around bind 8 -> bind 9 migration problem when using buggy zone files: accept zones without a TTL, but spew out a big fat warning. (#31393) Thu Mar 08 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Add fixes from rc4 Fri Mar 02 2001 Nalin Dahyabhai <nalin@redhat.com> - rebuild in new environment Thu Mar 01 2001 Bernhard Rosenkraenzer <bero@redhat.com> - killall -HUP named if rndc reload fails (#30113) Tue Feb 27 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Merge some fixes from 9.1.1rc3 Tue Feb 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Don't use the standard rndc key from the documentation, instead, create a random one at installation time (#26358) - Make /etc/rndc.conf readable by user named only, it contains secret keys Tue Feb 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> - 9.1.1 probably won't be out in time, revert to 9.1.0 and apply fixes from 9.1.1rc2 - bind requires bind-utils (#28317) Tue Feb 13 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Update to rc2, fixes 2 more bugs - Fix build with glibc >= 2.2.1-7 Thu Feb 08 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Update to 9.1.1rc1; fixes 17 bugs (14 of them affecting us; 1 was fixed in a Red Hat patch already, 2 others are portability improvements) Wed Feb 07 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Remove initscripts 5.54 requirement (#26489) Mon Jan 29 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Add named-checkconf, named-checkzone (#25170) Mon Jan 29 2001 Trond Eivind Glomsrød <teg@redhat.com> - use echo, not gprintf
2004-09-09 03:30:04 +00:00
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
FILE *f=fopen("/dev/urandom", "r");
char key[61];
int i=0;
char tmp;
memset(key, 0, 61);
while(i<60) {
tmp=fgetc(f);
if((tmp>='a' && tmp<='z') ||
(tmp>='A' && tmp<='Z') ||
(tmp>='0' && tmp<='0'))
key[i++]=tmp;
}
puts(key);
fclose(f);
}