Copy an oid from one structure to another.
oid structure the result is written into.
oid structure to copy from.
0 on success or error code