如何修改s_client的代码?

提问

我正在使用openssl源代码中的apps / s_client.c.我想进行一些更改并运行它,但是在保存文件并进行全部创建或生成之后,我的更改未得到反映.

例如,我将sc_usage函数更改为:

BIO_printf(bio_err,"This is how you use s_client\n");
BIO_printf(bio_err,"usage: s_client args\n");
BIO_printf(bio_err,"\n");
BIO_printf(bio_err," -host host     - use -connect instead\n");
BIO_printf(bio_err," -port port     - use -connect instead\n");

然后,我在apps文件夹中保存并全部制作,但是当我通过以下方式运行程序时:openssl s_client abc,我看不到我介绍的那行,这是在输出中使用s_client的方式.

我要去哪里错了?

最佳答案

您确定运行正确的应用程序吗?尝试./openssl.

在Linux中,默认情况下不会在当前目录中搜索可执行文件,因此您可能正在运行系统的openssl.