forked from certnanny/sscep
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added changes for engine support. Working version, not intended for use!
- Loading branch information
Javex
committed
Jun 4, 2012
1 parent
5669006
commit 0b69819
Showing
19 changed files
with
9,800 additions
and
8,041 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# $Id: Makefile,v 1.0 2003/01/12 13:17:37 jt Exp $ | ||
# | ||
|
||
CC = cl | ||
|
||
#for dynamically linking against binary OpenSSL distribution | ||
#http://www.slproweb.com/download/Win32OpenSSL-v0.9.7i.exe | ||
#works with VC 6.0 but not with VC 7.0 | ||
#OPENSSL_PATH=C:\program files\OpenSSL | ||
#OPENSSL_LIB=$(OPENSSL_PATH)\lib\VC | ||
#OPENSSL_INC=$(OPENSSL_PATH)\include | ||
|
||
|
||
#if you compile OpenSSL from source use the following definitions | ||
OPENSSL_PATH=C:\Users\tob130\Programme\OpenSSL-Win32 | ||
OPENSSL_LIB=$(OPENSSL_PATH)\lib | ||
OPENSSL_INC=$(OPENSSL_PATH)\include | ||
|
||
#change to your scep URL | ||
TEST_URL=http://scepserver.example.com/cgi-bin/scep/scep | ||
|
||
LINK=link | ||
LFLAGS=/nologo /subsystem:console /opt:ref /debug | ||
EX_LIBS=/libpath:"$(OPENSSL_LIB)" libeay32.lib wsock32.lib user32.lib gdi32.lib | ||
|
||
#DEBUG_OPT = /MDd /Od /GS /RTCcsu -D_DEBUG -DDEBUG | ||
DEBUG_OPT = /MD /O2 | ||
|
||
CFLAGS = /W3 /Zi /Yd /nologo -DWIN32 $(DEBUG_OPT) -I. -I"$(OPENSSL_INC)" | ||
|
||
PROG = sscep.exe | ||
OBJS = sscep.obj init.obj net.obj sceputils.obj pkcs7.obj ias.obj fileutils.obj getopt.obj | ||
PDB = *.pdb | ||
|
||
all: $(PROG) | ||
|
||
$(PROG): $(OBJS) | ||
$(LINK) $(LFLAGS) /out:$(PROG) $(OBJS) $(EX_LIBS) | ||
|
||
clean: | ||
del $(PROG) $(OBJS) $(PDB) | ||
|
||
test: all | ||
sscep.exe getca -v -u $(TEST_URL) -c cacert | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,105 +1,128 @@ | ||
|
||
/* | ||
* sscep -- Simple SCEP client implementation | ||
* Copyright (c) Jarkko Turkulainen 2003. All rights reserved. | ||
* See the file COPYRIGHT for licensing information. | ||
*/ | ||
|
||
/* | ||
* Command line options | ||
* These are defined globally for easy access from all functions. | ||
* For each command line option 'x', there is int x_flag and | ||
* char *x_char or int x_num if the option requires parameter. | ||
*/ | ||
|
||
/* CA certificate */ | ||
int c_flag; | ||
char *c_char; | ||
|
||
/* Debug? */ | ||
int d_flag; | ||
|
||
/* CA encryption certificate */ | ||
int e_flag; | ||
char *e_char; | ||
|
||
/* Encryption algorithm */ | ||
char *E_char; | ||
int E_flag; | ||
|
||
/* Configuration file */ | ||
int f_flag; | ||
char *f_char; | ||
|
||
/* Fingerprint algorithm */ | ||
char *F_char; | ||
int F_flag; | ||
|
||
/* Local certificate */ | ||
char *l_char; | ||
int l_flag; | ||
|
||
/* Local selfsigned certificate (generated automaticatally) */ | ||
char *L_char; | ||
int L_flag; | ||
|
||
/* CA identifier */ | ||
char *i_char; | ||
int i_flag; | ||
|
||
/* Private key */ | ||
char *k_char; | ||
int k_flag; | ||
|
||
/* Private key of already existing certificate */ | ||
char *K_char; | ||
int K_flag; | ||
|
||
/* Request count */ | ||
int n_flag; | ||
int n_num; | ||
|
||
/* Already existing certificate (to be renewed) */ | ||
char *O_char; | ||
int O_flag; | ||
|
||
/* Proxy */ | ||
char *p_char; | ||
int p_flag; | ||
|
||
/* GetCrl CRL file */ | ||
char *r_char; | ||
int r_flag; | ||
|
||
/* Resume */ | ||
int R_flag; | ||
|
||
/* Certificate serial number */ | ||
char *s_char; | ||
int s_flag; | ||
|
||
/* Signature algorithm */ | ||
char *S_char; | ||
int S_flag; | ||
|
||
/* Polling interval */ | ||
int t_num; | ||
int t_flag; | ||
|
||
/* Max polling time */ | ||
int T_num; | ||
int T_flag; | ||
|
||
/* URL */ | ||
int u_flag; | ||
char *url_char; | ||
|
||
/* Verbose? boolean */ | ||
int v_flag; | ||
|
||
/* GetCert certificate */ | ||
int w_flag; | ||
char *w_char; | ||
|
||
/* End of command line options */ | ||
|
||
|
||
/* | ||
* sscep -- Simple SCEP client implementation | ||
* Copyright (c) Jarkko Turkulainen 2003. All rights reserved. | ||
* See the file COPYRIGHT for licensing information. | ||
*/ | ||
|
||
/* | ||
* Command line options | ||
* These are defined globally for easy access from all functions. | ||
* For each command line option 'x', there is int x_flag and | ||
* char *x_char or int x_num if the option requires parameter. | ||
*/ | ||
|
||
/* CA certificate */ | ||
int c_flag; | ||
char *c_char; | ||
|
||
/* Debug? */ | ||
int d_flag; | ||
|
||
/* CA encryption certificate */ | ||
int e_flag; | ||
char *e_char; | ||
|
||
/* Encryption algorithm */ | ||
char *E_char; | ||
int E_flag; | ||
|
||
/* Configuration file */ | ||
int f_flag; | ||
char *f_char; | ||
|
||
/* Fingerprint algorithm */ | ||
char *F_char; | ||
int F_flag; | ||
|
||
/* enable EnGine support */ | ||
char *g_char; | ||
int g_flag; | ||
|
||
/* enable hwcrhk keys | ||
* To set this means that the new key (for which you have the | ||
* CSR and Private Key) should be taken from the engine | ||
* while the old key (possibly, see captial letter options) | ||
* is selected by the -H option | ||
*/ | ||
int h_flag; | ||
|
||
/* sets if engine should be used if the old key usage is set | ||
* i.e., setting this uses the old key für signing and does | ||
* not set anything for the lowercase options that correspond | ||
* to the new keys | ||
*/ | ||
int H_flag; | ||
|
||
/* Local certificate */ | ||
char *l_char; | ||
int l_flag; | ||
|
||
/* Local selfsigned certificate (generated automaticatally) */ | ||
char *L_char; | ||
int L_flag; | ||
|
||
/* CA identifier */ | ||
char *i_char; | ||
int i_flag; | ||
|
||
/* Private key */ | ||
char *k_char; | ||
int k_flag; | ||
|
||
/* Private key of already existing certificate */ | ||
char *K_char; | ||
int K_flag; | ||
|
||
/* Test mode */ | ||
int m_flag; | ||
char *m_char; | ||
|
||
/* Request count */ | ||
int n_flag; | ||
int n_num; | ||
|
||
/* Already existing certificate (to be renewed) */ | ||
char *O_char; | ||
int O_flag; | ||
|
||
/* Proxy */ | ||
char *p_char; | ||
int p_flag; | ||
|
||
/* GetCrl CRL file */ | ||
char *r_char; | ||
int r_flag; | ||
|
||
/* Resume */ | ||
int R_flag; | ||
|
||
/* Certificate serial number */ | ||
char *s_char; | ||
int s_flag; | ||
|
||
/* Signature algorithm */ | ||
char *S_char; | ||
int S_flag; | ||
|
||
/* Polling interval */ | ||
int t_num; | ||
int t_flag; | ||
|
||
/* Max polling time */ | ||
int T_num; | ||
int T_flag; | ||
|
||
/* URL */ | ||
int u_flag; | ||
char *url_char; | ||
|
||
/* Verbose? boolean */ | ||
int v_flag; | ||
|
||
/* GetCert certificate */ | ||
int w_flag; | ||
char *w_char; | ||
|
||
/* End of command line options */ | ||
|
Oops, something went wrong.