Lines Matching refs:s1
52 const unsigned char *s1, *s2, *end = input + ilen; in convert_pem_to_der() local
55 s1 = (unsigned char *) strstr((const char *) input, "-----BEGIN"); in convert_pem_to_der()
56 if (s1 == NULL) { in convert_pem_to_der()
65 s1 += 10; in convert_pem_to_der()
66 while (s1 < end && *s1 != '-') { in convert_pem_to_der()
67 s1++; in convert_pem_to_der()
69 while (s1 < end && *s1 == '-') { in convert_pem_to_der()
70 s1++; in convert_pem_to_der()
72 if (*s1 == '\r') { in convert_pem_to_der()
73 s1++; in convert_pem_to_der()
75 if (*s1 == '\n') { in convert_pem_to_der()
76 s1++; in convert_pem_to_der()
79 if (s2 <= s1 || s2 > end) { in convert_pem_to_der()
83 ret = mbedtls_base64_decode(NULL, 0, &len, (const unsigned char *) s1, s2 - s1); in convert_pem_to_der()
92 if ((ret = mbedtls_base64_decode(output, len, &len, (const unsigned char *) s1, in convert_pem_to_der()
93 s2 - s1)) != 0) { in convert_pem_to_der()