sendAuthRequestImpl :: ForeignPtr SessionImpl
                    -> ForeignPtr IdentityImpl
                    -> Request
                    -> Maybe CorrelationId
                    -> IO ()
sendAuthRequestImpl s i req cid =
    withForeignPtr s $ \p ->
      withForeignPtr i $ \iden ->
        withForeignPtr (getImpl req) $ \r ->
          withMaybeCid cid $ \cidPtr -> do
              rc <- blpapi_Session_sendAuthorizationRequest
                         p r iden cidPtr nullPtr nullPtr 0
              failIfBadErrorCode rc
sendAuthRequestImpl :: ForeignPtr SessionImpl
                    -> ForeignPtr IdentityImpl
                    -> Request
                    -> Maybe CorrelationId
                    -> IO ()
sendAuthRequestImpl s i req cid =
    withForeignPtr s $ \p ->
      withForeignPtr i $ \iden ->
        withForeignPtr (getImpl req) $ \r ->
          withMaybeCid cid $ \cidPtr -> do
              rc <- blpapi_Session_sendAuthorizationRequest
                         p r iden cidPtr nullPtr nullPtr 0
              failIfBadErrorCode rc
sendAuthRequestImpl s i req cid =
    withForeignPtr s $ \p ->
      withForeignPtr i $ \iden ->
        withForeignPtr (getImpl req) $ \r ->
          withMaybeCid cid $ \cidPtr -> do
              rc <- blpapi_Session_sendAuthorizationRequest
                         p r iden cidPtr nullPtr nullPtr 0
              failIfBadErrorCode rc