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

Re: Segfault using python api...



On Mon, Apr 21, 2003 at 04:52:05PM -0400, seth vidal wrote:
> 
> > 
> > Nope, almost certainly programmer madness.
> > 
> 
> that's interesting
> these two functions from up2date-client/gpgUtils.py
> 
> def importKey(filename):
>     fdno = open(filename, "r")
>     pubkey = fdno.read()
>     fdno.close()
>     # need method to import ascii keys
>     _ts.pgpImportPubkey(pubkey)
>                                                                                                                                    
> def importRedHatGpgKeys():
>     keys = ["/usr/share/rhn/RPM-GPG-KEY"]
>     if distrotype.rawhide:
>         keys = ["/usr/share/rhn/RPM-GPG-KEY","/usr/share/rhn/BETA-RPM-GPG-KEY"]
>                                                                                                                                    
>     for key in keys:
>         importKey(key)
> 
> 
> 
> so then we look in /usr/share/rhn/ and check out those keys.
> 
> and the file begins with:
> 
> The following public key can be used to verify RPM packages built and
> signed by Red Hat Software using `rpm -K' using the GNU GPG package.
> Questions about this key should be sent to security@redhat.com.
>                                                                                                                                    
> -----BEGIN PGP PUBLIC KEY BLOCK-----
> Version: GnuPG v1.0.0 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> 
> looks like an ascii armored key to me
> 
> so that means that those functions in up2date will always segfault if
> called?
> 

Yup will segfault, but not used (so I'm told), because 
	def importGpgKeyring():
is what's actually doing the import on binary pubkey.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC





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