OSX keygencommand bug

Drew Crawford <[email protected]> Thu, 20 Aug 2009 00:40:39 -0500
Newsgroups gmane.comp.security.zebedee.general
Message-ID <[email protected]>
--===============2741821999114456865==
Content-Type: multipart/alternative; boundary=Apple-Mail-18--290783345


--Apple-Mail-18--290783345
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

Hey Zebedee guys,

Your software rocks.  I'm putting together a campus-wide darknet based  
on a fork of zebedee, so thanks for everything.

I've had some trouble with the runKeyGenCommand on OSX.  Specifically,  
it always returns null.

Specifically, this line:

if (sscanf(buf, "%[0-9a-fA-F]", result) != 1 ||

isn't finding a match.  I'm no C expert, but I'm fairly confident that  
"%[0-9a-fA-F]" isn't standards-compliant.

Replacing it with the much more boring

	    if (sscanf(buf, "%s", result) != 1 ||


did the trick.

Thanks,

Drew
--Apple-Mail-18--290783345
Content-Type: text/html;
	charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">Hey Zebedee =
guys,<div><br></div><div>Your software rocks. &nbsp;I'm putting together =
a campus-wide darknet based on a fork of zebedee, so thanks for =
everything.</div><div><br></div><div>I've had some trouble with the =
runKeyGenCommand on OSX. &nbsp;Specifically, it always returns =
null.</div><div><br></div><div>Specifically, this =
line:</div><div><br></div><div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 10px/normal Monaco; "><span style=3D"color: =
#aa0d91">if</span> (<span style=3D"color: #2e0d6e">sscanf</span>(buf, =
<span style=3D"color: #c41a16">"%[0-9a-fA-F]"</span>, result) !=3D <span =
style=3D"color: #1c00cf">1</span> =
||</div></div><div><br></div><div>isn't finding a match. &nbsp;I'm no C =
expert, but I'm fairly confident that "%[0-9a-fA-F]" isn't =
standards-compliant.</div><div><br></div><div>Replacing it with the much =
more boring</div><div><br></div><div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal =
normal normal 10px/normal Monaco; "><span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>&nbsp; &nbsp; <span style=3D"color:=
 #aa0d91">if</span> (<span style=3D"color: #2e0d6e">sscanf</span>(buf, =
<span style=3D"color: #c41a16">"%s"</span>, result) !=3D <span =
style=3D"color: #1c00cf">1</span> ||</div><div><font =
class=3D"Apple-style-span" face=3D"Monaco" size=3D"2"><span =
class=3D"Apple-style-span" style=3D"font-size: =
10px;"><br></span></font></div></div><div><br></div><div>did the =
trick.</div><div><br></div><div>Thanks,</div><div><br></div><div>Drew</div=
></body></html>=

--Apple-Mail-18--290783345--


--===============2741821999114456865==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
--===============2741821999114456865==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Zebedee-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zebedee-talk

--===============2741821999114456865==--