Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 153412 Details for
Bug 219792
system-config-bind encryption keys are ambiguous
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch
system-config-bind-4.0.2-DNSKEY.patch (text/plain), 2.67 KB, created by
Ondrej Dvoracek
on 2007-04-25 10:59:33 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Ondrej Dvoracek
Created:
2007-04-25 10:59:33 UTC
Size:
2.67 KB
patch
obsolete
>--- system-config-bind-4.0.2/DNS.py.old 2007-04-25 10:48:26.000000000 +0200 >+++ system-config-bind-4.0.2/DNS.py 2007-04-25 12:51:36.000000000 +0200 >@@ -426,6 +426,55 @@ > def __str__(s): > return s.num2mnem() > >+class DNSKeyFlags(Data): >+# 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 >+# +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ >+# | A/C | Z | XT| Z | Z | NAMTYP| Z | Z | Z | Z | SIG | >+# +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ >+ Mnemonics={ 'Zone-signig Key' : 0x0100, >+ 'Key-signing Key' : 0x0101 >+ } >+ >+ def __init__(s, data): >+ s.data = data >+ try: >+ s.flags = int(data) >+ except ValueError: >+ try: >+ s.flags = s.mnem2num(data) >+ except ValueError: >+ s.flags = 0 >+ >+ def mnem2num(s,data=None): >+ if data==None: >+ data=s.data >+ s.flags=0 >+ for mn in data.split('|'): >+ if not( DNSKeyFlags.Mnemonics.has_key(mn) ): >+ raise ValueError >+ s.flags &= DNSKeyFlags.Mnemonics[ mn ] >+ return s.flags >+ >+ def num2mnem(s,flags=None): >+ if flags==None: >+ flags=s.flags >+ d='' >+ for mn in DNSKeyFlags.Mnemonics.keys(): >+ if (DNSKeyFlags.Mnemonics[ mn ] != 0) and ( >+ flags == DNSKeyFlags.Mnemonics[ mn ]): >+ d += mn + '|' >+ if len(d): >+ d = d[:-1] >+ else: >+ d = 'Other Key' >+ return d >+ >+ def value(s): >+ return s.flags >+ >+ def __str__(s): >+ return s.num2mnem() >+ > class KeyProtocol(Data): > Mnemonics={ 'NONE' : 0, > 'TLS' : 1, >--- system-config-bind-4.0.2/RR.py.old 2007-04-25 10:48:36.000000000 +0200 >+++ system-config-bind-4.0.2/RR.py 2007-04-25 11:36:38.000000000 +0200 >@@ -538,8 +538,16 @@ > types=[ DNS.FORWARD, DNS.IPV4.REVERSE, DNS.IPV6.REVERSE_ARPA, DNS.IPV6.REVERSE_INT, DNS.NSAP.REVERSE ] > dnssec=True > >-class DNSKEY(KEY): >- pass >+class DNSKEY(RR): >+ attrs=[ [ 'FLAGS', DNS.DNSKeyFlags ], ['PROTOCOL', DNS.KeyProtocol ], ['ALGORITHM', DNS.KeyAlgorithm], ['KEY', DNS.Base64, WANT_TOKENS ] ] >+ desc={ '': _('DNS Public Key'), >+ 'FLAGS': _('Flags'), >+ 'PROTOCOL': _('Protocol'), >+ 'ALGORITHM': _('Algorithm'), >+ 'KEY':_('Key') >+ } >+ types=[ DNS.FORWARD, DNS.IPV4.REVERSE, DNS.IPV6.REVERSE_ARPA, DNS.IPV6.REVERSE_INT, DNS.NSAP.REVERSE ] >+ dnssec=True > > class KX(RR): > attrs=[ [ 'PREFERENCE', int ], ['EXCHANGER', DNS.Name, WANT_ZONE] ]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219792
: 153412