Show
Ignore:
Timestamp:
05/16/09 17:33:21 (10 months ago)
Author:
ahu
Message:

preliminary infrastructure for signing messages with TSIG in a clean way

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/dnsparser.cc

    r1353 r1359  
    221221        dr.d_place=DNSRecord::Additional; 
    222222       
     223      unsigned int recordStartPos=pr.d_pos; 
     224 
    223225      string label=pr.getLabel(); 
    224226       
     
    233235      dr.d_content=boost::shared_ptr<DNSRecordContent>(DNSRecordContent::mastermake(dr, pr)); 
    234236      d_answers.push_back(make_pair(dr, pr.d_pos)); 
     237 
     238      if(dr.d_type == QType::TSIG && dr.d_class == 0xff)  
     239        d_tsigPos = recordStartPos + sizeof(struct dnsheader); 
    235240    } 
    236241