Peter Djalaliev wrote:
I also tried PR_GetUniqueIdentity and was a little
surprised that I would get a different identity for "SSL" with each
call. I mean, the name of the function implies it, but would one
really need to have different FD layers corresponding to the same
protocol?
Right. PR_GetUniqueIdentity registers a new I/O layer with the
specified name. It doesn't check to see if a layer with the same
name has already been registered. I don't know why.
Your suggestion of a new PR_GetIdentityForName function seems good.
I would define it as follows:
PRDescIdentity
PR_GetIdentityForName(const char* layerName) {
...
if (no existing layer with this name)
return PR_INVALID_IO_LAYER;
else
return identity_of_existing_layer
}
In any case, do you know how to solve your original problem now?
Wan-Teh
_______________________________________________
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto