mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
CLEANUP: ssl: ssl_sock_crt2der semicolon and spaces
trivial commit, does not change the code behaviour Signed-off-by: William Dauchy <w.dauchy@criteo.com>
This commit is contained in:
parent
efc5a9d55b
commit
98c35045aa
@ -87,16 +87,16 @@ int ssl_sock_get_serial(X509 *crt, struct buffer *out)
|
||||
int ssl_sock_crt2der(X509 *crt, struct buffer *out)
|
||||
{
|
||||
int len;
|
||||
unsigned char *p = (unsigned char *) out->area;;
|
||||
unsigned char *p = (unsigned char *) out->area;
|
||||
|
||||
len =i2d_X509(crt, NULL);
|
||||
len = i2d_X509(crt, NULL);
|
||||
if (len <= 0)
|
||||
return 1;
|
||||
|
||||
if (out->size < len)
|
||||
return -1;
|
||||
|
||||
i2d_X509(crt,&p);
|
||||
i2d_X509(crt, &p);
|
||||
out->data = len;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user