Show
Ignore:
Timestamp:
01/04/11 10:03:47 (2 years ago)
Author:
ahu
Message:

make dnssec queries configurable, patch by Stefan Schmidt. Will have to be expanded to all the generic backends.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/modules/gpgsqlbackend/gpgsqlbackend.cc

    r1471 r1800  
    7777    declare(suffix,"check-acl-query","", "select value from acls where acl_type='%s' and acl_key='%s'"); 
    7878 
     79    declare(suffix,"add-domain-key-query","", "insert into cryptokeys (domain_id, flags, active, content) select id, %d, %d, '%s' from domains where name='%s'"); 
     80    declare(suffix,"list-domain-keys-query","", "select cryptokeys.id, flags, active, content from domains, cryptokeys where domain_id=domains.id and name='%s'"); 
     81    declare(suffix,"get-domain-metadata-query","", "select content from domains, domainmetadata where domain_id=domains.id and name='%s' and domainmetadata.kind='%s'"); 
     82    declare(suffix,"clear-domain-metadata-query","", "delete from domainmetadata where domain_id=(select id from domains where name='%s') and domainmetadata.kind='%s'"); 
     83    declare(suffix,"set-domain-metadata-query","", "insert into domainmetadata (domain_id, kind, content) select id, '%s', '%s' from domains where name='%s'"); 
     84    declare(suffix,"activate-domain-key-query","", "update cryptokeys set active=1 where domain_id=(select id from domains where name='%s') and  cryptokeys.id=%d"); 
     85    declare(suffix,"deactivate-domain-key-query","", "update cryptokeys set active=0 where domain_id=(select id from domains where name='%s') and  cryptokeys.id=%d"); 
     86    declare(suffix,"remove-domain-key-query","", "delete from cryptokeys where domain_id=(select id from domains where name='%s') and cryptokeys.id=%d");     
    7987 
    8088  }