Lines Matching refs:s1
76 const unsigned char *s1, *s2, *end = input + ilen; in convert_pem_to_der() local
79 s1 = (unsigned char *) strstr( (const char *) input, "-----BEGIN" ); in convert_pem_to_der()
80 if( s1 == NULL ) in convert_pem_to_der()
87 s1 += 10; in convert_pem_to_der()
88 while( s1 < end && *s1 != '-' ) in convert_pem_to_der()
89 s1++; in convert_pem_to_der()
90 while( s1 < end && *s1 == '-' ) in convert_pem_to_der()
91 s1++; in convert_pem_to_der()
92 if( *s1 == '\r' ) s1++; in convert_pem_to_der()
93 if( *s1 == '\n' ) s1++; in convert_pem_to_der()
95 if( s2 <= s1 || s2 > end ) in convert_pem_to_der()
98 ret = mbedtls_base64_decode( NULL, 0, &len, (const unsigned char *) s1, s2 - s1 ); in convert_pem_to_der()
105 if( ( ret = mbedtls_base64_decode( output, len, &len, (const unsigned char *) s1, in convert_pem_to_der()
106 s2 - s1 ) ) != 0 ) in convert_pem_to_der()