如何修改s_client的代码? [英] How to modify code for s_client?

查看:76
本文介绍了如何修改s_client的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用openssl源代码中的apps/s_client.c.我想进行一些更改并运行它,但是保存文件并执行make allmake后,我的更改未得到体现.

I'm playing around with apps/s_client.c in the openssl source code. I want to make a few changes and run it, but my changes are not getting reflected after I save the file and do a make all, or a make.

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

For example, I changed the sc_usage function to this:

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文件夹中执行make all,但是当我通过以下方式运行程序时:openssl s_client abc,我在输出中看不到我介绍的行this is how you use s_client. .

I then save and do a make all in the apps folder, but when I run the program by doing this: openssl s_client abc, I don't see the line I introduced, this is how you use s_client, in the output.

我要去哪里错了?

推荐答案

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

Are you sure you run the correct app? Try ./openssl.

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

In Linux, current directory is not searched for executable files by default, so you are probably running system's openssl.

这篇关于如何修改s_client的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆