On Thu, 6 Jan 2011 18:46:11 +0100 Bart wrote:
BVA> Are the original transport data structure and its copy modified
BVA> independently of each other - if these are ever modified ? If not, a
BVA> possible alternative is to use reference counting instead of copying.

RS> I believe Wes added the copy function, so I'll let him answer this one...

The copy function, I believe, I added because the DTLS transport
creates an initial transport object and then "forks it" to create a new
one with new information in it in order to get around the DTLS bugs in
OpenSSL.

So, could we use reference counting?  Maybe.  I'd have to do analysis to
figure it out.

But the better question: can we assume reference counting for every
transport, including those we haven't thought of yet?  Probably not.
However, it'd be a nice feature to have in the way of a flag to indicate
which style to use.

For DTLS, I actually can't remember if the data is changed or not.

-- 
Wes Hardaker
Please mail all replies to net-snmp-coders@lists.sourceforge.net

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to