Hi all,
 
I'll really appreciate if someone answers this question to help me to solve this problem. The question is:
 
Does anyone know, how to modify the OpenSSL's make system/perl scripts (wherever it's needed), so that it will allow a conditional compilation of the source files based on the new flag? In other words, I am tyring to add a new flag called NICI, so the perl scripts include different source files if the flag is turned on, otherwise, include the orignal OpenSSL's files. Here's an example of the makefile for the DES cipher:
—------------------------------------------------------------------------------------------------------------------------------------------
if (NICI)
LIBSRC= set_key.c des_nici.c
LIBOBJ= set_key.o des_nici.o
else
LIBSRC= cbc_cksm.c cbc_enc.c  cfb64enc.c cfb_enc.c  \
 ecb3_enc.c ecb_enc.c  enc_read.c enc_writ.c \
 fcrypt.c ofb64enc.c ofb_enc.c  pcbc_enc.c \
 qud_cksm.c rand_key.c read_pwd.c rpc_enc.c  set_key.c  \
 des_enc.c fcrypt_b.c read2pwd.c \
 xcbc_enc.c \
 str2key.c  cfb64ede.c ofb64ede.c ede_cbcm_enc.c
 
LIBOBJ= set_key.o  ecb_enc.o  cbc_enc.o \
 ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o  ofb64ede.o \
 enc_read.o enc_writ.o ofb64enc.o \
 ofb_enc.o  str2key.o  pcbc_enc.o qud_cksm.o rand_key.o \
 ${DES_ENC} read2pwd.o \
 fcrypt.o xcbc_enc.o read_pwd.o rpc_enc.o  cbc_cksm.o \
 ede_cbcm_enc.o
—---------------------------------------------------------------------------------------------------------------------------------------------
 
Unfortunately, I am unable to have perl scripts recognize this flag. As a result, it does not use my source files and always use the orignal files, unless I manually take them out of the makefile and add my own. Any help or hint would be very appreciated.
 
Thanks a lot.
 
Nadeem.

Reply via email to