summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8f6f347)
Submitted by: Nils Larsch
{
char *ret, *p;
size_t buf_len=0,i;
{
char *ret, *p;
size_t buf_len=0,i;
+ unsigned char *buf, *pbuf;
buf_len = EC_POINT_point2oct(group, point, form,
NULL, 0, ctx);
buf_len = EC_POINT_point2oct(group, point, form,
NULL, 0, ctx);
for (i=buf_len; i > 0; i--)
{
for (i=buf_len; i > 0; i--)
{
- int v = (int) *(buf++);
+ int v = (int) *(pbuf++);
*(p++)=HEX_DIGITS[v>>4];
*(p++)=HEX_DIGITS[v&0x0F];
}
*p='\0';
*(p++)=HEX_DIGITS[v>>4];
*(p++)=HEX_DIGITS[v&0x0F];
}
*p='\0';