all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Disable source code signature checking of delegate9.9.13 with the help of emacs.
Date: Sun, 20 Dec 2020 21:27:45 +0800	[thread overview]
Message-ID: <CAGP6PO+gtxMyKZGoVYh0b7Y1EkFG1kPcG9Aq98C+rwhZAiQh=w@mail.gmail.com> (raw)

The delegate9.9.13 whose source code is located at
<http://www.delegate.org/anonftp/DeleGate/delegate9.9.13.tar.gz> has
the source code signature checking based on the following function
defined in the source code:

$ cat srcsign.c
const char *DELEGATE_srcsign(){
return
"\n{SRCSIGN=9.9.13:20141031194217+0900:6fdc87e522763a5e:\
Author@DeleGate.ORG:\
hPtX79eyOAnj9pjzcHNLBa2+1uhqjZszJ1UM7y4wXOikCGaUA4aQmK+kuq0QC/hng7lskzc9\r\n\
aIjEgOpDo5KF1odrli0RsQJI8nkGIWAW3uYxIFD70pwSAGNteRViGCmbIdO95QJfTjgTfKhp\r\n\
TQV3AYSDfyHF4li8dewmsd+oRrA=\r\n\
}\n"+10;
}
const char *DELEGATE_SrcSign(){
return
"\n{SrcSign=9.9.2-pre3:20090215114817+0900:9fd8879636f9934b:\
Author@DeleGate.ORG:\
s7F+zgs2D6yvuw+K1c3xJg4C9AJLSTuOGi2TAIPVQ52AwW0aqwRdJl3vME+/AaJpt3gKiH7b\r\n\
od6uyzyUFdkSIOgaTrMMdJBYBvCm0s7YhOpqCePnThu4e4RnMYTTpsI693BTt80KFXHwz4X3\r\n\
KO5W8Q4noFBPBme3yWwx/frGMMw=\r\n\
}\n"+10;
}

A preliminary inspection using grep shows that this function is called
in many places in the source code:

$ egrep -nIiR 'DELEGATE_SrcSign' .
./srcsign.c:1:const char *DELEGATE_srcsign(){
./srcsign.c:10:const char *DELEGATE_SrcSign(){
./src/dgsign.c:190:const char *DELEGATE_srcsign();
./src/dgsign.c:296:
Xsscanf(DELEGATE_srcsign(),"%*[^:]:%*[^:]:%[^:]",AVStr(smd5));
./src/conf.c:885:const char *DELEGATE_srcsign();
./src/conf.c:1167:    Xsscanf(DELEGATE_srcsign(),"%*[^:]:%[^:]",BVStr(date));
./src/conf.c:1176:    puts1(DELEGATE_srcsign(),out);
./src/conf.c:1245:        puts1(DELEGATE_srcsign(),idout);
./src/version.c:191:const char *DELEGATE_srcsign();
./src/version.c:192:const char *DELEGATE_SrcSign();
./src/version.c:202:
Xsscanf(DELEGATE_srcsign(),"%[^:]:%[^:]",AVStr(xver),AVStr(xdate));
./src/version.c:203:    if( xsign = strrchr(DELEGATE_srcsign(),':') )
./src/version.c:218:    const char *vsign = DELEGATE_SrcSign();
./src/version.c:221:    for( fp = DELEGATE_srcsign(); oct = *fp; fp++ ){
./src/ssi.c:629:        const char *DELEGATE_srcsign();
./src/ssi.c:648:            ssign = DELEGATE_srcsign();
./src-srcsign.c:1:const char *DELEGATE_srcsign(){

Now, I want to safely skip the source code signature checking imposed
by the above mechanism. How can I quickly complete the above work in
Emacs?

Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China



                 reply	other threads:[~2020-12-20 13:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGP6PO+gtxMyKZGoVYh0b7Y1EkFG1kPcG9Aq98C+rwhZAiQh=w@mail.gmail.com' \
    --to=hongyi.zhao@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.