Subversion Repositories MLServ

Rev

Rev 5 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 7
Line 1... Line 1...
1
/* $Id: main.c 5 2024-09-25 00:19:35Z nishi $ */
1
/* $Id: main.c 7 2024-09-25 00:56:55Z nishi $ */
2
 
2
 
3
#include <stdio.h>
3
#include <stdio.h>
4
#include <string.h>
4
#include <string.h>
5
 
5
 
6
#include "ms_newlist.h"
6
#include "ms_newlist.h"
Line 48... Line 48...
48
		int m;
48
		int m;
49
		if((m = cm_crypt_init()) < 0) {
49
		if((m = cm_crypt_init()) < 0) {
50
			fprintf(stderr, "No crypt() method available\n");
50
			fprintf(stderr, "No crypt() method available\n");
51
			return 1;
51
			return 1;
52
		}
52
		}
-
 
53
		if(m == C_DES) {
-
 
54
			fprintf(stderr, "!!! DES IS VERY INSECURE! CONSIGER GETTING BETTER OS !!!\n");
-
 
55
		}
53
		printf("Using %s as the default crypt() method\n", cm_crypt_methods[m]);
56
		printf("Using %s as the default crypt() method\n", cm_crypt_methods[m]);
54
		return ms_handle_server(argc, argv, startsub);
57
		return ms_handle_server(argc, argv, startsub);
55
	} else {
58
	} else {
56
		fprintf(stderr, "Invalid subcommand: %s\n", option);
59
		fprintf(stderr, "Invalid subcommand: %s\n", option);
57
		return 1;
60
		return 1;