Commit c44833bc authored by Aaron M. Ucko's avatar Aaron M. Ucko
Browse files

Initialize SSL for taxblast, accidentally missed earlier.

* demo/taxblast_main.c: Call SOCK_SetupSSL.
* make/makenet.unx: Link taxblast against $(LIBTLS) and $(GNUTLS_LIBS).
parent c526581f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -11,8 +11,10 @@ ncbi-tools6 (6.1.20170106-3) UNRELEASED; urgency=medium
  * debian/source/options: single-debian-patch (tracking changes purely
    with git for now).
  * debian/source/patch-header: "Combined patches from git."
  * demo/taxblast_main.c: Call SOCK_SetupSSL (accidentally missed earlier).
  * make/makenet.unx: Link taxblast against $(LIBTLS) and $(GNUTLS_LIBS).

 -- Aaron M. Ucko <ucko@debian.org>  Sun, 25 Mar 2018 20:59:34 -0400
 -- Aaron M. Ucko <ucko@debian.org>  Thu, 12 Apr 2018 19:50:13 -0400

ncbi-tools6 (6.1.20170106-2) unstable; urgency=medium

+29 −0
Original line number Diff line number Diff line
@@ -591,6 +591,15 @@ Combined patches from git.
 	$(VIB_POST_LINK) entrez2
 
 # demo program (spidey)
@@ -1285,7 +1297,7 @@ bl2seq : bl2seq.c
 taxblast: taxblast_main.c $(BLIB41) $(BLIB40)
 	$(CC) -g -o taxblast $(LDFLAGS) taxblast_main.c \
 		$(LIB61) $(LIB60) $(LIB36) $(LIB41) $(LIB40) $(LIB23) $(LIBCOMPADJ) \
-		$(NETCLILIB) $(LIB2) $(LIB1) $(OTHERLIBS)
+		$(NETCLILIB) $(LIB2) $(LIBTLS) $(LIB1) $(GNUTLS_LIBS) $(OTHERLIBS)
 
 # test client for the suggest network service
 suggcli: suggcli.c $(BNETCLILIB) $(BLIB24)
--- ncbi-tools6-6.1.20170106.orig/make/makeshlb.unx
+++ ncbi-tools6-6.1.20170106/make/makeshlb.unx
@@ -1,4 +1,4 @@
@@ -821,3 +830,23 @@ Combined patches from git.
   Nlm_RegisterWindows ();
   Nlm_RegisterTexts ();
   Nlm_RegisterSlates ();
--- ncbi-tools6-6.1.20170106.orig/demo/taxblast_main.c
+++ ncbi-tools6-6.1.20170106/demo/taxblast_main.c
@@ -41,6 +41,8 @@ static char const rcsid[] = "$Id: taxbla
 #include <objgen.h>
 #include <taxblast.h>
 
+#include <connect/ncbi_gnutls.h>
+
 
 #define NUMARG (sizeof(myargs)/sizeof(myargs[0]))
 
@@ -63,6 +65,8 @@ Int2 Main (void)
     FILE *outfile;
     Char ofile[128];
     
+    SOCK_SetupSSL(NcbiSetupGnuTls);
+
     if (!GetArgs("txblast", NUMARG, myargs)) {
         return 1;
     }
+4 −0
Original line number Diff line number Diff line
@@ -41,6 +41,8 @@ static char const rcsid[] = "$Id: taxblast_main.c,v";
#include <objgen.h>
#include <taxblast.h>

#include <connect/ncbi_gnutls.h>


#define NUMARG (sizeof(myargs)/sizeof(myargs[0]))

@@ -63,6 +65,8 @@ Int2 Main (void)
    FILE *outfile;
    Char ofile[128];
    
    SOCK_SetupSSL(NcbiSetupGnuTls);

    if (!GetArgs("txblast", NUMARG, myargs)) {
        return 1;
    }
+1 −1
Original line number Diff line number Diff line
@@ -1297,7 +1297,7 @@ bl2seq : bl2seq.c
taxblast: taxblast_main.c $(BLIB41) $(BLIB40)
	$(CC) -g -o taxblast $(LDFLAGS) taxblast_main.c \
		$(LIB61) $(LIB60) $(LIB36) $(LIB41) $(LIB40) $(LIB23) $(LIBCOMPADJ) \
		$(NETCLILIB) $(LIB2) $(LIB1) $(OTHERLIBS)
		$(NETCLILIB) $(LIB2) $(LIBTLS) $(LIB1) $(GNUTLS_LIBS) $(OTHERLIBS)

# test client for the suggest network service
suggcli: suggcli.c $(BNETCLILIB) $(BLIB24)