|
From: | Elias Önal |
Subject: | Re: [lwip-devel] SNMPv3 implementation WIP |
Date: | Sat, 5 Mar 2016 04:35:51 +0800 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
Hey Dirk,
and thanks for the warm welcome! I feel like having a layer of abstraction is reasonable, especially given that some platforms support many of the algorithms in hardware. So how would you like the wrapper? In my opinion it's of advantage if one can still build SNMPv3 support out of the box and without cryptographic libraries or persistent storage requirements. Therefore I would provide some non-standards-compliant default implementations. I'd suggest using either __weak symbols for those, or a #define to switch over to a user provided header. Though since __weak is a compiler feature it might not be compatible with the goals of LwIP. Also I didn't really understand what you specifically meant when you said you'd like to avoid including mbedTLS headers in the actual implementation. I guess including them in lwipopts.h would be a bad idea, but I think it could be acceptable to have something along the lines of '#define LWIP_DES_HEADER "mbedtls/des.h"', followed by an "#include LWIP_DES_HEADER" inside the file handling the cryptography. Do you disagree? Then again I feel a bit like the wrapper is outside the scope of what I'm trying to focus on right now. For a wrapper it would be more appropriate to be part of core instead of apps. In turn the ppp code could make use of it and wouldn't have to hardcode either polarSSL or mbedTLS. I'm open to discussing as well as working on this, though I'd prefer finishing SNMPv3 first. -Elias On 05/03/16 03:20, Dirk Ziegelmeier wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |