mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
CLEANUP: ssl: fix indentation in smp_fetch_ssl_fc_ec() (part 2)
Fix indentation in smp_fetch_ssl_fc_ec() since it is using exclusively spaces. This should have been in previous 9a21b4b43 patch but was missed by accident. Could be backported if a fix depends on it.
This commit is contained in:
parent
b6c1f5c7d9
commit
0773826645
@ -1340,7 +1340,7 @@ smp_fetch_ssl_fc_ec(const struct arg *args, struct sample *smp, const char *kw,
|
||||
if (curve_name == NULL) {
|
||||
return 0;
|
||||
} else {
|
||||
/**
|
||||
/*
|
||||
* The curve name returned by SSL_get0_group_name is in lowercase whereas the curve
|
||||
* name returned when we use `SSL_get_negotiated_group` and `OBJ_nid2sn` is the
|
||||
* short name and is in upper case. To make the return value consistent across the
|
||||
@ -1350,14 +1350,14 @@ smp_fetch_ssl_fc_ec(const struct arg *args, struct sample *smp, const char *kw,
|
||||
for (int i = 0; curve_name[i]; i++)
|
||||
curve_name[i] = toupper(curve_name[i]);
|
||||
}
|
||||
#else
|
||||
# else
|
||||
nid = SSL_get_negotiated_group(ssl);
|
||||
if (!nid)
|
||||
return 0;
|
||||
curve_name = (char *)OBJ_nid2sn(nid);
|
||||
if (curve_name == NULL)
|
||||
return 0;
|
||||
#endif
|
||||
# endif
|
||||
|
||||
smp->data.u.str.area = curve_name;
|
||||
if (!smp->data.u.str.area)
|
||||
|
Loading…
x
Reference in New Issue
Block a user