Lines Matching refs:gen
3600 static jobject GENERAL_NAME_to_jobject(JNIEnv* env, GENERAL_NAME* gen) {
3601 switch (gen->type) {
3606 const char* data = reinterpret_cast<const char*>(ASN1_STRING_data(gen->d.ia5));
3607 ssize_t len = ASN1_STRING_length(gen->d.ia5);
3609 && (ASN1_PRINTABLE_type(ASN1_STRING_data(gen->d.ia5), len) != V_ASN1_T61STRING)) {
3610 JNI_TRACE("GENERAL_NAME_to_jobject(%p) => Email/DNS/URI \"%s\"", gen, data);
3613 JNI_TRACE("GENERAL_NAME_to_jobject(%p) => Email/DNS/URI invalid", gen);
3619 return X509_NAME_to_jstring(env, gen->d.directoryName, XN_FLAG_RFC2253);
3622 void* ip = reinterpret_cast<void*>(gen->d.ip->data);
3624 const void *ip = reinterpret_cast<const void *>(gen->d.ip->data);
3626 if (gen->d.ip->length == 4) {
3630 JNI_TRACE("GENERAL_NAME_to_jobject(%p) => IPv4 %s", gen, buffer.get());
3633 JNI_TRACE("GENERAL_NAME_to_jobject(%p) => IPv4 failed %s", gen, strerror(errno));
3635 } else if (gen->d.ip->length == 16) {
3639 JNI_TRACE("GENERAL_NAME_to_jobject(%p) => IPv6 %s", gen, buffer.get());
3642 JNI_TRACE("GENERAL_NAME_to_jobject(%p) => IPv6 failed %s", gen, strerror(errno));
3650 return ASN1_OBJECT_to_OID_string(env, gen->d.registeredID);
3654 return ASN1ToByteArray<GENERAL_NAME>(env, gen, i2d_GENERAL_NAME);
3704 GENERAL_NAME* gen = sk_GENERAL_NAME_value(gn_stack, static_cast<size_t>(i));
3705 ScopedLocalRef<jobject> val(env, GENERAL_NAME_to_jobject(env, gen));
3707 JNI_TRACE("get_X509_GENERAL_NAME_stack(%p, %d) => threw exception parsing gen name",
3727 JniConstants::integer_valueOfMethod, gen->type));
4358 bssl::UniquePtr<ASN1_GENERALIZEDTIME> gen(ASN1_TIME_to_generalizedtime(asn1Time, nullptr));
4359 if (gen.get() == nullptr) {
4364 if (gen->length < 14 || gen->data == nullptr) {
4365 Errors::jniThrowNullPointerException(env, "gen->length < 14 || gen->data == null");
4371 char *p = (char*) &gen->data[14];