Which one of the following is correct indirect speech of the sentence "He said, do you know me"?

Answer: 
He inquired whether I know him
Which one of the following is correct indirect speech of the sentence "He said, do you know me"?