update libcr51sign to support MAUV
Add feature support to manage MAUV with cr51 descriptor.
Change-Id: I3795259f81b1dbd3016d1c41c68895be00455061
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/subprojects/libcr51sign/src/libcr51sign_support.c b/subprojects/libcr51sign/src/libcr51sign_support.c
index 3118909..d0c2b96 100644
--- a/subprojects/libcr51sign/src/libcr51sign_support.c
+++ b/subprojects/libcr51sign/src/libcr51sign_support.c
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-#include <libcr51sign/libcr51sign.h>
#include <libcr51sign/libcr51sign_support.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <stdio.h>
+#include <string.h>
#ifdef __cplusplus
extern "C"
@@ -164,7 +164,7 @@
goto clean_up;
}
CPRINTS(ctx, "public RSA\n");
- char buffer[1024];
+ char buffer[1024] = {};
while (BIO_read(bio, buffer, sizeof(buffer) - 1) > 0)
{
CPRINTS(ctx, " %s", buffer);