encode_uint32 second parameter should be uint32_t, not unsigned long
[git-daemon2.git] / genkeypair.c
blob4f2142c2bb770f3d692ef8be0feeab43b55a6ec6
1 /*
2 * Copyright (C) Ilari Liusvaara 2009-2010
4 * This code is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <string.h>
12 void write_cert(int server_mode);
14 static void do_help()
16 printf("gits-generate-keypair: User keypair generator.\n");
17 printf("Command line options:\n");
18 printf("--help\n");
19 printf("\tThis help\n");
20 printf("\n");
21 printf("Note: Keep generated keypair files private!\n");
22 printf("Use gits-get-key-name to get public short\n");
23 printf("representation of keypair for authorization.\n");
24 printf("\n");
25 printf("WARNING: Don't let keypairs to be tampered with!\n");
26 printf("WARNING: Tampered keypairs may do very nasty things\n");
27 printf("WARNING: if used.\n");
28 exit(0);
32 int main(int argc, char **argv)
34 if (argc > 1 && !strcmp(argv[1], "--help"))
35 do_help();
36 write_cert(0);
37 return 0;