SapientGuardian / mysql-connector-net-netstandard

ADO.NET driver for MySQL targeted against netstandard 1.3
GNU General Public License v2.0
46 stars 15 forks source link

Add SecuritySafeCritical attribute to CreateSocketStream #20

Closed SapientGuardian closed 8 years ago

SapientGuardian commented 8 years ago

Fixes #11. The base mysql library uses the old security level 1, which allows any code to call any other code. Netstandard (and more specifically, coreclr) only supports the more strict level 2. This requires security sensitive code to be annotated to allow it to be called by security transparent (unannotated) code.

eByte23 commented 8 years ago

Nice fix!