diff options
author | Star Zeng <star.zeng@intel.com> | 2016-06-15 16:22:34 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2016-06-21 12:46:27 +0800 |
commit | 415aa2f1cb915a00b2d91fdfb1798bb75bcaed09 (patch) | |
tree | b5ff7da91a895bea472819d35abfee4144df0520 /MdePkg/Include/Library | |
parent | 9b82facd9cf6cb8b0d6ecacd2fc084f70650db62 (diff) | |
download | edk2-415aa2f1cb915a00b2d91fdfb1798bb75bcaed09.zip edk2-415aa2f1cb915a00b2d91fdfb1798bb75bcaed09.tar.gz edk2-415aa2f1cb915a00b2d91fdfb1798bb75bcaed09.tar.bz2 |
MdePkg: Indicate UnicodeStrToAsciiStr/AsciiStrToUnicodeStr to be deprecated
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdePkg/Include/Library')
-rw-r--r-- | MdePkg/Include/Library/BaseLib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MdePkg/Include/Library/BaseLib.h b/MdePkg/Include/Library/BaseLib.h index 79f421a..7e085b9 100644 --- a/MdePkg/Include/Library/BaseLib.h +++ b/MdePkg/Include/Library/BaseLib.h @@ -1020,7 +1020,11 @@ StrHexToUint64 ( IN CONST CHAR16 *String
);
+#ifndef DISABLE_NEW_DEPRECATED_INTERFACES
+
/**
+ [ATTENTION] This function is deprecated for security reason.
+
Convert a Null-terminated Unicode string to a Null-terminated
ASCII string and returns the ASCII string.
@@ -1060,6 +1064,8 @@ UnicodeStrToAsciiStr ( OUT CHAR8 *Destination
);
+#endif
+
/**
Convert a Null-terminated Unicode string to a Null-terminated
ASCII string.
@@ -1611,8 +1617,11 @@ AsciiStrHexToUint64 ( IN CONST CHAR8 *String
);
+#ifndef DISABLE_NEW_DEPRECATED_INTERFACES
/**
+ [ATTENTION] This function is deprecated for security reason.
+
Convert one Null-terminated ASCII string to a Null-terminated
Unicode string and returns the Unicode string.
@@ -1646,6 +1655,8 @@ AsciiStrToUnicodeStr ( OUT CHAR16 *Destination
);
+#endif
+
/**
Convert one Null-terminated ASCII string to a Null-terminated
Unicode string.
|