Subversion Repositories Tewi

Rev

Rev 19 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 20
Line 1... Line 1...
1
/* $Id: ssl.c 19 2024-09-14 00:51:41Z nishi $ */
1
/* $Id: ssl.c 20 2024-09-14 09:59:15Z nishi $ */
2
 
2
 
3
#define SOURCE
3
#define SOURCE
4
 
4
 
5
#include "tw_ssl.h"
5
#include "tw_ssl.h"
6
 
6
 
Line 26... Line 26...
26
		SSL_use_certificate_file(ssl, e->sslcert, SSL_FILETYPE_PEM);
26
		SSL_use_certificate_file(ssl, e->sslcert, SSL_FILETYPE_PEM);
27
		return 1;
27
		return 1;
28
	} else if(config.root.sslkey != NULL && config.root.sslcert != NULL) {
28
	} else if(config.root.sslkey != NULL && config.root.sslcert != NULL) {
29
		SSL_use_PrivateKey_file(ssl, config.root.sslkey, SSL_FILETYPE_PEM);
29
		SSL_use_PrivateKey_file(ssl, config.root.sslkey, SSL_FILETYPE_PEM);
30
		SSL_use_certificate_file(ssl, config.root.sslcert, SSL_FILETYPE_PEM);
30
		SSL_use_certificate_file(ssl, config.root.sslcert, SSL_FILETYPE_PEM);
-
 
31
		return 1;
31
	} else {
32
	} else {
32
		return 0;
33
		return 0;
33
	}
34
	}
34
}
35
}
35
 
36