projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for RSA-PSS to X509_certificate_type()
[openssl.git]
/
crypto
/
objects
/
obj_xref.c
diff --git
a/crypto/objects/obj_xref.c
b/crypto/objects/obj_xref.c
index 05a5c86217e7e26ba1c39b22839b124e8c491027..42d204ca4c336463405f52a0603805de15d4da33 100644
(file)
--- a/
crypto/objects/obj_xref.c
+++ b/
crypto/objects/obj_xref.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 2006-201
7
The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2006-201
8
The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@
-10,6
+10,7
@@
#include <openssl/objects.h>
#include "obj_xref.h"
#include "internal/nelem.h"
#include <openssl/objects.h>
#include "obj_xref.h"
#include "internal/nelem.h"
+#include <openssl/err.h>
static STACK_OF(nid_triple) *sig_app, *sigx_app;
static STACK_OF(nid_triple) *sig_app, *sigx_app;
@@
-103,9
+104,10
@@
int OBJ_add_sigid(int signid, int dig_id, int pkey_id)
sigx_app = sk_nid_triple_new(sigx_cmp);
if (sigx_app == NULL)
return 0;
sigx_app = sk_nid_triple_new(sigx_cmp);
if (sigx_app == NULL)
return 0;
- ntr = OPENSSL_malloc(sizeof(*ntr));
- if (ntr == NULL)
+ if ((ntr = OPENSSL_malloc(sizeof(*ntr))) == NULL) {
+ OBJerr(OBJ_F_OBJ_ADD_SIGID, ERR_R_MALLOC_FAILURE);
return 0;
return 0;
+ }
ntr->sign_id = signid;
ntr->hash_id = dig_id;
ntr->pkey_id = pkey_id;
ntr->sign_id = signid;
ntr->hash_id = dig_id;
ntr->pkey_id = pkey_id;