Yes dogs can eat ham. There is absolutely nothing wrong with that sort of meat. Ham is also usually in dog food. Salami on the other hand I wouldn`t advice. It has a high salt content and can cause dogs harm. Dogs can eat salami on a low level though. Lets say if you were giving them medication and tried to mask the taste. I hope you liked my answer =).
No processed foods both for dogs and cats - except the ones intended for them as dog foods and cat foods. processed foods like hotdogs, salami, hams, corned beef (or we call it here as carne norte), spam and anything processed and basically canned. i was told by my local vet here in Madrid that it turn their stomach inside out or something worse. that's the reason why i knew cuz i brought my dog to him for letting him chew a hotdog. but the bitch's fine now. Dios mio gracias!