Skip to content

Commit

Permalink
Remove the unused method JSS_NSS_getEventArrayList()
Browse files Browse the repository at this point in the history
The method was used to get SSLSoecketEvent but the mechanism has been
modified in the following commit and this is method is not used.

Update SSLFDProxy to implement SSLSocketListener (0f352ec)
  • Loading branch information
fmarco76 committed Oct 15, 2024
1 parent cecc9b8 commit fa69663
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions native/src/main/native/org/mozilla/jss/nss/SSLFDProxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,35 +46,6 @@ JSS_NSS_getSSLClientCert(JNIEnv *env, jobject sslfd_proxy, CERTCertificate **cer
return JSS_PK11_getCertPtr(env, certProxy, cert);
}

static PRStatus
JSS_NSS_getEventArrayList(JNIEnv *env, jobject sslfd_proxy, const char *which, jobject *list)
{
jclass sslfdProxyClass;
jfieldID eventArrayListField;

PR_ASSERT(env != NULL && sslfd_proxy != NULL && list != NULL);

sslfdProxyClass = (*env)->GetObjectClass(env, sslfd_proxy);
if (sslfdProxyClass == NULL) {
return PR_FAILURE;
}

eventArrayListField = (*env)->GetFieldID(env, sslfdProxyClass, which,
SSLFD_PROXY_EVENT_LIST_SIG);
if (eventArrayListField == NULL) {
/* Unlike JSS_NSS_getSSLClientCert above, this is a failure to process
* the event. We expect the */
return PR_FAILURE;
}

*list = (*env)->GetObjectField(env, sslfd_proxy, eventArrayListField);
if (*list == NULL) {
return PR_FAILURE;
}

return PR_SUCCESS;
}

PRStatus
JSS_NSS_getGlobalRef(JNIEnv *env, jobject sslfd_proxy, jobject *global_ref)
{
Expand Down

0 comments on commit fa69663

Please sign in to comment.