Replace skipPast with strings.TrimPrefix.

There was a bug in skipPast; it was skipping to the start of the string,
rather than the end of it. But more of an issue is that it would skip if
it was in the middle of the string, which caused problems when
STACK_OF(FOO) was used as a parameter.

At some point, we'll probably need to give this a real C declaration
parser. We still have declarations (like those that return function
pointers) which we can't parse. But for now let's clear the low-hanging

Change-Id: Ic2cee452cc8cf6887a6ff1b00cea353cec361955
Reviewed-by: Adam Langley <>
1 file changed