Switch OBJ_undef uses to NID_undef.
They both happen to be zero, but OBJ_undef is a type error; OBJ_foo expands to a comma-separated list of integers. Change-Id: Ia5907dd3bc83240b7cc98af6456115d2efb48687 Reviewed-on: https://boringssl-review.googlesource.com/2842 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
6095de8da2
commit
0cb3f5bc27
@ -855,7 +855,7 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
|
||||
int nid;
|
||||
for (i = 0; i < clistlen; i++) {
|
||||
nid = tls1_ec_curve_id2nid(clist[i]);
|
||||
if (nid != OBJ_undef) {
|
||||
if (nid != NID_undef) {
|
||||
cptr[i] = nid;
|
||||
} else {
|
||||
cptr[i] = TLSEXT_nid_unknown | clist[i];
|
||||
|
@ -393,7 +393,7 @@ static const uint16_t eccurves_default[] = {
|
||||
|
||||
int tls1_ec_curve_id2nid(uint16_t curve_id) {
|
||||
if (curve_id < 1 || curve_id > sizeof(nid_list) / sizeof(nid_list[0])) {
|
||||
return OBJ_undef;
|
||||
return NID_undef;
|
||||
}
|
||||
return nid_list[curve_id - 1];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user