sm: Fix binary mode access.

* sm/import.c (O_BINARY): Define if not.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-07-13 15:10:36 +09:00
parent 9c12c2f91c
commit 0fc1e0de9e
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@
#include "../common/membuf.h"
#include "minip12.h"
#ifndef O_BINARY
#define O_BINARY 0
#endif
/* The arbitrary limit of one PKCS#12 object. */
#define MAX_P12OBJ_SIZE 128 /*kb*/