[Openh323gk-users] Patches to compile 2.1 CVS with pwlib 1.5 / openh323 1.12

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Below are patches against CVS (cvs diff -wu) which I used
to compile the current CVS against the latest pwlib/openh323 libs.
I got these patches by searching the mailing list. I am not sure if
they are right, but at least it compiles. 

Index: GkClient.cxx
===================================================================
RCS file: /cvsroot/openh323gk/openh323gk/GkClient.cxx,v
retrieving revision 1.34
diff -w -u -r1.34 GkClient.cxx
--- GkClient.cxx	10 Dec 2002 10:20:28 -0000	1.34
+++ GkClient.cxx	18 Jul 2003 03:34:59 -0000
@@ -695,7 +695,8 @@
 //	auth.SetLocalId(m_h323Id);
 	auth.SetLocalId(id);
 	auth.SetPassword(m_password);
-	auth.Prepare(cryptoTokens);
+	H225_ArrayOf_ClearToken dummyTokens;
+	auth.PrepareTokens(dummyTokens,cryptoTokens);
 }
 
 void
Index: RasTbl.cxx
===================================================================
RCS file: /cvsroot/openh323gk/openh323gk/RasTbl.cxx,v
retrieving revision 1.92
diff -w -u -r1.92 RasTbl.cxx
--- RasTbl.cxx	27 Jan 2003 14:51:23 -0000	1.92
+++ RasTbl.cxx	18 Jul 2003 03:35:44 -0000
@@ -622,7 +622,7 @@
 		((H225_VoiceCaps &)protocol).m_supportedPrefixes.SetSize(as);
 		const_prefix_iterator Iter = Prefixes.begin();
 		for (PINDEX p=0; p < as; ++p, ++Iter)
-			H323SetAliasAddress(Iter->c_str(), ((H225_VoiceCaps 
&)protocol).m_supportedPrefixes[p].m_prefix);
+			H323SetAliasAddress(Iter->c_str(), ((H225_VoiceCaps 
&)protocol).m_supportedPrefixes[p].m_prefix, -1);
 	}
 }

Index: gkauth.cxx
===================================================================
RCS file: /cvsroot/openh323gk/openh323gk/gkauth.cxx,v
retrieving revision 1.39
diff -w -u -r1.39 gkauth.cxx
--- gkauth.cxx	7 Nov 2002 16:06:54 -0000	1.39
+++ gkauth.cxx	18 Jul 2003 03:36:44 -0000
@@ -503,7 +503,7 @@
 			H235AuthSimpleMD5 authMD5;
 			authMD5.SetLocalId(id);
 			authMD5.SetPassword(passwd);
-			if (authMD5.VerifyToken(tokens[i], nullPDU) == H235Authenticator::e_OK) {
+			if (authMD5.ValidateCryptoToken(tokens[i], nullPDU) == 
H235Authenticator::e_OK) {
 				PTRACE(4, "GkAuth\t" << id << " password match (MD5)");
 				return true;
 			}
@@ -522,7 +522,7 @@
 			H235AuthProcedure1 authProcedure1;
 			authProcedure1.SetLocalId(gk_id);
 			authProcedure1.SetPassword(passwd);
-			if (authProcedure1.VerifyToken(tokens[i], getLastReceivedRawPDU()) == 
H235Authenticator::e_OK) {
+			if (authProcedure1.ValidateCryptoToken(tokens[i], getLastReceivedRawPDU()) 
== H235Authenticator::e_OK) {
 				PTRACE(4, "GkAuth\t" << ep_alias << " password match (SHA-1)");
 				return true;
 			}


On Tuesday 15 July 2003 19:00, Alexandru Coseru wrote:
> Hello..
> I've downloaded the latest gnugk (2.1) , and I have some compile problems:
>
> gkauth.cxx: In member function `virtual bool
> SimplePasswordAuth::CheckCryptoTokens(const
> H225_ArrayOf_CryptoH323Token&)': gkauth.cxx:506: no matching function for
> call to `H235AuthSimpleMD5::VerifyToken(H225_CryptoH323Token&,
> PBYTEArray&)' gkauth.cxx:525: no matching function for call to
> `H235AuthProcedure1::VerifyToken(H225_CryptoH323Token&, PBYTEArray&)'
> make[1]: *** [obj_linux_x86_d/gkauth.o] Error 1
> make[1]: Leaving directory `/root/cvsgk/openh323gk'
> make: *** [debug] Error 2
>
>
> Can anybody tell me why ?
>
> (PWLIB 1.5 , openh323 12 , OS: Mandrake  , kernel 2.4.19-16mdk)
>
>         Thanks



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
List: Openh323gk-users@lists.sourceforge.net
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux